Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_widget.c 


Log Message:
Catch some corner cases of widgets not being configured at the correct time
with the notebook and tree.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -3 -r1.86 -r1.87
--- ewl_widget.c        14 Nov 2003 21:25:26 -0000      1.86
+++ ewl_widget.c        14 Nov 2003 21:50:56 -0000      1.87
@@ -135,6 +135,15 @@
                ewl_widget_show(w);
        }
 
+       /*
+        * If somehow the child doesn't cause the parent to get a configure
+        * request, this will catch it.
+        */
+       if (w->parent)
+               ewl_widget_configure(w->parent);
+       else
+               ewl_widget_configure(w);
+
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
@@ -196,6 +205,9 @@
        if (flags)
                ewl_realize_request(w);
 
+       if (w->parent)
+               ewl_widget_configure(w->parent);
+
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
@@ -225,6 +237,9 @@
        ewl_object_remove_visible(EWL_OBJECT(w), EWL_FLAG_VISIBLE_SHOWN);
        ewl_callback_call(w, EWL_CALLBACK_HIDE);
 
+       if (w->parent)
+               ewl_widget_configure(w->parent);
+
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
@@ -533,6 +548,9 @@
                        ewl_container_call_child_add(EWL_CONTAINER(p), w);
                }
        }
+
+       if (p)
+               ewl_widget_configure(p);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to