Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        ewl_menu_bar_test.c 


Log Message:
Fix some fill policy issues in the menubar, holler if this causes issues for
anyone, but it should be sane.
Added an example of using a spacer in a menubar.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_menu_bar_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_menu_bar_test.c 28 May 2005 20:32:49 -0000      1.2
+++ ewl_menu_bar_test.c 8 Jun 2005 02:11:12 -0000       1.3
@@ -44,12 +44,12 @@
        {
                int i;
                Ewl_Widget *item;
+               Ewl_Widget *foo;
                char *m_items[] = {"File",
-                                                       "Test",
-                                                       "About",
-                                                       NULL};
+                                  "Test",
+                                  "About",
+                                  NULL};
                for(i = 0; m_items[i] != NULL; i++) {
-                       Ewl_Widget *foo;
                        item = ewl_menubar_menu_add(EWL_MENUBAR(h_menubar), 
NULL, m_items[i]);
 
                        foo = ewl_menu_item_new(NULL, "foo");
@@ -63,6 +63,21 @@
                        if (i != 0 && (i % 1) == 0) 
                                
ewl_menubar_seperator_add(EWL_MENUBAR(h_menubar));
                }
+
+               item = ewl_spacer_new();
+               ewl_object_fill_policy_set(EWL_OBJECT(item), EWL_FLAG_FILL_ALL);
+               ewl_container_child_append(EWL_CONTAINER(h_menubar), item);
+               ewl_widget_show(item);
+
+               item = ewl_menubar_menu_add(EWL_MENUBAR(h_menubar), NULL, 
"Help");
+
+               foo = ewl_menu_item_new(NULL, "foo");
+               ewl_container_child_append(EWL_CONTAINER(item), foo);
+               ewl_widget_show(foo);
+
+               foo = ewl_menu_item_new(NULL, "foobar");
+               ewl_container_child_append(EWL_CONTAINER(item), foo);
+               ewl_widget_show(foo);
        }
        ewl_container_child_append(EWL_CONTAINER(box), h_menubar);
        ewl_widget_show(h_menubar);
@@ -72,10 +87,10 @@
                int i;
                Ewl_Widget *item;
                char *m_items[] = {"About",
-                               "Left",
-                               "Right",
-                               "foo",
-                               NULL};
+                                  "Left",
+                                  "Right",
+                                  "foo",
+                                  NULL};
                for(i = 0; m_items[i] != NULL; i++) {
                        Ewl_Widget *foo;
                        item = ewl_menubar_menu_add(EWL_MENUBAR(v_menubar), 
NULL, m_items[i]);




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to