Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/progressbar Modified Files: ewl_progressbar_test.c Log Message: add shrinkable fill flag (bug 178) and fix bug 20 This will slightly change the meaning of the shrink flag: 'shrink': the widget wishes to be smaller then its preferred size 'shrinkable': the widget can be smaller then its preferred size For more information see the discussion in bug 178. If you are using the (old) shrink fill policy in your application, you may want to check if it still does what you want it to. Or if 'shrinkable' isn't better for the job. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/progressbar/ewl_progressbar_test.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_progressbar_test.c 7 May 2008 13:38:19 -0000 1.3 +++ ewl_progressbar_test.c 11 Jun 2008 23:04:44 -0000 1.4 @@ -90,7 +90,10 @@ progressbar_box = ewl_hbox_new(); ewl_container_child_append(EWL_CONTAINER(progressbar_vbox), progressbar_box); - ewl_box_spacing_set(EWL_BOX(progressbar_box), 0); + ewl_object_fill_policy_set(EWL_OBJECT(progressbar_box), + EWL_FLAG_FILL_NONE); + ewl_object_alignment_set(EWL_OBJECT(progressbar_box), + EWL_FLAG_ALIGN_CENTER); ewl_widget_show(progressbar_box); button = ewl_button_new(); @@ -98,8 +101,6 @@ ewl_container_child_append(EWL_CONTAINER(progressbar_box), button); ewl_callback_prepend(button, EWL_CALLBACK_CLICKED, cb_rerun_progressbars, NULL); - - ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK); ewl_widget_show (button); button = ewl_button_new(); @@ -107,7 +108,6 @@ ewl_container_child_append(EWL_CONTAINER(progressbar_box), button); ewl_callback_prepend(button, EWL_CALLBACK_CLICKED, cb_set_new_range, NULL); - ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK); ewl_widget_show (button); return 1; ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs