diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-09-30 11:25:23 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-09-30 11:25:23 +0800 |
commit | c261a99bc4765ccb99206ed6105a323698b514c7 (patch) | |
tree | e31aad86711d0be181ac703713a79586c914c7f5 /e-util/e-util.c | |
parent | 098ea8aad8d3249d9faca5df5b4fe67b94ba660f (diff) | |
download | gsoc2013-evolution-c261a99bc4765ccb99206ed6105a323698b514c7.tar.gz gsoc2013-evolution-c261a99bc4765ccb99206ed6105a323698b514c7.tar.zst gsoc2013-evolution-c261a99bc4765ccb99206ed6105a323698b514c7.zip |
Memos are mostly working now. Tasks to follow.
svn path=/branches/kill-bonobo/; revision=36495
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index 0055407068..0c737d08a3 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -140,6 +140,32 @@ e_load_ui_definition (GtkUIManager *ui_manager, } /** + * e_action_group_remove_all_actions: + * @action_group: a #GtkActionGroup + * + * Removes all actions from the action group. + **/ +void +e_action_group_remove_all_actions (GtkActionGroup *action_group) +{ + GList *list, *iter; + + /* XXX I've proposed this function for inclusion in GTK+. + * GtkActionGroup stores actions in an internal hash + * table and can do this more efficiently by calling + * g_hash_table_remove_all(). + * + * http://bugzilla.gnome.org/show_bug.cgi?id=550485 */ + + g_return_if_fail (GTK_IS_ACTION_GROUP (action_group)); + + list = gtk_action_group_list_actions (action_group); + for (iter = list; iter != NULL; iter = iter->next) + gtk_action_group_remove_action (action_group, iter->data); + g_list_free (list); +} + +/** * e_str_without_underscores: * @s: the string to strip underscores from. * |