Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_container.c 


Log Message:
A couple more checks that a container clip box is available when accessing it.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_container.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -3 -r1.55 -r1.56
--- ewl_container.c     9 Dec 2003 17:19:49 -0000       1.55
+++ ewl_container.c     17 Dec 2003 02:18:37 -0000      1.56
@@ -254,8 +254,11 @@
        /*
         * If the child isn't found, then this isn't it's parent.
         */
-       if (!temp)
+       if (!temp) {
+               if (pc->clip_box)
+                       evas_object_hide(pc->clip_box);
                DRETURN(DLEVEL_STABLE);
+       }
 
        /*
         * Remove the child from the parent and set the childs parent to NULL
@@ -263,7 +266,7 @@
        ewd_list_remove(pc->children);
        ewl_container_call_child_remove(pc, child);
 
-       if (ewd_list_is_empty(pc->children))
+       if (ewd_list_is_empty(pc->children) && pc->clip_box)
                evas_object_hide(pc->clip_box);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -782,7 +785,8 @@
        /*
         * Only show it if there are children, otherwise we get a colored box.
         */
-       evas_object_show(c->clip_box);
+       if (c->clip_box)
+               evas_object_show(c->clip_box);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to