aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:12:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:12:36 +0800
commitab79229c96c0abff467dfd47edf01c18cbbae749 (patch)
tree08e7ad89eb39eb1786b0c54e5f73d56b932e877f
parent88cb102f7072be2748d9847e45e550be1c1bd399 (diff)
downloadgsoc2013-empathy-ab79229c96c0abff467dfd47edf01c18cbbae749.tar
gsoc2013-empathy-ab79229c96c0abff467dfd47edf01c18cbbae749.tar.gz
gsoc2013-empathy-ab79229c96c0abff467dfd47edf01c18cbbae749.tar.bz2
gsoc2013-empathy-ab79229c96c0abff467dfd47edf01c18cbbae749.tar.lz
gsoc2013-empathy-ab79229c96c0abff467dfd47edf01c18cbbae749.tar.xz
gsoc2013-empathy-ab79229c96c0abff467dfd47edf01c18cbbae749.tar.zst
gsoc2013-empathy-ab79229c96c0abff467dfd47edf01c18cbbae749.zip
Enabled dispatching of file tranfers
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2137
-rw-r--r--src/empathy.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/empathy.c b/src/empathy.c
index 65f4ec51b..ed16640c1 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -112,16 +112,18 @@ dispatch_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_TRANSFER)) {
+#endif
+ else if (channel_type == EMP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER) {
EmpathyFTManager *ft_manager;
EmpathyTpFile *tp_file;
ft_manager = empathy_ft_manager_dup_singleton ();
- tp_file = empathy_tp_file_new (channel);
+ tp_file = EMPATHY_TP_FILE (
+ empathy_dispatch_operation_get_channel_wrapper (operation));
empathy_ft_manager_add_tp_file (ft_manager, tp_file);
g_object_unref (tp_file);
+ empathy_dispatch_operation_claim (operation);
}
-#endif
}
static void