diff options
author | Seth Alves <alves@src.gnome.org> | 2000-04-08 23:39:04 +0800 |
---|---|---|
committer | Seth Alves <alves@src.gnome.org> | 2000-04-08 23:39:04 +0800 |
commit | bf8ac9cd55803fc7c71f1e5c476b678472c8524b (patch) | |
tree | 5d0a1a2d770b54423f4e6dde02db24ac3cbe8c26 /calendar/gui/goto.c | |
parent | a16423ef8ad6ab23085e0b458c3f66aa7124fef4 (diff) | |
download | gsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.tar.gz gsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.tar.zst gsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.zip |
calendar is a frame instead of a window, now.
* gui/gncal-todo.c (simple_todo_editor): calendar is a frame instead
of a window, now.
* gui/gnome-cal.c (gnome_calendar_new): same
* gui/goto.c (goto_dialog): same
svn path=/trunk/; revision=2337
Diffstat (limited to 'calendar/gui/goto.c')
-rw-r--r-- | calendar/gui/goto.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c index 0acc19a331..c6399aabb3 100644 --- a/calendar/gui/goto.c +++ b/calendar/gui/goto.c @@ -264,7 +264,9 @@ goto_dialog (GnomeCalendar *gcal) goto_win = gnome_dialog_new (_("Go to date"), GNOME_STOCK_BUTTON_CANCEL, NULL); - gnome_dialog_set_parent (GNOME_DIALOG (goto_win), GTK_WINDOW (gcal)); + gnome_dialog_set_parent (GNOME_DIALOG (goto_win), + GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal)))); + vbox = GNOME_DIALOG (goto_win)->vbox; @@ -278,8 +280,8 @@ goto_dialog (GnomeCalendar *gcal) gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0); gtk_widget_show (w); - /* Create month item before creating the year controls, since the latter ones need the - * month_item to be created. + /* Create month item before creating the year controls, since the + * latter ones need the month_item to be created. */ days = create_days (tm.tm_mday, tm.tm_mon, tm.tm_year + 1900); @@ -318,6 +320,7 @@ goto_dialog (GnomeCalendar *gcal) gtk_window_set_modal (GTK_WINDOW (goto_win), TRUE); gnome_dialog_set_close (GNOME_DIALOG (goto_win), TRUE); - gnome_dialog_set_parent (GNOME_DIALOG (goto_win), GTK_WINDOW (gnome_calendar)); + gnome_dialog_set_parent (GNOME_DIALOG (goto_win), + GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gnome_calendar)))); gtk_widget_show (goto_win); } |