telepathy-idle: MUCManager: use constants for property names

Jonny Lamb jonny at kemper.freedesktop.org
Wed May 16 10:45:08 PDT 2012


Module: telepathy-idle
Branch: master
Commit: 6c79a8d71d16c615b416c7b45b24ed0701e7540d
URL:    http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=6c79a8d71d16c615b416c7b45b24ed0701e7540d

Author: Will Thompson <will.thompson at collabora.co.uk>
Date:   Fri Sep  9 12:15:40 2011 +0100

MUCManager: use constants for property names

---

 src/idle-muc-manager.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/idle-muc-manager.c b/src/idle-muc-manager.c
index 7a02552..907cdc7 100644
--- a/src/idle-muc-manager.c
+++ b/src/idle-muc-manager.c
@@ -90,14 +90,14 @@ static void _channel_join_ready_cb(IdleMUCChannel *chan, guint err, gpointer use
 
 
 static const gchar * const muc_channel_fixed_properties[] = {
-    TP_IFACE_CHANNEL ".ChannelType",
-    TP_IFACE_CHANNEL ".TargetHandleType",
+    TP_PROP_CHANNEL_CHANNEL_TYPE,
+    TP_PROP_CHANNEL_TARGET_HANDLE_TYPE,
     NULL
 };
 
 static const gchar * const muc_channel_allowed_properties[] = {
-    TP_IFACE_CHANNEL ".TargetHandle",
-    TP_IFACE_CHANNEL ".TargetID",
+    TP_PROP_CHANNEL_TARGET_HANDLE,
+    TP_PROP_CHANNEL_TARGET_ID,
     NULL
 };
 
@@ -734,17 +734,17 @@ _muc_manager_request (
   IdleMUCChannel *channel;
 
   channel_type = tp_asv_get_string (request_properties,
-      TP_IFACE_CHANNEL ".ChannelType");
+      TP_PROP_CHANNEL_CHANNEL_TYPE);
 
   if (tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT))
     return FALSE;
 
   if (tp_asv_get_uint32 (request_properties,
-        TP_IFACE_CHANNEL ".TargetHandleType", NULL) != TP_HANDLE_TYPE_ROOM)
+        TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, NULL) != TP_HANDLE_TYPE_ROOM)
     return FALSE;
 
   handle = tp_asv_get_uint32 (request_properties,
-      TP_IFACE_CHANNEL ".TargetHandle", NULL);
+      TP_PROP_CHANNEL_TARGET_HANDLE, NULL);
 
   if (!tp_handle_is_valid (room_repo, handle, &error))
     goto error;



More information about the telepathy-commits mailing list