aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:19:56 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:19:56 +0800
commit1df27a669a4650a50f6b924b47155a512e789ae7 (patch)
tree0150cd9d3c66fa5cbe9baf4618beb75e8b281ca2 /src/empathy.c
parentfb0064fcdbb29a1e6d3e0cc2c7fa0c3a2613ca69 (diff)
downloadgsoc2013-empathy-1df27a669a4650a50f6b924b47155a512e789ae7.tar
gsoc2013-empathy-1df27a669a4650a50f6b924b47155a512e789ae7.tar.gz
gsoc2013-empathy-1df27a669a4650a50f6b924b47155a512e789ae7.tar.bz2
gsoc2013-empathy-1df27a669a4650a50f6b924b47155a512e789ae7.tar.lz
gsoc2013-empathy-1df27a669a4650a50f6b924b47155a512e789ae7.tar.xz
gsoc2013-empathy-1df27a669a4650a50f6b924b47155a512e789ae7.tar.zst
gsoc2013-empathy-1df27a669a4650a50f6b924b47155a512e789ae7.zip
Handle new file channels regardless of direction in the dispatcher. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1834
Diffstat (limited to 'src/empathy.c')
-rw-r--r--src/empathy.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c
index 0f8cce404..56da3c7c4 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -44,6 +44,7 @@
#include <libempathy/empathy-tp-group.h>
#include <libempathy-gtk/empathy-conf.h>
+#include <libempathy-gtk/empathy-ft-manager.h>
#include <extensions/extensions.h>
@@ -104,6 +105,15 @@ dispatch_channel_cb (EmpathyDispatcher *dispatcher,
else if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA)) {
empathy_call_window_new (channel);
}
+ else if (!tp_strdiff (channel_type, EMP_IFACE_CHANNEL_TYPE_FILE)) {
+ EmpathyTpFile *tp_file;
+ EmpathyFTManager *ft_manager;
+
+ ft_manager = empathy_ft_manager_get_default ();
+ tp_file = empathy_tp_file_new (channel);
+
+ empathy_ft_manager_add_tp_file (ft_manager, tp_file);
+ }
g_free (channel_type);
}