aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index f4a849db11..9c89fbdf53 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -715,7 +715,10 @@ event_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates)
static gboolean
get_widgets (EventPage *epage)
{
+ CompEditorPage *page = COMP_EDITOR_PAGE (epage);
EventPagePrivate *priv;
+ GSList *accel_groups;
+ GtkWidget *toplevel;
priv = epage->priv;
@@ -725,6 +728,15 @@ get_widgets (EventPage *epage)
if (!priv->main)
return FALSE;
+ /* Get the GtkAccelGroup from the toplevel window, so we can install
+ it when the notebook page is mapped. */
+ toplevel = gtk_widget_get_toplevel (priv->main);
+ accel_groups = gtk_accel_groups_from_object (GTK_OBJECT (toplevel));
+ if (accel_groups) {
+ page->accel_group = accel_groups->data;
+ gtk_accel_group_ref (page->accel_group);
+ }
+
gtk_widget_ref (priv->main);
gtk_widget_unparent (priv->main);