aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-06-19 10:04:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-19 10:04:43 +0800
commit67b64140d5f429cc9bb4e8645ce9e6f9f2553162 (patch)
tree96c3c651d168c45f84311d18ad7068dc9eb0e03d /modules/addressbook
parent731122a46ec53fb5e470e5852e3a634da30bdfe1 (diff)
downloadgsoc2013-evolution-67b64140d5f429cc9bb4e8645ce9e6f9f2553162.tar.gz
gsoc2013-evolution-67b64140d5f429cc9bb4e8645ce9e6f9f2553162.tar.zst
gsoc2013-evolution-67b64140d5f429cc9bb4e8645ce9e6f9f2553162.zip
Use SoupURI instead of EUri.
EUri is now deprecated.
Diffstat (limited to 'modules/addressbook')
-rw-r--r--modules/addressbook/e-book-shell-backend.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/addressbook/e-book-shell-backend.c b/modules/addressbook/e-book-shell-backend.c
index b2da5b9072..2475312832 100644
--- a/modules/addressbook/e-book-shell-backend.c
+++ b/modules/addressbook/e-book-shell-backend.c
@@ -321,7 +321,7 @@ static gboolean
book_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
const gchar *uri)
{
- EUri *euri;
+ SoupURI *soup_uri;
const gchar *cp;
gchar *source_uid = NULL;
gchar *contact_uid = NULL;
@@ -329,11 +329,15 @@ book_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
if (!g_str_has_prefix (uri, "contacts:"))
return FALSE;
- euri = e_uri_new (uri);
- cp = euri->query;
+ soup_uri = soup_uri_new (uri);
+
+ if (soup_uri == NULL)
+ return FALSE;
+
+ cp = soup_uri_get_query (soup_uri);
if (cp == NULL) {
- e_uri_free (euri);
+ soup_uri_free (soup_uri);
return FALSE;
}
@@ -378,7 +382,7 @@ book_shell_backend_handle_uri_cb (EShellBackend *shell_backend,
g_free (source_uid);
g_free (contact_uid);
- e_uri_free (euri);
+ soup_uri_free (soup_uri);
return TRUE;
}