]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-new-message-dialog.c
Switch to calling CallFactory to make calls
[empathy.git] / libempathy-gtk / empathy-new-message-dialog.c
index 9127e2919556a87d75eeaea25cf6915fb54f8e73..1db8db1b6bdb28968e830fd487019909e9465111 100644 (file)
@@ -31,6 +31,7 @@
 #include <libmissioncontrol/mc-account.h>
 #include <libmissioncontrol/mission-control.h>
 
 #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>
 #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;
        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);
 
 
                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) {
                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;
 }
 
        return dialog->dialog;
 }
-