Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/text_editor


Modified Files:
        ewl_text_editor_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/text_editor/ewl_text_editor_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_text_editor_test.c      7 May 2008 13:38:20 -0000       1.5
+++ ewl_text_editor_test.c      11 Jun 2008 23:04:44 -0000      1.6
@@ -163,8 +163,7 @@
                 ewl_container_child_append(EWL_CONTAINER(hbox), o);
                 ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED,
                                                 ete_cb_styles_changed, NULL);
-                ewl_object_fill_policy_set(EWL_OBJECT(o),
-                                EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
+                ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
                 ewl_widget_show(o);
 
                 o = ewl_label_new();
@@ -231,7 +230,7 @@
                         ewl_button_label_set(EWL_BUTTON(o), btns[i].name);
                         ewl_container_child_append(EWL_CONTAINER(hbox), o);
                         ewl_object_fill_policy_set(EWL_OBJECT(o),
-                                        
EWL_FLAG_FILL_HSHRINK|EWL_FLAG_FILL_VSHRINK);
+                                        EWL_FLAG_FILL_NONE);
                         ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
btns[i].cb, NULL);
                         ewl_widget_show(o);
                 }



-------------------------------------------------------------------------
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

Reply via email to