Enlightenment CVS committal

Author  : jethomas
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_container.c ewl_container.h ewl_mvc.c 


Log Message:
Patch from gasol adding a convenience function to recursively show a 
container's children.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_container.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -3 -r1.70 -r1.71
--- ewl_container.c     15 Feb 2008 23:52:22 -0000      1.70
+++ ewl_container.c     20 Apr 2008 03:45:17 -0000      1.71
@@ -1704,4 +1704,31 @@
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
+/**
+ * @param c: The container to work with
+ * @return Returns no value
+ * @brief A convenience function to recursively show the children of a 
container
+ */
+void
+ewl_container_children_show(Ewl_Container *c)
+{
+       Ewl_Widget *w;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR(c);
+       DCHECK_TYPE(c, EWL_CONTAINER_TYPE);
+
+       ewl_widget_show(EWL_WIDGET(c));
+
+       ewl_container_child_iterate_begin(c);
+       while ((w = ewl_container_child_next(c)))
+       {
+               if (EWL_CONTAINER_IS(w))
+                       ewl_container_children_show(EWL_CONTAINER(w));
+               else
+                       ewl_widget_show(w);
+       }
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
 
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_container.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- ewl_container.h     24 Jan 2008 00:51:22 -0000      1.36
+++ ewl_container.h     20 Apr 2008 03:45:17 -0000      1.37
@@ -145,7 +145,7 @@
 int             ewl_container_child_count_get(Ewl_Container *c);
 int             ewl_container_child_count_internal_get(Ewl_Container *c);
 int             ewl_container_child_count_visible_get(Ewl_Container *c);
-
+void            ewl_container_children_show(Ewl_Container *c);
 void            ewl_container_destroy(Ewl_Container *c);
 void            ewl_container_reset(Ewl_Container *c);
 void            ewl_container_callback_notify(Ewl_Container *c,
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_mvc.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- ewl_mvc.c   9 Dec 2007 00:27:17 -0000       1.38
+++ ewl_mvc.c   20 Apr 2008 03:45:17 -0000      1.39
@@ -33,7 +33,6 @@
 static void ewl_mvc_cb_sel_free(void *data);
 static void ewl_mvc_selection_free(Ewl_Selection *sel);
 
-
 /**
  * @param mvc: The MVC to initialize
  * @return Returns TRUE on success or FALSE if unsuccessful



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to