aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-dialogs.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:28:07 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:28:07 +0800
commit13e35172d60ac123dfb52ac90383be0714a582de (patch)
tree3025f47f28649c8e56a66d8c7c0f11dded11aab7 /libempathy-gtk/empathy-contact-dialogs.c
parent7e25865ae51a5c81dc31eec0ffe818077dd0b777 (diff)
downloadgsoc2013-empathy-13e35172d60ac123dfb52ac90383be0714a582de.tar
gsoc2013-empathy-13e35172d60ac123dfb52ac90383be0714a582de.tar.gz
gsoc2013-empathy-13e35172d60ac123dfb52ac90383be0714a582de.tar.bz2
gsoc2013-empathy-13e35172d60ac123dfb52ac90383be0714a582de.tar.lz
gsoc2013-empathy-13e35172d60ac123dfb52ac90383be0714a582de.tar.xz
gsoc2013-empathy-13e35172d60ac123dfb52ac90383be0714a582de.tar.zst
gsoc2013-empathy-13e35172d60ac123dfb52ac90383be0714a582de.zip
Port EmpathyContactDialogs to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2846
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index f7a769d98..d287b4d78 100644
--- a/libempathy-gtk/empathy-contact-dialogs.c
+++ b/libempathy-gtk/empathy-contact-dialogs.c
@@ -25,7 +25,6 @@
#include <stdlib.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <glib/gi18n-lib.h>
#include <libmissioncontrol/mission-control.h>
@@ -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 |