diff options
Diffstat (limited to 'calendar/gui/dialogs/schedule-page.c')
-rw-r--r-- | calendar/gui/dialogs/schedule-page.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c index 3aeb03b328..dd467b42f9 100644 --- a/calendar/gui/dialogs/schedule-page.c +++ b/calendar/gui/dialogs/schedule-page.c @@ -133,7 +133,7 @@ schedule_page_finalize (GObject *object) priv = spage->priv; if (priv->main) - gtk_widget_unref (priv->main); + g_object_unref (priv->main); if (priv->xml) { g_object_unref (priv->xml); @@ -358,12 +358,10 @@ get_widgets (SchedulePage *spage) it when the notebook page is mapped. */ toplevel = gtk_widget_get_toplevel (priv->main); accel_groups = gtk_accel_groups_from_object (G_OBJECT (toplevel)); - if (accel_groups) { - page->accel_group = accel_groups->data; - gtk_accel_group_ref (page->accel_group); - } + if (accel_groups) + page->accel_group = g_object_ref (accel_groups->data); - gtk_widget_ref (priv->main); + g_object_ref (priv->main); gtk_container_remove (GTK_CONTAINER (priv->main->parent), priv->main); #undef GW |