diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-05-26 04:41:32 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-05-26 04:41:32 +0800 |
commit | 7dfee05355fb0086563434285ac1a524e78cd2bd (patch) | |
tree | 79bb392a6e972455a18e88076b7a91ba8dd81bab /calendar/gui/e-tasks.c | |
parent | 64b6b3d827e931ae17281acf72f2de9b259afe0f (diff) | |
download | gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar.gz gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar.zst gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.zip |
Make calendar-errors.xml.h and install the xml file.
2004-05-25 Jeffrey Stedfast <fejj@novell.com>
* Makefile.am: Make calendar-errors.xml.h and install the xml
file.
* calendar-errors.xml: New error definitions file.
* gui/gnome-cal.c (backend_died_cb): Use e-error
* gui/e-tasks.c (backend_died_cb): Use e-error
* gui/dialogs/send-comp.c (send_component_dialog): Use e-error
* gui/dialogs/save-comp.c (save_component_dialog): Use e-error
* gui/dialogs/delete-comp.c (delete_component_dialog): Use e-error
* gui/dialogs/cancel-comp.c (cancel_component_dialog): Use e-error
svn path=/trunk/; revision=26084
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 8669bb5c2c..07e2c9fdbd 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -34,6 +34,7 @@ #include <gal/menus/gal-view-factory-etable.h> #include <gal/menus/gal-view-etable.h> +#include "widgets/misc/e-error.h" #include "e-util/e-categories-config.h" #include "e-util/e-time-utils.h" #include "e-util/e-url.h" @@ -594,8 +595,6 @@ backend_died_cb (ECal *client, gpointer data) ETasks *tasks; ETasksPrivate *priv; ESource *source; - char *message; - GtkWidget *dialog; tasks = E_TASKS (data); priv = tasks->priv; @@ -608,15 +607,10 @@ backend_died_cb (ECal *client, gpointer data) gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SOURCE_REMOVED], source); e_calendar_table_set_status_message (E_CALENDAR_TABLE (e_tasks_get_calendar_table (tasks)), NULL); - - message = g_strdup_printf (_("The task backend for '%s' has crashed."), e_source_peek_name (source)); - dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (tasks))), - 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - message); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); - g_free (message); - + + e_error_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (tasks))), + "calendar:tasks-crashed", NULL); + g_object_unref (source); } |