From a9ddf2bc00f20ac6fae42479921538950c1a8d07 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 9 Jan 2009 16:14:04 +0000 Subject: [PATCH] DIspatch streamed media channels Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2163 --- src/empathy.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/empathy.c b/src/empathy.c index 1c275f11..baee1be1 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include #include @@ -105,12 +105,19 @@ dispatch_cb (EmpathyDispatcher *dispatcher, g_object_unref (tp_chat); empathy_dispatch_operation_claim (operation); + } else if (channel_type == TP_IFACE_QUARK_CHANNEL_TYPE_STREAMED_MEDIA) { + EmpathyTpCall *call; + + call = EMPATHY_TP_CALL ( + empathy_dispatch_operation_get_channel_wrapper (operation)); + + empathy_dispatch_operation_claim (operation); + + empathy_call_window_new (call); + + g_object_unref (call); + } -#if 0 - else if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA)) { - empathy_call_window_new (channel); - } -#endif else if (channel_type == EMP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER) { EmpathyFTManager *ft_manager; EmpathyTpFile *tp_file; -- 2.39.2