From 0d838a10a2e8eb6a5c99637a037b34b31a00cdf8 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Fri, 24 Jan 2003 22:02:49 +0000 Subject: Don't insist appointment is updated if both old and new summary are blank. 2003-01-24 Hans Petter Jansson * gui/e-day-view.c (e_day_view_on_editing_stopped): Don't insist appointment is updated if both old and new summary are blank. * gui/e-week-view.c (e_week_view_on_editing_stopped): Ditto. * gui/e-timezone-entry.c (on_button_clicked): Timezone dialog is now a GtkDialog. Treat it as such. * gui/goto.c (ecal_event): Goto dialog is now a GtkDialog. Treat it as such. (goto_dialog): Ditto. * gui/goto-dialog.glade: Set the return IDs from the dialog buttons. * gui/dialogs/meeting-page.c (popup_delegate_cb): Enable the delegate dialog. It's now a GtkDialog, so treat it like one. (right_click_cb): Use GTK stock item, not GNOME (that doesn't work anymore). * gui/e-delegate-dialog.glade: Set the return IDs from dialog buttons. * gui/print.c (print_calendar): Correct the print dialog init. Code is still not enabled, though. * gui/tasks-control.c (print_tasks): Add a warning about printing being disabled. svn path=/trunk/; revision=19624 --- calendar/gui/goto.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'calendar/gui/goto.c') diff --git a/calendar/gui/goto.c b/calendar/gui/goto.c index 32aa48a37e..2ce74507d5 100644 --- a/calendar/gui/goto.c +++ b/calendar/gui/goto.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include "calendar-commands.h" @@ -97,7 +98,8 @@ ecal_event (ECalendarItem *calitem, gpointer user_data) gnome_calendar_goto (dlg->gcal, et); - gnome_dialog_close (GNOME_DIALOG (dlg->dialog)); + gtk_dialog_response (GTK_DIALOG (dlg->dialog), GTK_RESPONSE_NONE); + /* gnome_dialog_close (GNOME_DIALOG (dlg->dialog)); */ } /* Returns the current time, for the ECalendarItem. */ @@ -236,10 +238,12 @@ goto_dialog (GnomeCalendar *gcal) goto_dialog_init_widgets (dlg); - gnome_dialog_set_parent (GNOME_DIALOG (dlg->dialog), - GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal)))); + gtk_window_set_transient_for (GTK_WINDOW (dlg->dialog), + GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal)))); + + b = gtk_dialog_run (GTK_DIALOG (dlg->dialog)); + gtk_widget_destroy (dlg->dialog); - b = gnome_dialog_run_and_close (GNOME_DIALOG (dlg->dialog)); if (b == 0) goto_today (dlg); -- cgit