]> git.0d.be Git - empathy.git/commitdiff
No need to define a callback, we can directly use empathy_send_file_with_file_chooser.
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 21 Nov 2008 16:22:27 +0000 (16:22 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 21 Nov 2008 16:22:27 +0000 (16:22 +0000)
svn path=/trunk/; revision=1872

libempathy-gtk/empathy-contact-menu.c

index fb01052a15af460fa2bff0c93d6b9c6bc296d029..a83fbbdf72599e8e981059f5d21d6df409dbe5fa 100644 (file)
@@ -192,13 +192,6 @@ empathy_contact_log_menu_item_new (EmpathyContact *contact)
        return item;
 }
 
-static void
-contact_file_transfer_menu_item_activate_cb (EmpathyContact *contact)
-{
-       g_return_if_fail (EMPATHY_IS_CONTACT (contact));
-       empathy_send_file_with_file_chooser (contact);
-}
-
 GtkWidget *
 empathy_contact_file_transfer_menu_item_new (EmpathyContact *contact)
 {
@@ -215,7 +208,7 @@ empathy_contact_file_transfer_menu_item_new (EmpathyContact *contact)
        gtk_widget_show (image);
 
        g_signal_connect_swapped (item, "activate",
-                                 G_CALLBACK (contact_file_transfer_menu_item_activate_cb),
+                                 G_CALLBACK (empathy_send_file_with_file_chooser),
                                  contact);
 
        return item;