diff options
author | Milan Crha <mcrha@redhat.com> | 2010-12-15 00:44:16 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-12-15 00:44:16 +0800 |
commit | a6bce7b74b99cd8ade8280ca52fb968438e6bf78 (patch) | |
tree | e87b871dfec5c5754c1c29783a3b499ce81303cc /modules/addressbook | |
parent | ffa69c8bef51ccb6a0a06684605d85b364b2c667 (diff) | |
download | gsoc2013-evolution-a6bce7b74b99cd8ade8280ca52fb968438e6bf78.tar.gz gsoc2013-evolution-a6bce7b74b99cd8ade8280ca52fb968438e6bf78.tar.zst gsoc2013-evolution-a6bce7b74b99cd8ade8280ca52fb968438e6bf78.zip |
Show common addressbook and calendar errors in an alert sink
Diffstat (limited to 'modules/addressbook')
-rw-r--r-- | modules/addressbook/e-book-shell-view-private.c | 11 |
1 files changed, 9 insertions, 2 deletions
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); |