aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-19 02:33:10 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-19 02:33:10 +0800
commit27e11ea6e41c5b2498307d581caa751936de30f1 (patch)
treea003eb57b6eacfaac9ca5c6f154332fb3af4813d /libempathy
parenteafc0f2bb66f45dbc2d79482c9c0caaf9c6f0c00 (diff)
downloadgsoc2013-empathy-27e11ea6e41c5b2498307d581caa751936de30f1.tar
gsoc2013-empathy-27e11ea6e41c5b2498307d581caa751936de30f1.tar.gz
gsoc2013-empathy-27e11ea6e41c5b2498307d581caa751936de30f1.tar.bz2
gsoc2013-empathy-27e11ea6e41c5b2498307d581caa751936de30f1.tar.lz
gsoc2013-empathy-27e11ea6e41c5b2498307d581caa751936de30f1.tar.xz
gsoc2013-empathy-27e11ea6e41c5b2498307d581caa751936de30f1.tar.zst
gsoc2013-empathy-27e11ea6e41c5b2498307d581caa751936de30f1.zip
replace UNIQUE_NAME_PREFIX by TP_ACCOUNT_OBJECT_PATH_BASE
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libempathy/empathy-account.c b/libempathy/empathy-account.c
index 7d89f20fc..623a324e8 100644
--- a/libempathy/empathy-account.c
+++ b/libempathy/empathy-account.c
@@ -28,6 +28,7 @@
#include <telepathy-glib/gtypes.h>
#include <telepathy-glib/util.h>
#include <telepathy-glib/interfaces.h>
+#include <telepathy-glib/defs.h>
#define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
#include <libempathy/empathy-debug.h>
@@ -38,8 +39,6 @@
#include "empathy-utils.h"
#include "empathy-marshal.h"
-#define UNIQUE_NAME_PREFIX "/org/freedesktop/Telepathy/Account/"
-
/* signals */
enum {
STATUS_CHANGED,
@@ -418,9 +417,9 @@ empathy_account_parse_unique_name (const gchar *bus_name,
const gchar *cm, *cm_end;
g_return_val_if_fail (
- g_str_has_prefix (bus_name, UNIQUE_NAME_PREFIX), FALSE);
+ g_str_has_prefix (bus_name, TP_ACCOUNT_OBJECT_PATH_BASE), FALSE);
- cm = bus_name + strlen (UNIQUE_NAME_PREFIX);
+ cm = bus_name + strlen (TP_ACCOUNT_OBJECT_PATH_BASE);
for (cm_end = cm; *cm_end != '/' && *cm_end != '\0'; cm_end++)
/* pass */;