]> git.0d.be Git - empathy.git/commitdiff
Hookup the contact menu item cb correctly
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 11 Feb 2009 19:43:35 +0000 (19:43 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Wed, 11 Feb 2009 19:43:35 +0000 (19:43 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2436

libempathy-gtk/empathy-contact-menu.c

index ca8208374075b73d07d3450e44e70054274b62f4..f311b129077eeb78fa3e66579643f7c38a99c8d2 100644 (file)
@@ -111,6 +111,14 @@ empathy_contact_menu_new (EmpathyContact             *contact,
        return menu;
 }
 
+static void
+empathy_contact_chat_menu_item_activated (GtkMenuItem *item,
+       EmpathyContact *contact)
+{
+  empathy_dispatcher_chat_with_contact (contact, NULL, NULL);
+}
+
+
 GtkWidget *
 empathy_contact_chat_menu_item_new (EmpathyContact *contact)
 {
@@ -125,8 +133,8 @@ empathy_contact_chat_menu_item_new (EmpathyContact *contact)
        gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
        gtk_widget_show (image);
 
-       g_signal_connect_swapped (item, "activate",
-                                 G_CALLBACK (empathy_dispatcher_chat_with_contact),
+       g_signal_connect (item, "activate",
+                                 G_CALLBACK (empathy_contact_chat_menu_item_activated),
                                  contact);
        
        return item;