aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:28:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:28:51 +0800
commit05b198c2ad2f40fe11e98809f8ef87870bbce261 (patch)
tree8e32fd51a775d60ce1f13b5096425ea8fdd62cf1 /src
parentc0e99b7e12dc2a5f6906f9b1efadd5c844f59524 (diff)
downloadgsoc2013-empathy-05b198c2ad2f40fe11e98809f8ef87870bbce261.tar
gsoc2013-empathy-05b198c2ad2f40fe11e98809f8ef87870bbce261.tar.gz
gsoc2013-empathy-05b198c2ad2f40fe11e98809f8ef87870bbce261.tar.bz2
gsoc2013-empathy-05b198c2ad2f40fe11e98809f8ef87870bbce261.tar.lz
gsoc2013-empathy-05b198c2ad2f40fe11e98809f8ef87870bbce261.tar.xz
gsoc2013-empathy-05b198c2ad2f40fe11e98809f8ef87870bbce261.tar.zst
gsoc2013-empathy-05b198c2ad2f40fe11e98809f8ef87870bbce261.zip
Port EmpathyImportDialog to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2859
Diffstat (limited to 'src')
-rw-r--r--src/empathy-import-dialog.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c
index 58e4be6b8..c7c321f96 100644
--- a/src/empathy-import-dialog.c
+++ b/src/empathy-import-dialog.c
@@ -25,7 +25,6 @@
#include <glib.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <glib/gi18n.h>
#include <libmissioncontrol/mc-account.h>
@@ -363,7 +362,7 @@ empathy_import_dialog_show (GtkWindow *parent,
gboolean warning)
{
static EmpathyImportDialog *dialog = NULL;
- GladeXML *glade;
+ GtkBuilder *gui;
gchar *filename;
GList *accounts = NULL;
@@ -402,16 +401,13 @@ empathy_import_dialog_show (GtkWindow *parent,
dialog = g_slice_new0 (EmpathyImportDialog);
dialog->accounts = accounts;
- filename = empathy_file_lookup ("empathy-import-dialog.glade", "src");
- glade = empathy_glade_get_file (filename,
- "import_dialog",
- NULL,
+ filename = empathy_file_lookup ("empathy-import-dialog.ui", "src");
+ gui = empathy_builder_get_file (filename,
"import_dialog", &dialog->window,
"treeview", &dialog->treeview,
NULL);
- empathy_glade_connect (glade,
- dialog,
+ empathy_builder_connect (gui, dialog,
"import_dialog", "destroy", import_dialog_destroy_cb,
"import_dialog", "response", import_dialog_response_cb,
NULL);
@@ -419,7 +415,7 @@ empathy_import_dialog_show (GtkWindow *parent,
g_object_add_weak_pointer (G_OBJECT (dialog->window), (gpointer) &dialog);
g_free (filename);
- g_object_unref (glade);
+ g_object_unref (gui);
if (parent)
gtk_window_set_transient_for (GTK_WINDOW (dialog->window), parent);