empathy r2137 - trunk/src



Author: xclaesse
Date: Fri Jan  9 16:12:36 2009
New Revision: 2137
URL: http://svn.gnome.org/viewvc/empathy?rev=2137&view=rev

Log:
Enabled dispatching of file tranfers

Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>

Modified:
   trunk/src/empathy.c

Modified: trunk/src/empathy.c
==============================================================================
--- trunk/src/empathy.c	(original)
+++ trunk/src/empathy.c	Fri Jan  9 16:12:36 2009
@@ -112,16 +112,18 @@
 	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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]