From a6bce7b74b99cd8ade8280ca52fb968438e6bf78 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 14 Dec 2010 17:44:16 +0100 Subject: Show common addressbook and calendar errors in an alert sink --- modules/addressbook/e-book-shell-view-private.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'modules/addressbook') diff --git a/modules/addressbook/e-book-shell-view-private.c b/modules/addressbook/e-book-shell-view-private.c index 097e6128d5..9228905323 100644 --- a/modules/addressbook/e-book-shell-view-private.c +++ b/modules/addressbook/e-book-shell-view-private.c @@ -197,8 +197,15 @@ book_shell_view_loaded_cb (ESource *source, e_addressbook_model_set_book (model, book); e_addressbook_model_force_folder_bar_message (model); - } else if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) - eab_load_error_dialog (NULL /* XXX */, source, error); + } else if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { + EShellView *shell_view; + EAlertSink *alert_sink; + + shell_view = e_addressbook_view_get_shell_view (view); + alert_sink = E_ALERT_SINK (e_shell_view_get_shell_content (shell_view)); + + eab_load_error_dialog (NULL, alert_sink, source, error); + } if (error != NULL) g_error_free (error); -- cgit