X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=libempathy-gtk%2Fempathy-new-message-dialog.c;h=b1a35095b75a7fbbf7a6458fd64633978f6574ca;hp=1192ecf7316ae01e5169d32397a870713f2b72ab;hb=9b9fcd3ce3b9c7fdc62836821d83377bec58d0a5;hpb=dcd115814f40de200c3cf4da6693de84489592ac diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c index 1192ecf7..b1a35095 100644 --- a/libempathy-gtk/empathy-new-message-dialog.c +++ b/libempathy-gtk/empathy-new-message-dialog.c @@ -173,14 +173,20 @@ new_message_dialog_match_func (GtkEntryCompletion *completion, static void new_message_dialog_call_got_contact_cb (EmpathyTpContactFactory *factory, - GList *contacts, + EmpathyContact *contact, + const GError *error, gpointer user_data, GObject *weak_object) { EmpathyCallFactory *call_factory; + if (error != NULL) { + DEBUG ("Error: %s", error->message); + return; + } + call_factory = empathy_call_factory_get(); - empathy_call_factory_new_call (call_factory, contacts->data); + empathy_call_factory_new_call (call_factory, contact); } static void @@ -203,7 +209,7 @@ new_message_dialog_response_cb (GtkWidget *widget, EmpathyTpContactFactory *factory; factory = empathy_tp_contact_factory_dup_singleton (connection); - empathy_tp_contact_factory_get_from_ids (factory, 1, &id, + empathy_tp_contact_factory_get_from_id (factory, id, new_message_dialog_call_got_contact_cb, NULL, NULL, NULL); g_object_unref (factory);