aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-menu.c
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-02-24 13:56:26 +0800
committerDavyd Madeley <davyd@madeley.id.au>2009-07-15 18:12:15 +0800
commit4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8 (patch)
treede5ca58d032564d53e41c81ab4c1e6684fac2803 /libempathy-gtk/empathy-contact-menu.c
parentfac3f031d33d41237ec86e810ffad81cd63c6ec3 (diff)
downloadgsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.gz
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.bz2
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.lz
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.xz
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.zst
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.zip
Hook up the callback to throw up the standard Add Contact dialog
Diffstat (limited to 'libempathy-gtk/empathy-contact-menu.c')
-rw-r--r--libempathy-gtk/empathy-contact-menu.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index 9969f3def..44b00165e 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -126,10 +126,12 @@ empathy_contact_menu_new (EmpathyContact *contact,
}
static void
-empathy_contact_chat_menu_item_activated (GtkMenuItem *item,
+empathy_contact_add_menu_item_activated (GtkMenuItem *item,
EmpathyContact *contact)
{
- empathy_dispatcher_chat_with_contact (contact, NULL, NULL);
+ /* FIXME - attempt to get parent */
+ /* FIXME - the contact dialog doesn't set the source account right */
+ empathy_new_contact_dialog_show_with_contact (NULL, contact);
}
GtkWidget *
@@ -163,11 +165,20 @@ empathy_contact_add_menu_item_new (EmpathyContact *contact)
GTK_ICON_SIZE_MENU);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
- /* FIXME - callback */
+ g_signal_connect (item, "activate",
+ G_CALLBACK (empathy_contact_add_menu_item_activated),
+ contact);
return item;
}
+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)
{