[Telepathy-commits] [telepathy-gabble/master] GabbleImFactory: update to new GabbleChannelManager API
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Aug 20 09:38:30 PDT 2008
20080729182042-53eee-5e6559e4d98fc2371e34f2baa4b4379a3bbf3c0a.gz
---
src/im-factory.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/im-factory.c b/src/im-factory.c
index 44e39c5..9d2c741 100644
--- a/src/im-factory.c
+++ b/src/im-factory.c
@@ -343,7 +343,7 @@ im_channel_closed_cb (GabbleIMChannel *chan, gpointer user_data)
tp_channel_factory_iface_emit_new_channel (self,
(TpChannelIface *) chan, NULL);
gabble_channel_manager_emit_new_channel (self,
- (GabbleExportableChannel *) chan);
+ (GabbleExportableChannel *) chan, NULL);
}
}
}
@@ -361,6 +361,7 @@ new_im_channel (GabbleImFactory *fac,
TpBaseConnection *conn;
GabbleIMChannel *chan;
char *object_path;
+ GSList *request_tokens;
g_return_val_if_fail (GABBLE_IS_IM_FACTORY (fac), NULL);
g_return_val_if_fail (handle != 0, NULL);
@@ -390,12 +391,15 @@ new_im_channel (GabbleImFactory *fac,
g_free (object_path);
+ if (request_token != NULL)
+ request_tokens = g_slist_prepend (NULL, request_token);
+ else
+ request_tokens = NULL;
+
gabble_channel_manager_emit_new_channel (fac,
- (GabbleExportableChannel *) chan);
+ (GabbleExportableChannel *) chan, request_tokens);
- if (request_token != NULL)
- gabble_channel_manager_emit_request_succeeded (fac, request_token,
- (GabbleExportableChannel *) chan);
+ g_slist_free (request_tokens);
return chan;
}
--
1.5.6.3
More information about the Telepathy-commits
mailing list