diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-01-25 06:02:49 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-01-25 06:02:49 +0800 |
commit | 0d838a10a2e8eb6a5c99637a037b34b31a00cdf8 (patch) | |
tree | 64eaa789ebd8968f9d76cf3f3067f2297f4521c3 /calendar/gui/goto.c | |
parent | 1591861a2c3e856551b388c3de1a4da1d7f0fcd8 (diff) | |
download | gsoc2013-evolution-0d838a10a2e8eb6a5c99637a037b34b31a00cdf8.tar.gz gsoc2013-evolution-0d838a10a2e8eb6a5c99637a037b34b31a00cdf8.tar.zst gsoc2013-evolution-0d838a10a2e8eb6a5c99637a037b34b31a00cdf8.zip |
Don't insist appointment is updated if both old and new summary are blank.
2003-01-24 Hans Petter Jansson <hpj@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/goto.c')
-rw-r--r-- | calendar/gui/goto.c | 12 |
1 files changed, 8 insertions, 4 deletions
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 <gtk/gtkspinbutton.h> #include <gtk/gtktogglebutton.h> #include <gtk/gtkwindow.h> +#include <gtk/gtkdialog.h> #include <libgnomeui/gnome-dialog.h> #include <glade/glade.h> #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); |