diff options
Diffstat (limited to 'calendar/gui/dialogs/task-details-page.c')
-rw-r--r-- | calendar/gui/dialogs/task-details-page.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 474b80da12..fda85f0aa5 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -446,7 +446,10 @@ task_details_page_fill_component (CompEditorPage *page, CalComponent *comp) static gboolean get_widgets (TaskDetailsPage *tdpage) { + CompEditorPage *page = COMP_EDITOR_PAGE (tdpage); TaskDetailsPagePrivate *priv; + GSList *accel_groups; + GtkWidget *toplevel; priv = tdpage->priv; @@ -456,6 +459,15 @@ get_widgets (TaskDetailsPage *tdpage) 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); |