Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        ewl_freebox_test.c 


Log Message:
- fix up the freebox so the scrollpane will show.
- re-arrange test code a bit

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_freebox_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_freebox_test.c  31 Dec 2005 17:56:09 -0000      1.3
+++ ewl_freebox_test.c  5 Jan 2006 03:14:59 -0000       1.4
@@ -128,14 +128,7 @@
        ewl_object_alignment_set(EWL_OBJECT(hbox), EWL_FLAG_ALIGN_TOP);
        ewl_widget_show(hbox);
 
-       pane = ewl_scrollpane_new();
-       ewl_widget_show(pane);
-
        fb = ewl_freebox_new();
-       ewl_freebox_layout_type_set(EWL_FREEBOX(fb),
-                                       EWL_FREEBOX_LAYOUT_MANUAL);
-       ewl_container_child_append(EWL_CONTAINER(pane), fb);
-       ewl_widget_show(fb);
 
        o = ewl_button_new();
        ewl_button_label_set(EWL_BUTTON(o), "Add items");
@@ -146,7 +139,14 @@
                                ewl_freebox_cb_add, fb);
        ewl_widget_show(o);
 
+       pane = ewl_scrollpane_new();
        ewl_container_child_append(EWL_CONTAINER(hbox), pane);
+       ewl_widget_show(pane);
+
+       ewl_freebox_layout_type_set(EWL_FREEBOX(fb),
+                                       EWL_FREEBOX_LAYOUT_MANUAL);
+       ewl_container_child_append(EWL_CONTAINER(pane), fb);
+       ewl_widget_show(fb);
 
        /* the auto box */
        o = ewl_label_new();
@@ -159,14 +159,7 @@
        ewl_container_child_append(EWL_CONTAINER(box), hbox);
        ewl_widget_show(hbox);
 
-       pane = ewl_scrollpane_new();
-       ewl_widget_show(pane);
-
        fb = ewl_freebox_new();
-       ewl_freebox_layout_type_set(EWL_FREEBOX(fb),
-                                       EWL_FREEBOX_LAYOUT_AUTO);
-       ewl_container_child_append(EWL_CONTAINER(pane), fb);
-       ewl_widget_show(fb);
 
        o = ewl_button_new();
        ewl_button_label_set(EWL_BUTTON(o), "Add items");
@@ -177,7 +170,14 @@
                                ewl_freebox_cb_add, fb);
        ewl_widget_show(o);
 
+       pane = ewl_scrollpane_new();
        ewl_container_child_append(EWL_CONTAINER(hbox), pane);
+       ewl_widget_show(pane);
+
+       ewl_freebox_layout_type_set(EWL_FREEBOX(fb),
+                                       EWL_FREEBOX_LAYOUT_AUTO);
+       ewl_container_child_append(EWL_CONTAINER(pane), fb);
+       ewl_widget_show(fb);
 
        /* the comparator box */
        o = ewl_label_new();
@@ -190,17 +190,7 @@
        ewl_container_child_append(EWL_CONTAINER(box), hbox);
        ewl_widget_show(hbox);
 
-       pane = ewl_scrollpane_new();
-       ewl_widget_show(pane);
-
        fb = ewl_freebox_new();
-       ewl_freebox_layout_type_set(EWL_FREEBOX(fb),
-                                       EWL_FREEBOX_LAYOUT_COMPARATOR);
-       ewl_freebox_comparator_set(EWL_FREEBOX(fb), 
-                                       ewl_freebox_cb_compare);
-       ewl_container_child_append(EWL_CONTAINER(pane), fb);
-       ewl_widget_show(fb);
-       sort_fb = fb;
 
        o = ewl_button_new();
        ewl_button_label_set(EWL_BUTTON(o), "Add items");
@@ -211,6 +201,16 @@
                                ewl_freebox_cb_add, fb);
        ewl_widget_show(o);
 
+       pane = ewl_scrollpane_new();
        ewl_container_child_append(EWL_CONTAINER(hbox), pane);
+       ewl_widget_show(pane);
+
+       ewl_freebox_layout_type_set(EWL_FREEBOX(fb),
+                                       EWL_FREEBOX_LAYOUT_COMPARATOR);
+       ewl_freebox_comparator_set(EWL_FREEBOX(fb), 
+                                       ewl_freebox_cb_compare);
+       ewl_container_child_append(EWL_CONTAINER(pane), fb);
+       ewl_widget_show(fb);
+       sort_fb = fb;
 }
 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to