]> git.0d.be Git - empathy.git/commitdiff
Use the new call utility function to start calls
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 9 Jan 2009 16:14:17 +0000 (16:14 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:14:17 +0000 (16:14 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2167

libempathy-gtk/empathy-contact-list-view.c
libempathy-gtk/empathy-contact-menu.c
libempathy-gtk/empathy-new-message-dialog.c

index 5e83f3b63a53c30bc77b2301ca6adbce6f372e77..6dfb20eb9dc946847184425c4fe08741a215ab42 100644 (file)
@@ -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);
        }
 }
index ab9ba721fedb5febe3e464f7538e4bbeaebb5408..cf8580d23615760d13a86d53a476d23f3ab4b24f 100644 (file)
@@ -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;
index ff91a182a5797b31f3d755f19a6848a98190fa0a..766087812a0a2c72c85b366595f2ccafe09d9df6 100644 (file)
@@ -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);
        }