aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook/e-book-shell-backend.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-07-09 20:29:51 +0800
committerMilan Crha <mcrha@redhat.com>2010-07-09 20:29:51 +0800
commit03d626856b294bc98919ac244e04e9b8821a681d (patch)
tree62433e158f1791aa6b9222ecbe05d164c4703f6c /modules/addressbook/e-book-shell-backend.c
parent6d4ce8571ff62a3e489999d2feeac1691e06c59a (diff)
downloadgsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.gz
gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.zst
gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.zip
Bug #623204 - Be able to report detailed errors from backends
Diffstat (limited to 'modules/addressbook/e-book-shell-backend.c')
-rw-r--r--modules/addressbook/e-book-shell-backend.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/addressbook/e-book-shell-backend.c b/modules/addressbook/e-book-shell-backend.c
index d0340f7974..652b7a5a73 100644
--- a/modules/addressbook/e-book-shell-backend.c
+++ b/modules/addressbook/e-book-shell-backend.c
@@ -230,7 +230,7 @@ book_shell_backend_init_importers (void)
static void
book_shell_backend_new_contact_cb (EBook *book,
- EBookStatus status,
+ const GError *error,
gpointer user_data)
{
EShell *shell;
@@ -238,7 +238,7 @@ book_shell_backend_new_contact_cb (EBook *book,
EABEditor *editor;
/* XXX Handle errors better. */
- if (status != E_BOOK_ERROR_OK)
+ if (error)
return;
contact = e_contact_new ();
@@ -255,7 +255,7 @@ book_shell_backend_new_contact_cb (EBook *book,
static void
book_shell_backend_new_contact_list_cb (EBook *book,
- EBookStatus status,
+ const GError *error,
gpointer user_data)
{
EShell *shell;
@@ -263,7 +263,7 @@ book_shell_backend_new_contact_list_cb (EBook *book,
EABEditor *editor;
/* XXX Handle errors better. */
- if (status != E_BOOK_ERROR_OK)
+ if (error)
return;
contact = e_contact_new ();
@@ -317,12 +317,12 @@ action_contact_new_cb (GtkAction *action,
book = e_book_new_default_addressbook (NULL);
if (strcmp (action_name, "contact-new") == 0)
- e_book_async_open (
+ e_book_async_open_ex (
book, FALSE,
book_shell_backend_new_contact_cb, shell);
if (strcmp (action_name, "contact-new-list") == 0)
- e_book_async_open (
+ e_book_async_open_ex (
book, FALSE,
book_shell_backend_new_contact_list_cb, shell);
}