Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        ewl_border_test.c 


Log Message:
Don't select multiple radio buttons.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_border_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_border_test.c   4 Oct 2005 02:30:56 -0000       1.4
+++ ewl_border_test.c   22 Nov 2005 16:57:52 -0000      1.5
@@ -7,6 +7,22 @@
 static Ewl_Widget *border_button = NULL;
 
 static void
+__configure_border_contents(Ewl_Widget *w, void *ev_data __UNUSED__, 
+                                               void *user_data __UNUSED__)
+{
+       printf("Border configured\n");
+       ewl_widget_print(w);
+}
+
+static void
+__obscure_border_contents(Ewl_Widget *w, void *ev_data __UNUSED__, 
+                                               void *user_data __UNUSED__)
+{
+       printf("Border obscure\n");
+       ewl_widget_print(w);
+}
+
+static void
 __destroy_border_test_window(Ewl_Widget *w, void *ev_data __UNUSED__, 
                                                void *user_data __UNUSED__)
 {
@@ -95,6 +111,10 @@
        ewl_widget_show(border_box);
 
        avbox = ewl_vbox_new();
+       ewl_callback_append(avbox, EWL_CALLBACK_CONFIGURE,
+                           __configure_border_contents, NULL);
+       ewl_callback_append(avbox, EWL_CALLBACK_OBSCURE,
+                           __obscure_border_contents, NULL);
        ewl_object_alignment_set(EWL_OBJECT(avbox), EWL_FLAG_ALIGN_CENTER);
        ewl_container_child_append(EWL_CONTAINER(border_box), avbox);
        ewl_widget_show(avbox);
@@ -125,7 +145,6 @@
        ewl_button_label_set(EWL_BUTTON(button_acenter), "Center");
        ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_acenter),
                                  EWL_RADIOBUTTON(button_aleft));
-       ewl_radiobutton_checked_set(button_acenter, 1);
        ewl_container_child_append(EWL_CONTAINER(avbox), button_acenter);
        ewl_callback_append(button_acenter, EWL_CALLBACK_VALUE_CHANGED,
                            __border_change_alignment, border_box);




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to