Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_menubar.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/lib/ewl_menubar.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_menubar.c 28 Mar 2005 07:04:28 -0000 1.2 +++ ewl_menubar.c 8 Jun 2005 02:11:12 -0000 1.3 @@ -48,17 +48,23 @@ ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK); mb->inner_box = EWL_BOX(ewl_hbox_new()); + ewl_object_fill_policy_set(EWL_OBJECT(mb->inner_box), + EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK); } else if (orientation == EWL_ORIENTATION_VERTICAL) { ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_VFILL | EWL_FLAG_FILL_HSHRINK); mb->inner_box = EWL_BOX(ewl_vbox_new()); + ewl_object_fill_policy_set(EWL_OBJECT(mb->inner_box), + EWL_FLAG_FILL_VFILL | EWL_FLAG_FILL_HSHRINK); } ewl_container_child_append(EWL_CONTAINER(mb), EWL_WIDGET(mb->inner_box)); + /* ewl_object_fill_policy_set(EWL_OBJECT(mb->inner_box), EWL_FLAG_FILL_SHRINK); + */ ewl_widget_internal_set(EWL_WIDGET(mb->inner_box), TRUE); ewl_container_redirect_set(EWL_CONTAINER(mb), EWL_CONTAINER(mb->inner_box)); @@ -88,6 +94,7 @@ menu = ewl_imenu_new(img, title); ewl_container_child_append(EWL_CONTAINER(mb), menu); + ewl_object_fill_policy_set(EWL_OBJECT(menu), EWL_FLAG_FILL_NONE); ewl_widget_show(menu); DRETURN_PTR(EWL_WIDGET(menu), DLEVEL_STABLE); ------------------------------------------------------- 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