diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-01-22 02:50:19 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-01-22 02:50:19 +0800 |
commit | 5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51 (patch) | |
tree | fa829112feb4eeece07eb7e6f8fd7057d9e70fa9 /calendar/gui/gnome-cal.c | |
parent | 4e676f28fcd8bb7e5430c696bb6e6b711e18bf25 (diff) | |
download | gsoc2013-evolution-5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51.tar gsoc2013-evolution-5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51.tar.gz gsoc2013-evolution-5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51.tar.bz2 gsoc2013-evolution-5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51.tar.lz gsoc2013-evolution-5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51.tar.xz gsoc2013-evolution-5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51.tar.zst gsoc2013-evolution-5f7fc13ef6592a55df8ec0b34c6bbab5fa727d51.zip |
check return value from auth_new_cal_from_source(). Connect to
2004-01-21 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-tasks.c (e_tasks_add_todo_source): check return value
from auth_new_cal_from_source(). Connect to "backend_died"
signal on the ECal class.
(backend_died_cb): callback for "backend_died" that displays
an error message when that happens.
* gui/gnome-cal.c (backend_died_cb): use a GtkMessageDialog.
svn path=/trunk/; revision=24355
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 05194a30b3..4a3af0babc 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1897,6 +1897,7 @@ backend_error_cb (ECal *client, const char *message, gpointer data) static void backend_died_cb (ECal *client, gpointer data) { + GtkWidget *dialog; GnomeCalendar *gcal; GnomeCalendarPrivate *priv; char *message; @@ -1925,7 +1926,11 @@ backend_died_cb (ECal *client, gpointer data) e_calendar_view_set_status_message (priv->views[i], NULL); } - gnome_error_dialog_parented (message, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal)))); + dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal))), + 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, + message); + gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); g_free (message); g_free (uristr); } |