aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-10-20 23:56:38 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-10-20 23:56:38 +0800
commit0031f7a894a5498d985e438af3527dc6905c4b70 (patch)
tree58b418d0e768d9c1ad2d74d2108c1bc0a5e41fc5
parent0ec5adff542f07f1e6117cf908c9b0a71b7ccb9c (diff)
downloadgsoc2013-evolution-0031f7a894a5498d985e438af3527dc6905c4b70.tar.gz
gsoc2013-evolution-0031f7a894a5498d985e438af3527dc6905c4b70.tar.zst
gsoc2013-evolution-0031f7a894a5498d985e438af3527dc6905c4b70.zip
** Fixes bug #555958 (patch by Anis Elleuch)
2008-10-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #555958 (patch by Anis Elleuch) * calendar/gui/dialogs/comp-editor.c (comp_editor_init): Add the UI manager's accelerator group to the editor window so that menu shortcut keys work. svn path=/trunk/; revision=36667
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/dialogs/comp-editor.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index cd2362f4a3..343a76a9e0 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-20 Matthew Barnes <mbarnes@redhat.com>
+
+ ** Fixes bug #555958 (patch by Anis Elleuch)
+
+ * gui/dialogs/comp-editor.c (comp_editor_init):
+ Add the UI manager's accelerator group to the editor window
+ so that menu shortcut keys work.
+
2008-10-20 Milan Crha <mcrha@redhat.com>
** Fix for bug #553715
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index cbd6b3f778..16bdb979e1 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -1741,6 +1741,10 @@ comp_editor_init (CompEditor *editor)
priv->attachment_bar = e_attachment_bar_new (NULL);
priv->manager = gtk_ui_manager_new ();
+ gtk_window_add_accel_group (
+ GTK_WINDOW (editor),
+ gtk_ui_manager_get_accel_group (priv->manager));
+
action_group = gtk_action_group_new ("core");
gtk_action_group_set_translation_domain (
action_group, GETTEXT_PACKAGE);