aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-new-message-dialog.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-new-message-dialog.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-new-message-dialog.c')
-rw-r--r--libempathy-gtk/empathy-new-message-dialog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c
index 9127e2919..1db8db1b6 100644
--- a/libempathy-gtk/empathy-new-message-dialog.c
+++ b/libempathy-gtk/empathy-new-message-dialog.c
@@ -31,6 +31,7 @@
#include <libmissioncontrol/mc-account.h>
#include <libmissioncontrol/mission-control.h>
+#include <libempathy/empathy-call-factory.h>
#include <libempathy/empathy-contact-factory.h>
#include <libempathy/empathy-contact-manager.h>
#include <libempathy/empathy-dispatcher.h>
@@ -186,11 +187,15 @@ new_message_dialog_response_cb (GtkWidget *widget,
if (response == 1) {
EmpathyContactFactory *factory;
EmpathyContact *contact;
+ EmpathyCallFactory *call_factory;
factory = empathy_contact_factory_dup_singleton ();
contact = empathy_contact_factory_get_from_id (factory, account, id);
empathy_start_call_with_contact (contact);
+ call_factory = empathy_call_factory_get();
+ empathy_call_factory_new_call (call_factory, contact);
+
g_object_unref (contact);
g_object_unref (factory);
} else if (response == 2) {
@@ -307,4 +312,3 @@ empathy_new_message_dialog_show (GtkWindow *parent)
return dialog->dialog;
}
-