#include <stdlib.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <glib/gi18n-lib.h>
#include <libmissioncontrol/mc-account.h>
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);
empathy_new_message_dialog_show (GtkWindow *parent)
{
static EmpathyNewMessageDialog *dialog = NULL;
- GladeXML *glade;
+ GtkBuilder *gui;
gchar *filename;
GtkEntryCompletion *completion;
GtkListStore *model;
/* create a contact manager */
dialog->contact_manager = empathy_contact_manager_dup_singleton ();
- filename = empathy_file_lookup ("empathy-new-message-dialog.glade",
+ filename = empathy_file_lookup ("empathy-new-message-dialog.ui",
"libempathy-gtk");
- glade = empathy_glade_get_file (filename,
- "new_message_dialog",
- NULL,
+ gui = empathy_builder_get_file (filename,
"new_message_dialog", &dialog->dialog,
"table_contact", &dialog->table_contact,
"entry_id", &dialog->entry_id,
g_object_unref(completion);
g_object_unref(model);
- empathy_glade_connect (glade, dialog,
+ empathy_builder_connect (gui, dialog,
"new_message_dialog", "destroy", new_message_dialog_destroy_cb,
"new_message_dialog", "response", new_message_dialog_response_cb,
"entry_id", "changed", new_message_change_state_button_cb,
g_object_add_weak_pointer (G_OBJECT (dialog->dialog), (gpointer) &dialog);
- g_object_unref (glade);
+ g_object_unref (gui);
/* Create account chooser */
dialog->account_chooser = empathy_account_chooser_new ();