Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_container.c ewl_widget.c
Log Message:
Hide widgets on destroy to be sure that the container callbacks are called.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_container.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- ewl_container.c 18 Aug 2004 03:15:20 -0000 1.74
+++ ewl_container.c 19 Aug 2004 02:44:01 -0000 1.75
@@ -506,8 +506,13 @@
if (!ewl_object_flags_has(EWL_OBJECT(w),
EWL_FLAG_PROPERTY_INTERNAL,
EWL_FLAGS_PROPERTY_MASK)) {
- ecore_list_remove(c->children);
ewl_widget_destroy(w);
+
+ /*
+ * Start over in case the list was modified from a
+ * callback.
+ */
+ ecore_list_goto_first(c->children);
}
else
ecore_list_next(c->children);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -3 -r1.119 -r1.120
--- ewl_widget.c 18 Aug 2004 03:15:21 -0000 1.119
+++ ewl_widget.c 19 Aug 2004 02:44:01 -0000 1.120
@@ -242,6 +242,8 @@
if (dnd_widget == w)
dnd_widget = NULL;
+ ewl_widget_hide(w);
+
if (w->parent)
ewl_container_child_remove(EWL_CONTAINER(w->parent), w);
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs