[Pkg-e-commits] [SCM] Enlightenment DR17 toolkit based (based on the EFL) branch, upstream-vcs, updated. 447de88121d145a078f1754a0cfebb704d363821

jethomas jethomas at alioth.debian.org
Sat Jun 7 18:34:03 UTC 2008


The following commit has been merged in the upstream-vcs branch:
commit 190be3bbacbdf7bad98893a25e8be62ed7552138
Author: jethomas <jethomas>
Date:   Sun Apr 20 03:45:17 2008 +0000

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

diff --git a/src/lib/ewl_container.c b/src/lib/ewl_container.c
index 3d185fc..0a2f15f 100644
--- a/src/lib/ewl_container.c
+++ b/src/lib/ewl_container.c
@@ -1704,4 +1704,31 @@ ewl_container_cb_widget_focus_in(Ewl_Widget *w, void *ev_data, void *user_data)
 	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);
+}
 
diff --git a/src/lib/ewl_container.h b/src/lib/ewl_container.h
index 27ae0e2..35f90a9 100644
--- a/src/lib/ewl_container.h
+++ b/src/lib/ewl_container.h
@@ -145,7 +145,7 @@ void 		 ewl_container_child_iterator_set(Ewl_Container *c,
 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,
diff --git a/src/lib/ewl_mvc.c b/src/lib/ewl_mvc.c
index 33f7e88..ae5415d 100644
--- a/src/lib/ewl_mvc.c
+++ b/src/lib/ewl_mvc.c
@@ -33,7 +33,6 @@ static void ewl_mvc_cb_highlight_destroy(Ewl_Widget *w, void *ev, void *data);
 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

-- 
Enlightenment DR17 toolkit based (based on the EFL)



More information about the Pkg-e-commits mailing list