aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:28:57 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:28:57 +0800
commit791170c47bfaecd6f18020db7c794028ffcf6d0b (patch)
treee6b9ab062c589f097fbd20ba516b7033448cfbed /src
parent0bb56207b08b80b895897eeafec2633ea57c1123 (diff)
downloadgsoc2013-empathy-791170c47bfaecd6f18020db7c794028ffcf6d0b.tar
gsoc2013-empathy-791170c47bfaecd6f18020db7c794028ffcf6d0b.tar.gz
gsoc2013-empathy-791170c47bfaecd6f18020db7c794028ffcf6d0b.tar.bz2
gsoc2013-empathy-791170c47bfaecd6f18020db7c794028ffcf6d0b.tar.lz
gsoc2013-empathy-791170c47bfaecd6f18020db7c794028ffcf6d0b.tar.xz
gsoc2013-empathy-791170c47bfaecd6f18020db7c794028ffcf6d0b.tar.zst
gsoc2013-empathy-791170c47bfaecd6f18020db7c794028ffcf6d0b.zip
Port EmpathyNewChatroomDialog to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2861
Diffstat (limited to 'src')
-rw-r--r--src/empathy-new-chatroom-dialog.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index 0d2452b65..75ab742c3 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -28,7 +28,6 @@
#include <stdio.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <glib.h>
#include <glib/gi18n.h>
@@ -121,7 +120,7 @@ void
empathy_new_chatroom_dialog_show (GtkWindow *parent)
{
EmpathyNewChatroomDialog *dialog;
- GladeXML *glade;
+ GtkBuilder *gui;
GtkSizeGroup *size_group;
gchar *filename;
@@ -132,10 +131,8 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent)
dialog_p = dialog = g_new0 (EmpathyNewChatroomDialog, 1);
- filename = empathy_file_lookup ("empathy-new-chatroom-dialog.glade", "src");
- glade = empathy_glade_get_file (filename,
- "new_chatroom_dialog",
- NULL,
+ filename = empathy_file_lookup ("empathy-new-chatroom-dialog.ui", "src");
+ gui = empathy_builder_get_file (filename,
"new_chatroom_dialog", &dialog->window,
"table_info", &dialog->table_info,
"label_account", &dialog->label_account,
@@ -153,8 +150,7 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent)
NULL);
g_free (filename);
- empathy_glade_connect (glade,
- dialog,
+ empathy_builder_connect (gui, dialog,
"new_chatroom_dialog", "response", new_chatroom_dialog_response_cb,
"new_chatroom_dialog", "destroy", new_chatroom_dialog_destroy_cb,
"entry_server", "changed", new_chatroom_dialog_entry_changed_cb,
@@ -163,7 +159,7 @@ empathy_new_chatroom_dialog_show (GtkWindow *parent)
"togglebutton_refresh", "toggled", new_chatroom_dialog_togglebutton_refresh_toggled_cb,
NULL);
- g_object_unref (glade);
+ g_object_unref (gui);
g_object_add_weak_pointer (G_OBJECT (dialog->window), (gpointer) &dialog_p);