From 4720729bda3fdb397de0b991be2f8a2292eb5261 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 9 Jan 2009 16:14:17 +0000 Subject: Use the new call utility function to start calls Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2167 --- libempathy-gtk/empathy-new-message-dialog.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk/empathy-new-message-dialog.c') 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); } -- cgit v1.2.3