aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:28:27 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:28:27 +0800
commit2c7eea3c83580dc408ec9bb85da743717ca22dfa (patch)
tree1c08b38811cffc9618280bb5e32ad9882186d6b8 /libempathy-gtk
parent43bcebc1471b9351a7776d367e4e59d27cdca7d7 (diff)
downloadgsoc2013-empathy-2c7eea3c83580dc408ec9bb85da743717ca22dfa.tar
gsoc2013-empathy-2c7eea3c83580dc408ec9bb85da743717ca22dfa.tar.gz
gsoc2013-empathy-2c7eea3c83580dc408ec9bb85da743717ca22dfa.tar.bz2
gsoc2013-empathy-2c7eea3c83580dc408ec9bb85da743717ca22dfa.tar.lz
gsoc2013-empathy-2c7eea3c83580dc408ec9bb85da743717ca22dfa.tar.xz
gsoc2013-empathy-2c7eea3c83580dc408ec9bb85da743717ca22dfa.tar.zst
gsoc2013-empathy-2c7eea3c83580dc408ec9bb85da743717ca22dfa.zip
Port EmpathyPresenceChooser to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2852
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-presence-chooser.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c
index 4806dc5c3..8d2fab3b5 100644
--- a/libempathy-gtk/empathy-presence-chooser.c
+++ b/libempathy-gtk/empathy-presence-chooser.c
@@ -31,7 +31,6 @@
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <gdk/gdkkeysyms.h>
#include <telepathy-glib/util.h>
@@ -1112,8 +1111,8 @@ presence_chooser_dialog_destroy_cb (GtkWidget *widget,
static void
presence_chooser_dialog_show (GtkWindow *parent)
{
- GladeXML *glade;
- gchar *filename;
+ GtkBuilder *gui;
+ gchar *filename;
if (message_dialog) {
gtk_window_present (GTK_WINDOW (message_dialog->dialog));
@@ -1122,11 +1121,9 @@ presence_chooser_dialog_show (GtkWindow *parent)
message_dialog = g_new0 (CustomMessageDialog, 1);
- filename = empathy_file_lookup ("empathy-presence-chooser.glade",
+ filename = empathy_file_lookup ("empathy-presence-chooser.ui",
"libempathy-gtk");
- glade = empathy_glade_get_file (filename,
- "custom_message_dialog",
- NULL,
+ gui = empathy_builder_get_file (filename,
"custom_message_dialog", &message_dialog->dialog,
"checkbutton_save", &message_dialog->checkbutton_save,
"comboboxentry_message", &message_dialog->comboboxentry_message,
@@ -1134,15 +1131,14 @@ presence_chooser_dialog_show (GtkWindow *parent)
NULL);
g_free (filename);
- empathy_glade_connect (glade,
- message_dialog,
+ empathy_builder_connect (gui, message_dialog,
"custom_message_dialog", "destroy", presence_chooser_dialog_destroy_cb,
"custom_message_dialog", "response", presence_chooser_dialog_response_cb,
"combobox_status", "changed", presence_chooser_dialog_status_changed_cb,
"checkbutton_save", "toggled", presence_chooser_dialog_save_toggled_cb,
NULL);
- g_object_unref (glade);
+ g_object_unref (gui);
/* Setup the message combobox */
message_dialog->entry_message = GTK_BIN (message_dialog->comboboxentry_message)->child;