empathy r2436 - trunk/libempathy-gtk



Author: xclaesse
Date: Wed Feb 11 19:43:35 2009
New Revision: 2436
URL: http://svn.gnome.org/viewvc/empathy?rev=2436&view=rev

Log:
Hookup the contact menu item cb correctly

Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>

Modified:
   trunk/libempathy-gtk/empathy-contact-menu.c

Modified: trunk/libempathy-gtk/empathy-contact-menu.c
==============================================================================
--- trunk/libempathy-gtk/empathy-contact-menu.c	(original)
+++ trunk/libempathy-gtk/empathy-contact-menu.c	Wed Feb 11 19:43:35 2009
@@ -111,6 +111,14 @@
 	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 @@
 	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;



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