From cf87727155747b6c31a3ffc8c2d8fa3c8ce10bf7 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 16 Apr 2009 12:28:31 +0000 Subject: [PATCH] Port EmpathySpellDialog to new API From: Xavier Claessens svn path=/trunk/; revision=2853 --- libempathy-gtk/empathy-spell-dialog.c | 24 +++++++----------------- src/empathy-about-dialog.c | 1 - 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/libempathy-gtk/empathy-spell-dialog.c b/libempathy-gtk/empathy-spell-dialog.c index c5914ce9..9ce80eeb 100644 --- a/libempathy-gtk/empathy-spell-dialog.c +++ b/libempathy-gtk/empathy-spell-dialog.c @@ -23,14 +23,7 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include @@ -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); diff --git a/src/empathy-about-dialog.c b/src/empathy-about-dialog.c index 4765e6b3..a743f22c 100644 --- a/src/empathy-about-dialog.c +++ b/src/empathy-about-dialog.c @@ -27,7 +27,6 @@ #include #include #include -#include #include -- 2.39.2