diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-05 19:57:30 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-05 19:57:30 +0800 |
commit | 4ec46cc05fcb94d181fb9c2412984a1446647c85 (patch) | |
tree | d16ce30e77dd539c03509237dd4c723d46aea97a /e-util/e-util.c | |
parent | 5ea7e23aef0c239af2600c95419ba0bda0f08b3c (diff) | |
parent | 19163c2b71e6128fc9b32287b99b1f4422324c2d (diff) | |
download | gsoc2013-evolution-4ec46cc05fcb94d181fb9c2412984a1446647c85.tar gsoc2013-evolution-4ec46cc05fcb94d181fb9c2412984a1446647c85.tar.gz gsoc2013-evolution-4ec46cc05fcb94d181fb9c2412984a1446647c85.tar.bz2 gsoc2013-evolution-4ec46cc05fcb94d181fb9c2412984a1446647c85.tar.lz gsoc2013-evolution-4ec46cc05fcb94d181fb9c2412984a1446647c85.tar.xz gsoc2013-evolution-4ec46cc05fcb94d181fb9c2412984a1446647c85.tar.zst gsoc2013-evolution-4ec46cc05fcb94d181fb9c2412984a1446647c85.zip |
Merge from master
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 41 |
1 files changed, 0 insertions, 41 deletions
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 @@ -489,47 +489,6 @@ e_categories_add_change_hook (GHookFunc func, } /** - * 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 * |