aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/prop.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/prop.c')
-rw-r--r--calendar/gui/prop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/prop.c b/calendar/gui/prop.c
index 43b89df74a..c5169a05bd 100644
--- a/calendar/gui/prop.c
+++ b/calendar/gui/prop.c
@@ -710,8 +710,9 @@ properties (GtkWidget *toplevel)
prop_win = gnome_property_box_new ();
gtk_window_set_title (GTK_WINDOW (prop_win), _("Preferences"));
- gnome_dialog_set_parent (GNOME_DIALOG (prop_win), GTK_WINDOW (toplevel));
-
+ gnome_dialog_set_parent (GNOME_DIALOG (prop_win),
+ GTK_WINDOW (gtk_widget_get_toplevel (toplevel)));
+
create_time_display_page ();
create_colors_page ();
create_todo_page ();