From 13e35172d60ac123dfb52ac90383be0714a582de Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 16 Apr 2009 12:28:07 +0000 Subject: [PATCH] Port EmpathyContactDialogs to new API From: Xavier Claessens svn path=/trunk/; revision=2846 --- libempathy-gtk/empathy-contact-dialogs.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c index f7a769d9..d287b4d7 100644 --- a/libempathy-gtk/empathy-contact-dialogs.c +++ b/libempathy-gtk/empathy-contact-dialogs.c @@ -25,7 +25,6 @@ #include #include -#include #include #include @@ -89,6 +88,7 @@ void empathy_subscription_dialog_show (EmpathyContact *contact, GtkWindow *parent) { + GtkBuilder *gui; GtkWidget *dialog; GtkWidget *hbox_subscription; GtkWidget *contact_widget; @@ -105,15 +105,14 @@ empathy_subscription_dialog_show (EmpathyContact *contact, return; } - filename = empathy_file_lookup ("empathy-contact-dialogs.glade", + filename = empathy_file_lookup ("empathy-contact-dialogs.ui", "libempathy-gtk"); - empathy_glade_get_file_simple (filename, - "subscription_request_dialog", - NULL, + gui = empathy_builder_get_file (filename, "subscription_request_dialog", &dialog, "hbox_subscription", &hbox_subscription, NULL); g_free (filename); + g_object_unref (gui); contact_widget = empathy_contact_widget_new (contact, EMPATHY_CONTACT_WIDGET_EDIT_ALIAS | -- 2.39.2