Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/menubar Modified Files: ewl_menubar.c Log Message: Minor change in the separator layout for the menubar test. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/menubar/ewl_menubar.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ewl_menubar.c 18 Jan 2007 12:03:28 -0000 1.4 +++ ewl_menubar.c 16 Apr 2007 15:36:02 -0000 1.5 @@ -30,6 +30,15 @@ "About", NULL}; for(i = 0; m_items[i] != NULL; i++) { + + if (i != 0) { + Ewl_Widget *sep; + + sep = ewl_vseparator_new(); + ewl_container_child_append(EWL_CONTAINER(h_menubar), sep); + ewl_widget_show(sep); + } + item = ewl_menu_new(); ewl_button_label_set(EWL_BUTTON(item), m_items[i]); ewl_container_child_append(EWL_CONTAINER(h_menubar), item); @@ -45,13 +54,6 @@ ewl_container_child_append(EWL_CONTAINER(item), foo); ewl_widget_show(foo); - if (i != 0 && (i % 1) == 0) { - Ewl_Widget *sep; - - sep = ewl_vseparator_new(); - ewl_container_child_append(EWL_CONTAINER(h_menubar), sep); - ewl_widget_show(sep); - } } item = ewl_spacer_new(); @@ -89,6 +91,15 @@ for(i = 0; m_items[i] != NULL; i++) { Ewl_Widget *foo; + if (i != 0 && (i & 1)) + { + Ewl_Widget *sep; + + sep = ewl_hseparator_new(); + ewl_container_child_append(EWL_CONTAINER(v_menubar), sep); + ewl_widget_show(sep); + } + item = ewl_menu_new(); ewl_button_label_set(EWL_BUTTON(item), m_items[i]); ewl_container_child_append(EWL_CONTAINER(v_menubar), item); @@ -104,14 +115,6 @@ ewl_container_child_append(EWL_CONTAINER(item), foo); ewl_widget_show(foo); - if (i != 0 && (i % 2) == 0) - { - Ewl_Widget *sep; - - sep = ewl_hseparator_new(); - ewl_container_child_append(EWL_CONTAINER(v_menubar), sep); - ewl_widget_show(sep); - } } } ewl_container_child_append(EWL_CONTAINER(box), v_menubar); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs