From ce114155e3d8b30f649f33efeb8ef1677f2b78bc Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 21 Nov 2008 16:22:27 +0000 Subject: No need to define a callback, we can directly use empathy_send_file_with_file_chooser. svn path=/trunk/; revision=1872 --- libempathy-gtk/empathy-contact-menu.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libempathy-gtk/empathy-contact-menu.c') diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c index fb01052a1..a83fbbdf7 100644 --- a/libempathy-gtk/empathy-contact-menu.c +++ b/libempathy-gtk/empathy-contact-menu.c @@ -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; -- cgit v1.2.3