Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        ewl_notebook_test.c 


Log Message:
More evas engine abstraction. Also cleaned up a few warnings in the test
program.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_notebook_test.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_notebook_test.c 30 Dec 2003 18:05:22 -0000      1.19
+++ ewl_notebook_test.c 27 Feb 2004 00:30:58 -0000      1.20
@@ -30,7 +30,7 @@
 void
 __notebook_change_alignment(Ewl_Widget * w, void *ev_data, void *user_data)
 {
-       if (!ewl_radiobutton_is_checked(w))
+       if (!ewl_radiobutton_is_checked(EWL_RADIOBUTTON(w)))
                return;
 
        if (w == button_aleft)
@@ -111,13 +111,15 @@
        button_aleft = ewl_radiobutton_new("Left");
        ewl_radiobutton_set_checked(button_aleft, 1);
        ewl_container_append_child(EWL_CONTAINER(avbox), button_aleft);
-       ewl_radiobutton_set_chain(button_aleft, button_atop);
+       ewl_radiobutton_set_chain(EWL_RADIOBUTTON(button_aleft),
+                                 EWL_RADIOBUTTON(button_atop));
        ewl_callback_append(button_aleft, EWL_CALLBACK_VALUE_CHANGED,
                            __notebook_change_alignment, notebook);
        ewl_widget_show(button_aleft);
 
        button_acenter = ewl_radiobutton_new("Center");
-       ewl_radiobutton_set_chain(button_acenter, button_aleft);
+       ewl_radiobutton_set_chain(EWL_RADIOBUTTON(button_acenter),
+                                 EWL_RADIOBUTTON(button_aleft));
        ewl_radiobutton_set_checked(button_acenter, 1);
        ewl_container_append_child(EWL_CONTAINER(avbox), button_acenter);
        ewl_callback_append(button_acenter, EWL_CALLBACK_VALUE_CHANGED,
@@ -125,14 +127,16 @@
        ewl_widget_show(button_acenter);
 
        button_aright = ewl_radiobutton_new("Right");
-       ewl_radiobutton_set_chain(button_aright, button_acenter);
+       ewl_radiobutton_set_chain(EWL_RADIOBUTTON(button_aright),
+                                 EWL_RADIOBUTTON(button_acenter));
        ewl_container_append_child(EWL_CONTAINER(avbox), button_aright);
        ewl_callback_append(button_aright, EWL_CALLBACK_VALUE_CHANGED,
                            __notebook_change_alignment, notebook);
        ewl_widget_show(button_aright);
 
        button_abottom = ewl_radiobutton_new("Bottom");
-       ewl_radiobutton_set_chain(button_abottom, button_aright);
+       ewl_radiobutton_set_chain(EWL_RADIOBUTTON(button_abottom),
+                                 EWL_RADIOBUTTON(button_aright));
        ewl_container_append_child(EWL_CONTAINER(avbox), button_abottom);
        ewl_callback_append(button_abottom, EWL_CALLBACK_VALUE_CHANGED,
                            __notebook_change_alignment, notebook);
@@ -154,7 +158,8 @@
        ewl_widget_show(button_pleft);
 
        button_pright = ewl_radiobutton_new("Right");
-       ewl_radiobutton_set_chain(button_pright, button_pleft);
+       ewl_radiobutton_set_chain(EWL_RADIOBUTTON(button_pright),
+                                 EWL_RADIOBUTTON(button_pleft));
        ewl_container_append_child(EWL_CONTAINER(pvbox), button_pright);
        ewl_callback_append(button_pright, EWL_CALLBACK_VALUE_CHANGED,
                            __notebook_change_position, notebook);
@@ -162,14 +167,16 @@
 
        button_ptop = ewl_radiobutton_new("Top");
        ewl_radiobutton_set_checked(button_ptop, 1);
-       ewl_radiobutton_set_chain(button_ptop, button_pright);
+       ewl_radiobutton_set_chain(EWL_RADIOBUTTON(button_ptop),
+                                 EWL_RADIOBUTTON(button_pright));
        ewl_container_append_child(EWL_CONTAINER(pvbox), button_ptop);
        ewl_callback_append(button_ptop, EWL_CALLBACK_VALUE_CHANGED,
                            __notebook_change_position, notebook);
        ewl_widget_show(button_ptop);
 
        button_pbottom = ewl_radiobutton_new("Bottom");
-       ewl_radiobutton_set_chain(button_pbottom, button_ptop);
+       ewl_radiobutton_set_chain(EWL_RADIOBUTTON(button_pbottom),
+                                 EWL_RADIOBUTTON(button_ptop));
        ewl_container_append_child(EWL_CONTAINER(pvbox), button_pbottom);
        ewl_callback_append(button_pbottom, EWL_CALLBACK_VALUE_CHANGED,
                            __notebook_change_position, notebook);




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to