From 27e11ea6e41c5b2498307d581caa751936de30f1 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Tue, 18 Aug 2009 19:33:10 +0100 Subject: replace UNIQUE_NAME_PREFIX by TP_ACCOUNT_OBJECT_PATH_BASE --- libempathy/empathy-account.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libempathy') 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 #include #include +#include #define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT #include @@ -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 */; -- cgit v1.2.3