telepathy-gabble: muc-channel: use TP_PROP more than appending the property to an iface name

Jonny Lamb jonny at kemper.freedesktop.org
Tue Aug 28 06:19:33 PDT 2012


Module: telepathy-gabble
Branch: master
Commit: 3b045801e426844af922b5a34a86f4ca0765a6f3
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=3b045801e426844af922b5a34a86f4ca0765a6f3

Author: Jonny Lamb <jonny.lamb at collabora.co.uk>
Date:   Fri May 18 09:44:58 2012 +0100

muc-channel: use TP_PROP more than appending the property to an iface name

Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>

---

 src/muc-channel.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/muc-channel.c b/src/muc-channel.c
index 8ed693c..4e81ee1 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -1973,20 +1973,20 @@ gabble_muc_channel_tube_request (GabbleMucChannel *self,
   tube_id = generate_tube_id (self);
 
   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_STREAM_TUBE))
     {
       type = TP_TUBE_TYPE_STREAM;
       service = tp_asv_get_string (request_properties,
-          TP_IFACE_CHANNEL_TYPE_STREAM_TUBE ".Service");
+          TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE);
 
     }
   else if (! tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_DBUS_TUBE))
     {
       type = TP_TUBE_TYPE_DBUS;
       service = tp_asv_get_string (request_properties,
-                TP_IFACE_CHANNEL_TYPE_DBUS_TUBE ".ServiceName");
+          TP_PROP_CHANNEL_TYPE_DBUS_TUBE_SERVICE_NAME);
     }
   else
     /* This assertion is safe: this function's caller only calls it in one of



More information about the telepathy-commits mailing list