aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-02-12 03:43:35 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-12 03:43:35 +0800
commit0d130027f6499eabd22dc227ff9ccfe70b8e2c5b (patch)
tree2205145f95e6a10e825a66232fd43a9523ac403a /libempathy-gtk
parentf84688efec197ed1377523e251773bb8be6995d8 (diff)
downloadgsoc2013-empathy-0d130027f6499eabd22dc227ff9ccfe70b8e2c5b.tar
gsoc2013-empathy-0d130027f6499eabd22dc227ff9ccfe70b8e2c5b.tar.gz
gsoc2013-empathy-0d130027f6499eabd22dc227ff9ccfe70b8e2c5b.tar.bz2
gsoc2013-empathy-0d130027f6499eabd22dc227ff9ccfe70b8e2c5b.tar.lz
gsoc2013-empathy-0d130027f6499eabd22dc227ff9ccfe70b8e2c5b.tar.xz
gsoc2013-empathy-0d130027f6499eabd22dc227ff9ccfe70b8e2c5b.tar.zst
gsoc2013-empathy-0d130027f6499eabd22dc227ff9ccfe70b8e2c5b.zip
Hookup the contact menu item cb correctly
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2436
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-menu.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index ca8208374..f311b1290 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -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;