]> git.0d.be Git - empathy.git/commitdiff
Re-implement file sending with drag and drop
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 30 Jun 2010 14:37:33 +0000 (15:37 +0100)
committerTravis Reitter <treitter@gmail.com>
Tue, 20 Jul 2010 23:12:36 +0000 (16:12 -0700)
libempathy-gtk/empathy-individual-view.c

index e8c971166116a6ce91c852b5c3e05a20647b4461..5c8e96b80f2369140e730085a9dfb8bf2f70e881 100644 (file)
@@ -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);