diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-11-25 07:04:09 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-01 03:31:19 +0800 |
commit | 007a734e88eef70451ab12777481e70c52b96ac0 (patch) | |
tree | 123a696f11d2bd76329962a9c960814333b04764 /addressbook/gui/widgets | |
parent | 0da239224f119664577c0d5dc47cab2632b083be (diff) | |
download | gsoc2013-evolution-007a734e88eef70451ab12777481e70c52b96ac0.tar gsoc2013-evolution-007a734e88eef70451ab12777481e70c52b96ac0.tar.gz gsoc2013-evolution-007a734e88eef70451ab12777481e70c52b96ac0.tar.bz2 gsoc2013-evolution-007a734e88eef70451ab12777481e70c52b96ac0.tar.lz gsoc2013-evolution-007a734e88eef70451ab12777481e70c52b96ac0.tar.xz gsoc2013-evolution-007a734e88eef70451ab12777481e70c52b96ac0.tar.zst gsoc2013-evolution-007a734e88eef70451ab12777481e70c52b96ac0.zip |
port addressbook/ to use new EError API
https://bugzilla.gnome.org/show_bug.cgi?id=602963
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-view.c | 6 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-gui-util.c | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 2cb8094ff1..3e10722c00 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -894,7 +894,7 @@ backend_died (EAddressbookView *view) model = e_addressbook_view_get_model (view); book = e_addressbook_model_get_book (model); - e_error_run ( + e_error_run_dialog_for_args ( GTK_WINDOW (shell_window), "addressbook:backend-died", e_book_get_uri (book), NULL); @@ -1013,7 +1013,9 @@ delete_contacts_cb (EBook *book, EBookStatus status, gpointer closure) case E_BOOK_ERROR_CANCELLED : break; case E_BOOK_ERROR_PERMISSION_DENIED : - e_error_run (e_shell_get_active_window (NULL), "addressbook:contact-delete-error-perm", NULL); + e_error_run_dialog_for_args (e_shell_get_active_window (NULL), + "addressbook:contact-delete-error-perm", + NULL); break; default : /* Unknown error */ diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index e445b05d40..e80e65575f 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -86,7 +86,9 @@ eab_error_dialog (const gchar *msg, EBookStatus status) status_str = status_to_string [status]; if (status_str) - e_error_run (e_shell_get_active_window (NULL), "addressbook:generic-error", msg, _(status_str), NULL); + e_error_run_dialog_for_args (e_shell_get_active_window (NULL), + "addressbook:generic-error", + msg, _(status_str), NULL); } void @@ -145,7 +147,7 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status) } } - dialog = e_error_new ((GtkWindow *) parent, "addressbook:load-error", label_string, NULL); + dialog = e_error_new_dialog_for_args ((GtkWindow *) parent, "addressbook:load-error", label_string, NULL); g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); gtk_widget_show (dialog); @@ -187,13 +189,13 @@ eab_search_result_dialog (GtkWidget *parent, g_return_if_reached (); } - e_error_run ((GtkWindow *) parent, "addressbook:search-error", str, NULL); + e_error_run_dialog_for_args ((GtkWindow *) parent, "addressbook:search-error", str, NULL); } gint eab_prompt_save_dialog (GtkWindow *parent) { - return e_error_run (parent, "addressbook:prompt-save", NULL); + return e_error_run_dialog_for_args (parent, "addressbook:prompt-save", NULL); } static gchar * |