diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-01-25 06:45:53 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-01-25 06:45:53 +0800 |
commit | e1e8526ea808a8d30251b7c871ffcd820b7c223d (patch) | |
tree | d61ece3425ac551468a7f8490d9f5592a744615a /calendar/gui/e-tasks.c | |
parent | 419c24ed2a3901b126c461aa91b57a8ee3451d02 (diff) | |
download | gsoc2013-evolution-e1e8526ea808a8d30251b7c871ffcd820b7c223d.tar.gz gsoc2013-evolution-e1e8526ea808a8d30251b7c871ffcd820b7c223d.tar.zst gsoc2013-evolution-e1e8526ea808a8d30251b7c871ffcd820b7c223d.zip |
new function.
2004-01-24 Rodrigo Moya <rodrigo@ximian.com>
* gui/calendar-component.[ch]
(calendar_component_peek_source_selector): new function.
* gui/tasks-component.[ch]
(tasks_component_peek_source_selector): new function.
* gui/e-tasks.c (backend_died_cb):
* gui/gnome-cal.c (backend_died_cb): don't tell the user to restart
Evolution, there is no need now, just unselecting and selecting
back the calendar loads it again. Also, remove the crashed client
from the list of loaded clients. Also, unselect the source on
the source selector.
svn path=/trunk/; revision=24417
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index caba394248..bd4162c617 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -763,10 +763,7 @@ backend_died_cb (ECal *client, gpointer data) priv = tasks->priv; /* FIXME: this doesn't remove the task list from the list or anything */ - message = g_strdup_printf (_("The task backend for\n%s\n has crashed. " - "You will have to restart Evolution in order " - "to use it again"), - e_cal_get_uri (client)); + message = g_strdup_printf (_("The task backend for\n%s\n has crashed."), e_cal_get_uri (client)); e_calendar_table_set_status_message (E_CALENDAR_TABLE (e_tasks_get_calendar_table (tasks)), NULL); dialog = gtk_message_dialog_new (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (tasks))), @@ -775,6 +772,14 @@ backend_died_cb (ECal *client, gpointer data) gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); g_free (message); + + e_source_selector_unselect_source ( + tasks_component_peek_source_selector (tasks_component_peek ()), + e_cal_get_source (client)); + + g_hash_table_remove (priv->clients, e_cal_get_uri (client)); + priv->clients_list = g_list_remove (priv->clients_list, client); + g_object_unref (client); } void |