From 53bc6ffc531d7a7188e15be245a31f301090ee15 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 10 Sep 2011 11:47:15 -0400 Subject: The EExtension framework is now in libebackend. The EModule, EExtensible and EExtension classes as well as the e_type_traverse() function have been moved to Evolution-Data-Server's libebackend library to replace e-data-server-module.c. Now Evolution-Data-Server modules use the same framework as Evolution. --- e-util/e-util.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'e-util/e-util.c') diff --git a/e-util/e-util.c b/e-util/e-util.c index 8ededeeb9d..cd489849e4 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -488,47 +488,6 @@ e_categories_add_change_hook (GHookFunc func, g_hook_append (&hook_list, hook); } -/** - * e_type_traverse: - * @parent_type: the root #GType to traverse from - * @func: the function to call for each visited #GType - * @user_data: user data to pass to the function - * - * Calls @func for all instantiable subtypes of @parent_type. - * - * This is often useful for extending functionality by way of #EModule. - * A module may register a subtype of @parent_type in its e_module_load() - * function. Then later on the application will call e_type_traverse() - * to instantiate all registered subtypes of @parent_type. - **/ -void -e_type_traverse (GType parent_type, - ETypeFunc func, - gpointer user_data) -{ - GType *children; - guint n_children, ii; - - g_return_if_fail (func != NULL); - - children = g_type_children (parent_type, &n_children); - - for (ii = 0; ii < n_children; ii++) { - GType type = children[ii]; - - /* Recurse over the child's children. */ - e_type_traverse (type, func, user_data); - - /* Skip abstract types. */ - if (G_TYPE_IS_ABSTRACT (type)) - continue; - - func (type, user_data); - } - - g_free (children); -} - /** * e_str_without_underscores: * @string: the string to strip underscores from -- cgit v1.2.3