aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-04-11 08:14:51 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-04-11 08:14:51 +0800
commit942cdf2df9091e347e09c25d62015e77775f38b6 (patch)
tree6800b693776d993e8514fcd0c7fe95510fded7c6 /widgets/misc/e-attachment-view.c
parent1509a85170184895f6c91f9c57167a74af5cd2db (diff)
downloadgsoc2013-evolution-942cdf2df9091e347e09c25d62015e77775f38b6.tar
gsoc2013-evolution-942cdf2df9091e347e09c25d62015e77775f38b6.tar.gz
gsoc2013-evolution-942cdf2df9091e347e09c25d62015e77775f38b6.tar.bz2
gsoc2013-evolution-942cdf2df9091e347e09c25d62015e77775f38b6.tar.lz
gsoc2013-evolution-942cdf2df9091e347e09c25d62015e77775f38b6.tar.xz
gsoc2013-evolution-942cdf2df9091e347e09c25d62015e77775f38b6.tar.zst
gsoc2013-evolution-942cdf2df9091e347e09c25d62015e77775f38b6.zip
Bug fixes and formerly unfinished bits of the attachment rewrite.
svn path=/branches/kill-bonobo/; revision=37513
Diffstat (limited to 'widgets/misc/e-attachment-view.c')
-rw-r--r--widgets/misc/e-attachment-view.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/widgets/misc/e-attachment-view.c b/widgets/misc/e-attachment-view.c
index 5c7acd4561..f976b71483 100644
--- a/widgets/misc/e-attachment-view.c
+++ b/widgets/misc/e-attachment-view.c
@@ -1456,6 +1456,28 @@ e_attachment_view_get_action (EAttachmentView *view,
}
GtkActionGroup *
+e_attachment_view_add_action_group (EAttachmentView *view,
+ const gchar *group_name)
+{
+ GtkActionGroup *action_group;
+ GtkUIManager *ui_manager;
+ const gchar *domain;
+
+ g_return_val_if_fail (E_IS_ATTACHMENT_VIEW (view), NULL);
+ g_return_val_if_fail (group_name != NULL, NULL);
+
+ ui_manager = e_attachment_view_get_ui_manager (view);
+ domain = GETTEXT_PACKAGE;
+
+ action_group = gtk_action_group_new (group_name);
+ gtk_action_group_set_translation_domain (action_group, domain);
+ gtk_ui_manager_insert_action_group (ui_manager, action_group, 0);
+ g_object_unref (action_group);
+
+ return action_group;
+}
+
+GtkActionGroup *
e_attachment_view_get_action_group (EAttachmentView *view,
const gchar *group_name)
{