aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-view.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index c8052b4216..f12a324953 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -83,6 +83,7 @@ static void search_result (GtkObject *object, EBookViewStatus status, EAddr
static void folder_bar_message (GtkObject *object, const gchar *status, EAddressbookView *eav);
static void stop_state_changed (GtkObject *object, EAddressbookView *eav);
static void writable_status (GtkObject *object, gboolean writable, EAddressbookView *eav);
+static void backend_died (GtkObject *object, EAddressbookView *eav);
static void command_state_change (EAddressbookView *eav);
static void alphabet_state_change (EAddressbookView *eav, gunichar letter);
@@ -252,6 +253,11 @@ e_addressbook_view_init (EAddressbookView *eav)
GTK_SIGNAL_FUNC (writable_status),
eav);
+ gtk_signal_connect (GTK_OBJECT(eav->model),
+ "backend_died",
+ GTK_SIGNAL_FUNC (backend_died),
+ eav);
+
eav->editable = FALSE;
eav->book = NULL;
eav->query = g_strdup (SHOW_ALL_SEARCH);
@@ -1361,6 +1367,17 @@ alphabet_state_change (EAddressbookView *eav, gunichar letter)
}
static void
+backend_died (GtkObject *object, EAddressbookView *eav)
+{
+ char *message = g_strdup_printf (_("The addressbook backend for\n%s\nhas crashed. "
+ "You will have to restart Evolution in order "
+ "to use it again"),
+ e_book_get_uri (eav->book));
+ gnome_error_dialog_parented (message, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (eav))));
+ g_free (message);
+}
+
+static void
create_table_view (EAddressbookView *view)
{
ETableModel *adapter;