[empathy] Re-implement file sending with drag and drop



commit 336c38712dde2938b1ead01f05e1cd01f96c888d
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Jun 30 15:37:33 2010 +0100

    Re-implement file sending with drag and drop

 libempathy-gtk/empathy-individual-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index e8c9711..5c8e96b 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -473,6 +473,7 @@ individual_view_file_drag_received (GtkWidget *view,
   GtkTreeIter iter;
   const gchar *sel_data;
   FolksIndividual *individual;
+  EmpathyContact *contact;
 
   sel_data = (const gchar *) gtk_selection_data_get_data (selection);
 
@@ -484,8 +485,8 @@ individual_view_file_drag_received (GtkWidget *view,
       return FALSE;
     }
 
-  /* TODO: implement this */
-  DEBUG ("file transfer not implemented");
+  contact = empathy_contact_from_folks_individual (individual);
+  empathy_send_file_from_uri_list (contact, sel_data);
 
   g_object_unref (individual);
 



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