#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>
account = empathy_account_chooser_get_account (EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser));
id = gtk_entry_get_text (GTK_ENTRY (dialog->entry_id));
- if (!account || G_STR_EMPTY (id)) {
+ if (!account || EMP_STR_EMPTY (id)) {
if (account) {
g_object_unref (account);
}
if (response == 1) {
EmpathyContactFactory *factory;
EmpathyContact *contact;
+ EmpathyCallFactory *call_factory;
- factory = empathy_contact_factory_new ();
+ 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);
gboolean sensitive;
id = gtk_entry_get_text (GTK_ENTRY (editable));
- sensitive = !G_STR_EMPTY (id);
+ sensitive = !EMP_STR_EMPTY (id);
gtk_widget_set_sensitive (dialog->button_chat, sensitive);
gtk_widget_set_sensitive (dialog->button_call, sensitive);
return dialog->dialog;
}
-