aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorSeth Alves <alves@src.gnome.org>2000-04-08 23:39:04 +0800
committerSeth Alves <alves@src.gnome.org>2000-04-08 23:39:04 +0800
commitbf8ac9cd55803fc7c71f1e5c476b678472c8524b (patch)
tree5d0a1a2d770b54423f4e6dde02db24ac3cbe8c26 /calendar/gui
parenta16423ef8ad6ab23085e0b458c3f66aa7124fef4 (diff)
downloadgsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.tar
gsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.tar.gz
gsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.tar.bz2
gsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.tar.lz
gsoc2013-evolution-bf8ac9cd55803fc7c71f1e5c476b678472c8524b.tar.xz
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')
-rw-r--r--calendar/gui/gncal-todo.c6
-rw-r--r--calendar/gui/gnome-cal.c5
-rw-r--r--calendar/gui/goto.c11
3 files changed, 15 insertions, 7 deletions
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c
index 8b249c3fb7..7c7752d127 100644
--- a/calendar/gui/gncal-todo.c
+++ b/calendar/gui/gncal-todo.c
@@ -139,10 +139,12 @@ simple_todo_editor (GncalTodo *todo, iCalObject *ico)
GNOME_STOCK_BUTTON_OK,
GNOME_STOCK_BUTTON_CANCEL,
NULL);
- gnome_dialog_set_parent (GNOME_DIALOG (dialog), GTK_WINDOW (todo->calendar));
+ gnome_dialog_set_parent (GNOME_DIALOG (dialog),
+ GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (todo->calendar))));
hbox = gtk_hbox_new (FALSE, 4);
gtk_container_border_width (GTK_CONTAINER (hbox), 4);
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox),
+ hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 775762ca85..7b784fc613 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -241,7 +241,10 @@ gnome_calendar_new (char *title)
app->prefix = g_strconcat ("/", app->name, "/", NULL);
*/
- /* gtk_window_set_title(GTK_WINDOW(retval), title); */
+ /*
+ gtk_window_set_title (GTK_WINDOW (gtk_widget_get_toplevel (retval)),
+ title);
+ */
gcal->current_display = time_day_begin (time (NULL));
gcal->client = cal_client_new ();
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);
}