[Telepathy-commits] [telepathy-salut/master] SalutRoomlistChannel: expose interfaces ad a GObject property
Sjoerd Simons
sjoerd at luon.net
Mon Aug 11 04:59:25 PDT 2008
---
src/salut-roomlist-channel.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/salut-roomlist-channel.c b/src/salut-roomlist-channel.c
index 7c3cb9d..58e0503 100644
--- a/src/salut-roomlist-channel.c
+++ b/src/salut-roomlist-channel.c
@@ -51,6 +51,8 @@ G_DEFINE_TYPE_WITH_CODE (SalutRoomlistChannel, salut_roomlist_channel,
G_IMPLEMENT_INTERFACE (TP_TYPE_CHANNEL_IFACE, NULL)
);
+static const char *salut_roomlist_channel_interfaces[] = { NULL };
+
/* properties */
enum
{
@@ -59,6 +61,7 @@ enum
PROP_HANDLE_TYPE,
PROP_HANDLE,
PROP_CONNECTION,
+ PROP_INTERFACES,
LAST_PROPERTY
};
@@ -135,6 +138,9 @@ salut_roomlist_channel_get_property (GObject *object,
case PROP_CONNECTION:
g_value_set_object (value, priv->connection);
break;
+ case PROP_INTERFACES:
+ g_value_set_static_boxed (value, salut_roomlist_channel_interfaces);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -455,9 +461,8 @@ static void
salut_roomlist_channel_get_interfaces (TpSvcChannel *iface,
DBusGMethodInvocation *context)
{
- const char *interfaces[] = { NULL };
-
- tp_svc_channel_return_from_get_interfaces (context, interfaces);
+ tp_svc_channel_return_from_get_interfaces (context,
+ salut_roomlist_channel_interfaces);
}
--
1.5.6.3
More information about the Telepathy-commits
mailing list