diff options
Diffstat (limited to 'calendar/gui/dialogs/meeting-page.c')
-rw-r--r-- | calendar/gui/dialogs/meeting-page.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c index 447022e81c..3ae487c31d 100644 --- a/calendar/gui/dialogs/meeting-page.c +++ b/calendar/gui/dialogs/meeting-page.c @@ -456,7 +456,10 @@ meeting_page_fill_component (CompEditorPage *page, CalComponent *comp) static gboolean get_widgets (MeetingPage *mpage) { + CompEditorPage *page = COMP_EDITOR_PAGE (mpage); MeetingPagePrivate *priv; + GSList *accel_groups; + GtkWidget *toplevel; priv = mpage->priv; @@ -466,6 +469,15 @@ get_widgets (MeetingPage *mpage) 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); |