Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_row.c ewl_row.h
Log Message:
Fix sizing issues in a row on a show/hide/show combination.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_row.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_row.c 21 Apr 2005 06:18:04 -0000 1.5
+++ ewl_row.c 22 Jun 2005 19:08:48 -0000 1.6
@@ -41,6 +41,7 @@
ewl_widget_inherit(EWL_WIDGET(row), "row");
ewl_container_show_notify_set(EWL_CONTAINER(row),
ewl_row_child_show_cb);
+ ewl_container_hide_notify_set(EWL_CONTAINER(row),
ewl_row_child_hide_cb);
ewl_container_resize_notify_set(EWL_CONTAINER(row), ewl_row_resize_cb);
ewl_object_fill_policy_set(EWL_OBJECT(row), EWL_FLAG_FILL_HFILL);
@@ -285,6 +286,22 @@
}
void
+ewl_row_child_hide_cb(Ewl_Container *c, Ewl_Widget *w)
+{
+ Ewl_Row *row;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+
+ row = EWL_ROW(c);
+
+ ewl_container_largest_prefer(c, EWL_ORIENTATION_VERTICAL);
+ ewl_object_preferred_inner_w_set(EWL_OBJECT(c), PREFERRED_W(c) -
+ ewl_object_preferred_w_get(EWL_OBJECT(w)));
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+void
ewl_row_resize_cb(Ewl_Container *c, Ewl_Widget *w __UNUSED__,
int size, Ewl_Orientation o)
{
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_row.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_row.h 25 Apr 2005 05:44:19 -0000 1.4
+++ ewl_row.h 22 Jun 2005 19:08:49 -0000 1.5
@@ -42,6 +42,7 @@
void *user_data);
void ewl_row_child_show_cb(Ewl_Container *c, Ewl_Widget *w);
+void ewl_row_child_hide_cb(Ewl_Container *c, Ewl_Widget *w);
void ewl_row_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
Ewl_Orientation o);
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs