aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:14:17 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:14:17 +0800
commit4720729bda3fdb397de0b991be2f8a2292eb5261 (patch)
tree2b1d1f4171abd6e99267a1f1f07896bc286a3143
parentfee082df8617a9e878750bcd964940130dc5ff2a (diff)
downloadgsoc2013-empathy-4720729bda3fdb397de0b991be2f8a2292eb5261.tar
gsoc2013-empathy-4720729bda3fdb397de0b991be2f8a2292eb5261.tar.gz
gsoc2013-empathy-4720729bda3fdb397de0b991be2f8a2292eb5261.tar.bz2
gsoc2013-empathy-4720729bda3fdb397de0b991be2f8a2292eb5261.tar.lz
gsoc2013-empathy-4720729bda3fdb397de0b991be2f8a2292eb5261.tar.xz
gsoc2013-empathy-4720729bda3fdb397de0b991be2f8a2292eb5261.tar.zst
gsoc2013-empathy-4720729bda3fdb397de0b991be2f8a2292eb5261.zip
Use the new call utility function to start calls
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2167
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c2
-rw-r--r--libempathy-gtk/empathy-contact-menu.c2
-rw-r--r--libempathy-gtk/empathy-new-message-dialog.c10
3 files changed, 11 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 5e83f3b63..6dfb20eb9 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -571,7 +571,7 @@ contact_list_view_voip_activated_cb (EmpathyCellRendererActivatable *cell,
-1);
if (contact) {
- empathy_dispatcher_call_with_contact (contact, NULL, NULL);
+ empathy_start_call_with_contact (contact);
g_object_unref (contact);
}
}
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index ab9ba721f..cf8580d23 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -147,7 +147,7 @@ empathy_contact_call_menu_item_new (EmpathyContact *contact)
gtk_widget_show (image);
g_signal_connect_swapped (item, "activate",
- G_CALLBACK (empathy_dispatcher_call_with_contact),
+ G_CALLBACK (empathy_start_call_with_contact),
contact);
return item;
diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c
index ff91a182a..766087812 100644
--- a/libempathy-gtk/empathy-new-message-dialog.c
+++ b/libempathy-gtk/empathy-new-message-dialog.c
@@ -184,7 +184,15 @@ new_message_dialog_response_cb (GtkWidget *widget,
}
if (response == 1) {
- empathy_dispatcher_call_with_contact_id (account, id, NULL, NULL);
+ EmpathyContactFactory *factory;
+ EmpathyContact *contact;
+
+ factory = empathy_contact_factory_new ();
+ contact = empathy_contact_factory_get_from_id (factory, account, id);
+ empathy_start_call_with_contact (contact);
+
+ g_object_unref (contact);
+ g_object_unref (factory);
} else if (response == 2) {
empathy_dispatcher_chat_with_contact_id (account, id, NULL, NULL);
}