aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:28:31 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:28:31 +0800
commitcf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7 (patch)
treeacbfc4e8db073e0afa93b655bf92a2a55e65c3b4 /libempathy-gtk
parent2c7eea3c83580dc408ec9bb85da743717ca22dfa (diff)
downloadgsoc2013-empathy-cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7.tar
gsoc2013-empathy-cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7.tar.gz
gsoc2013-empathy-cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7.tar.bz2
gsoc2013-empathy-cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7.tar.lz
gsoc2013-empathy-cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7.tar.xz
gsoc2013-empathy-cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7.tar.zst
gsoc2013-empathy-cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7.zip
Port EmpathySpellDialog to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2853
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-spell-dialog.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/libempathy-gtk/empathy-spell-dialog.c b/libempathy-gtk/empathy-spell-dialog.c
index c5914ce94..9ce80eebb 100644
--- a/libempathy-gtk/empathy-spell-dialog.c
+++ b/libempathy-gtk/empathy-spell-dialog.c
@@ -23,14 +23,7 @@
#include <string.h>
#include <glib/gi18n-lib.h>
-#include <gtk/gtkcellrenderertext.h>
-#include <gtk/gtkdialog.h>
-#include <gtk/gtklabel.h>
-#include <gtk/gtkliststore.h>
-#include <gtk/gtktreeview.h>
-#include <gtk/gtktreeselection.h>
-#include <gtk/gtksizegroup.h>
-#include <glade/glade.h>
+#include <gtk/gtk.h>
#include <libempathy/empathy-utils.h>
@@ -225,9 +218,9 @@ empathy_spell_dialog_show (EmpathyChat *chat,
const gchar *word)
{
EmpathySpellDialog *dialog;
- GladeXML *gui;
- gchar *str;
- gchar *filename;
+ GtkBuilder *gui;
+ gchar *str;
+ gchar *filename;
g_return_if_fail (chat != NULL);
g_return_if_fail (word != NULL);
@@ -241,11 +234,9 @@ empathy_spell_dialog_show (EmpathyChat *chat,
dialog->start = *start;
dialog->end = *end;
- filename = empathy_file_lookup ("empathy-spell-dialog.glade",
+ filename = empathy_file_lookup ("empathy-spell-dialog.ui",
"libempathy-gtk");
- gui = empathy_glade_get_file (filename,
- "spell_dialog",
- NULL,
+ gui = empathy_builder_get_file (filename,
"spell_dialog", &dialog->window,
"button_replace", &dialog->button_replace,
"label_word", &dialog->label_word,
@@ -253,8 +244,7 @@ empathy_spell_dialog_show (EmpathyChat *chat,
NULL);
g_free (filename);
- empathy_glade_connect (gui,
- dialog,
+ empathy_builder_connect (gui, dialog,
"spell_dialog", "response", spell_dialog_response_cb,
"spell_dialog", "destroy", spell_dialog_destroy_cb,
NULL);