aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-menu.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-02-03 17:02:46 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-03 17:02:46 +0800
commit5f6779c758764d859efe162ecb6fba579cc318f1 (patch)
tree4ac7c249472dd2f1304372faedf34276d5e8e812 /libempathy-gtk/empathy-contact-menu.c
parent371a7a4d93ba32f2ea9b9a18a36410ca7702ae23 (diff)
downloadgsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.gz
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.bz2
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.lz
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.xz
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.tar.zst
gsoc2013-empathy-5f6779c758764d859efe162ecb6fba579cc318f1.zip
Switch to calling CallFactory to make calls
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2382
Diffstat (limited to 'libempathy-gtk/empathy-contact-menu.c')
-rw-r--r--libempathy-gtk/empathy-contact-menu.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index e3fb3c9f7..ca8208374 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -26,6 +26,7 @@
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
+#include <libempathy/empathy-call-factory.h>
#include <libempathy/empathy-log-manager.h>
#include <libempathy/empathy-dispatcher.h>
#include <libempathy/empathy-utils.h>
@@ -131,6 +132,16 @@ empathy_contact_chat_menu_item_new (EmpathyContact *contact)
return item;
}
+static void
+empathy_contact_call_menu_item_activated (GtkMenuItem *item,
+ EmpathyContact *contact)
+{
+ EmpathyCallFactory *factory;
+
+ factory = empathy_call_factory_get ();
+ empathy_call_factory_new_call (factory, contact);
+}
+
GtkWidget *
empathy_contact_call_menu_item_new (EmpathyContact *contact)
{
@@ -146,8 +157,8 @@ empathy_contact_call_menu_item_new (EmpathyContact *contact)
gtk_widget_set_sensitive (item, empathy_contact_can_voip (contact));
gtk_widget_show (image);
- g_signal_connect_swapped (item, "activate",
- G_CALLBACK (empathy_start_call_with_contact),
+ g_signal_connect (item, "activate",
+ G_CALLBACK (empathy_contact_call_menu_item_activated),
contact);
return item;