aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:28:24 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:28:24 +0800
commit43bcebc1471b9351a7776d367e4e59d27cdca7d7 (patch)
treea85f54b02164de3a6b258d4611d589ae8341406e /libempathy-gtk
parentdb1793b6152f154c4f066e8c62994c9c191df7fe (diff)
downloadgsoc2013-empathy-43bcebc1471b9351a7776d367e4e59d27cdca7d7.tar
gsoc2013-empathy-43bcebc1471b9351a7776d367e4e59d27cdca7d7.tar.gz
gsoc2013-empathy-43bcebc1471b9351a7776d367e4e59d27cdca7d7.tar.bz2
gsoc2013-empathy-43bcebc1471b9351a7776d367e4e59d27cdca7d7.tar.lz
gsoc2013-empathy-43bcebc1471b9351a7776d367e4e59d27cdca7d7.tar.xz
gsoc2013-empathy-43bcebc1471b9351a7776d367e4e59d27cdca7d7.tar.zst
gsoc2013-empathy-43bcebc1471b9351a7776d367e4e59d27cdca7d7.zip
Port EmpathyNewMessageDialog to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2851
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-new-message-dialog.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-new-message-dialog.c b/libempathy-gtk/empathy-new-message-dialog.c
index 93f679e66..f6eb46a5f 100644
--- a/libempathy-gtk/empathy-new-message-dialog.c
+++ b/libempathy-gtk/empathy-new-message-dialog.c
@@ -25,7 +25,6 @@
#include <stdlib.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <glib/gi18n-lib.h>
#include <libmissioncontrol/mc-account.h>
@@ -231,7 +230,7 @@ GtkWidget *
empathy_new_message_dialog_show (GtkWindow *parent)
{
static EmpathyNewMessageDialog *dialog = NULL;
- GladeXML *glade;
+ GtkBuilder *gui;
gchar *filename;
GtkEntryCompletion *completion;
GtkListStore *model;
@@ -246,11 +245,9 @@ empathy_new_message_dialog_show (GtkWindow *parent)
/* 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,
@@ -274,7 +271,7 @@ empathy_new_message_dialog_show (GtkWindow *parent)
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,
@@ -282,7 +279,7 @@ empathy_new_message_dialog_show (GtkWindow *parent)
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 ();