chat-manager: define CHAT_MANAGER_PATH
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 6 Feb 2014 13:48:57 +0000 (14:48 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 6 Feb 2014 14:32:57 +0000 (15:32 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=723766

src/empathy-chat-manager.c

index 5593463..279d7d8 100644 (file)
@@ -32,6 +32,8 @@
 #define DEBUG_FLAG EMPATHY_DEBUG_OTHER
 #include "empathy-debug.h"
 
+#define CHAT_MANAGER_PATH "/org/gnome/Empathy/ChatManager"
+
 enum {
   CLOSED_CHATS_CHANGED,
   DISPLAYED_CHATS_CHANGED,
@@ -369,7 +371,7 @@ empathy_chat_manager_constructed (GObject *obj)
   if (dbus_daemon != NULL)
     {
       tp_dbus_daemon_register_object (dbus_daemon,
-          "/org/gnome/Empathy/ChatManager", obj);
+          CHAT_MANAGER_PATH, obj);
 
       g_object_unref (dbus_daemon);
     }
@@ -546,7 +548,7 @@ empathy_chat_manager_call_undo_closed_chat (void)
       "dbus-daemon", dbus_daemon,
       "dbus-connection", tp_proxy_get_dbus_connection (TP_PROXY (dbus_daemon)),
       "bus-name", EMPATHY_CHAT_BUS_NAME,
-      "object-path", "/org/gnome/Empathy/ChatManager",
+      "object-path", CHAT_MANAGER_PATH,
       NULL);
 
   tp_proxy_add_interface_by_id (proxy, EMP_IFACE_QUARK_CHAT_MANAGER);