aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-28 20:13:33 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-28 20:13:33 +0800
commit6dfdd570279f24ea16f51a63ff5edf0b09055dc1 (patch)
treebeaaa36b88c2a13686aa750e051f503144f5cd65 /src/empathy-accounts.c
parent0edb1dc7f535d800b9bf1d48d13a56a7086f704f (diff)
downloadgsoc2013-empathy-6dfdd570279f24ea16f51a63ff5edf0b09055dc1.tar
gsoc2013-empathy-6dfdd570279f24ea16f51a63ff5edf0b09055dc1.tar.gz
gsoc2013-empathy-6dfdd570279f24ea16f51a63ff5edf0b09055dc1.tar.bz2
gsoc2013-empathy-6dfdd570279f24ea16f51a63ff5edf0b09055dc1.tar.lz
gsoc2013-empathy-6dfdd570279f24ea16f51a63ff5edf0b09055dc1.tar.xz
gsoc2013-empathy-6dfdd570279f24ea16f51a63ff5edf0b09055dc1.tar.zst
gsoc2013-empathy-6dfdd570279f24ea16f51a63ff5edf0b09055dc1.zip
empathy-accounts: allow to pass the full path of the account
Diffstat (limited to 'src/empathy-accounts.c')
-rw-r--r--src/empathy-accounts.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/empathy-accounts.c b/src/empathy-accounts.c
index 0b44b6dd8..75bc8ea10 100644
--- a/src/empathy-accounts.c
+++ b/src/empathy-accounts.c
@@ -111,8 +111,12 @@ account_manager_ready_for_accounts_cb (GObject *source_object,
/* create and prep the corresponding TpAccount so it's fully ready by the
* time we try to select it in the accounts dialog */
- account_path = g_strdup_printf ("%s%s", TP_ACCOUNT_OBJECT_PATH_BASE,
- account_id);
+ if (g_str_has_prefix (account_id, TP_ACCOUNT_OBJECT_PATH_BASE))
+ account_path = g_strdup (account_id);
+ else
+ account_path = g_strdup_printf ("%s%s", TP_ACCOUNT_OBJECT_PATH_BASE,
+ account_id);
+
bus = tp_dbus_daemon_dup (NULL);
if ((account = tp_account_new (bus, account_path, &error)))
{