summaryrefslogtreecommitdiff
path: root/src/muc-factory.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-09-21 12:40:39 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-09-21 12:40:39 +0100
commitfd73f1ee8367b2c7a8abf917b155402c8095dc22 (patch)
tree9eb66a6a6dd6156818d0ec4278c9fb79e5d789a7 /src/muc-factory.c
parent0b90c279acc8c3c451101311f825817c21cefc0a (diff)
downloadtelepathy-gabble-fd73f1ee8367b2c7a8abf917b155402c8095dc22.tar.gz
MUC factory: use the connection's TpDBusDaemon rather than tp_get_bus
Diffstat (limited to 'src/muc-factory.c')
-rw-r--r--src/muc-factory.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/muc-factory.c b/src/muc-factory.c
index a40084c2a..08202433c 100644
--- a/src/muc-factory.c
+++ b/src/muc-factory.c
@@ -1212,18 +1212,17 @@ handle_text_channel_request (GabbleMucFactory *self,
GError **error)
{
GabbleMucFactoryPrivate *priv = GABBLE_MUC_FACTORY_GET_PRIVATE (self);
+ TpBaseConnection *conn = TP_BASE_CONNECTION (priv->conn);
GabbleMucChannel *text_chan;
-
- DBusGConnection *bus = tp_get_bus ();
TpHandleSet *handles;
TpIntSet *continue_handles;
guint i;
gboolean ret = TRUE;
- TpHandleRepoIface *contact_handles = tp_base_connection_get_handles (
- TP_BASE_CONNECTION (priv->conn), TP_HANDLE_TYPE_CONTACT);
- TpHandleRepoIface *room_handles = tp_base_connection_get_handles (
- TP_BASE_CONNECTION (priv->conn), TP_HANDLE_TYPE_ROOM);
+ TpHandleRepoIface *contact_handles = tp_base_connection_get_handles (conn,
+ TP_HANDLE_TYPE_CONTACT);
+ TpHandleRepoIface *room_handles = tp_base_connection_get_handles (conn,
+ TP_HANDLE_TYPE_ROOM);
GPtrArray *initial_channels;
GHashTable *final_channels; /* used as a set: (char *) -> NULL */
@@ -1255,6 +1254,9 @@ handle_text_channel_request (GabbleMucFactory *self,
/* look at the list of initial channels, build a set of handles to invite */
if (initial_channels != NULL)
{
+ TpDBusDaemon *dbus_daemon = tp_base_connection_get_dbus_daemon (conn);
+ DBusGConnection *bus = tp_proxy_get_dbus_connection (dbus_daemon);
+
for (i = 0; i < initial_channels->len; i++)
{
const char *object_path = g_ptr_array_index (initial_channels, i);