aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-11-22 00:19:56 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-11-22 00:19:56 +0800
commit4be58185a967f1bf2bd09bd0f4721c3298a0f469 (patch)
tree0150cd9d3c66fa5cbe9baf4618beb75e8b281ca2 /libempathy-gtk/empathy-ui-utils.c
parent0092630c6a2c5d73ddedabd367d119c65c34190e (diff)
downloadgsoc2013-empathy-4be58185a967f1bf2bd09bd0f4721c3298a0f469.tar
gsoc2013-empathy-4be58185a967f1bf2bd09bd0f4721c3298a0f469.tar.gz
gsoc2013-empathy-4be58185a967f1bf2bd09bd0f4721c3298a0f469.tar.bz2
gsoc2013-empathy-4be58185a967f1bf2bd09bd0f4721c3298a0f469.tar.lz
gsoc2013-empathy-4be58185a967f1bf2bd09bd0f4721c3298a0f469.tar.xz
gsoc2013-empathy-4be58185a967f1bf2bd09bd0f4721c3298a0f469.tar.zst
gsoc2013-empathy-4be58185a967f1bf2bd09bd0f4721c3298a0f469.zip
Handle new file channels regardless of direction in the dispatcher. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1834 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 71aaf7eca..388f4c716 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1458,39 +1458,25 @@ file_manager_send_file_response_cb (GtkDialog *widget,
if (response_id == GTK_RESPONSE_OK) {
GSList *list;
GSList *l;
- EmpathyFTManager *ft_manager;
list = gtk_file_chooser_get_uris (GTK_FILE_CHOOSER (widget));
- ft_manager = empathy_ft_manager_get_default ();
DEBUG ("File chooser selected files:");
for (l = list; l; l = l->next) {
gchar *uri;
GFile *gfile;
- EmpathyTpFile *tp_file;
GtkRecentManager *manager;
uri = l->data;
gfile = g_file_new_for_uri (uri);
DEBUG ("\t%s", uri);
- tp_file = empathy_send_file (contact,
- gfile);
-
- empathy_ft_manager_add_tp_file (ft_manager, tp_file);
+ empathy_send_file (contact, gfile);
manager = gtk_recent_manager_get_default ();
gtk_recent_manager_add_item (manager, uri);
- if (tp_file) ;
- /* FIXME: This should be unrefed, but
- * it's not referenced anywhere else,
- * so the transfer just ends. Uncomment
- * this out when there is a file
- * transfer "manager".
- g_object_unref (file);
- */
g_object_unref (gfile);
g_free (uri);
}