Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: ewl_embed_test.c main.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/ewl_embed_test.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- ewl_embed_test.c 7 May 2008 13:38:14 -0000 1.21 +++ ewl_embed_test.c 11 Jun 2008 23:04:42 -0000 1.22 @@ -169,7 +169,7 @@ wg = ewl_button_new(); ewl_button_label_set(EWL_BUTTON(wg), "append"); - ewl_object_fill_policy_set(EWL_OBJECT(wg), EWL_FLAG_FILL_SHRINK); + ewl_object_fill_policy_set(EWL_OBJECT(wg), EWL_FLAG_FILL_NONE); ewl_container_child_append(EWL_CONTAINER(c), wg); ewl_callback_append(wg, EWL_CALLBACK_CLICKED, insert, NULL); ewl_widget_show(wg); =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v retrieving revision 1.102 retrieving revision 1.103 diff -u -3 -r1.102 -r1.103 --- main.c 15 May 2008 13:59:11 -0000 1.102 +++ main.c 11 Jun 2008 23:04:42 -0000 1.103 @@ -30,8 +30,8 @@ #define NULL_PATH "/dev/null" -#define MAIN_WIDTH 640 -#define MAIN_HEIGHT 320 +#define MAIN_WIDTH 0 +#define MAIN_HEIGHT 0 static Ewl_Model *expansion_model = NULL; @@ -702,7 +702,7 @@ ewl_container_child_append(EWL_CONTAINER(o), o2); ewl_button_label_set(EWL_BUTTON(o2), "Run unit tests"); ewl_callback_append(o2, EWL_CALLBACK_CLICKED, cb_run_unit_tests, NULL); - ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_SHRINK); + ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_NONE); ewl_widget_name_set(o2, "unit_test_button"); ewl_widget_show(o2); ------------------------------------------------------------------------- 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