aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget-sip.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:27:52 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:27:52 +0800
commiteacb73133ebf891a92938751619776fb9dedd29d (patch)
treeb712659c819cb6cc014d304c1ad2c25b82006165 /libempathy-gtk/empathy-account-widget-sip.c
parent11e07f923c7bc1655cfd1609024304fa1c8fe2c3 (diff)
downloadgsoc2013-empathy-eacb73133ebf891a92938751619776fb9dedd29d.tar
gsoc2013-empathy-eacb73133ebf891a92938751619776fb9dedd29d.tar.gz
gsoc2013-empathy-eacb73133ebf891a92938751619776fb9dedd29d.tar.bz2
gsoc2013-empathy-eacb73133ebf891a92938751619776fb9dedd29d.tar.lz
gsoc2013-empathy-eacb73133ebf891a92938751619776fb9dedd29d.tar.xz
gsoc2013-empathy-eacb73133ebf891a92938751619776fb9dedd29d.tar.zst
gsoc2013-empathy-eacb73133ebf891a92938751619776fb9dedd29d.zip
Port account widgets to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2842
Diffstat (limited to 'libempathy-gtk/empathy-account-widget-sip.c')
-rw-r--r--libempathy-gtk/empathy-account-widget-sip.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-account-widget-sip.c b/libempathy-gtk/empathy-account-widget-sip.c
index c5224df73..ffac231d6 100644
--- a/libempathy-gtk/empathy-account-widget-sip.c
+++ b/libempathy-gtk/empathy-account-widget-sip.c
@@ -27,7 +27,6 @@
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <libmissioncontrol/mc-account.h>
#include <libmissioncontrol/mc-protocol.h>
@@ -80,17 +79,15 @@ GtkWidget *
empathy_account_widget_sip_new (McAccount *account)
{
EmpathyAccountWidgetSip *settings;
- GladeXML *glade;
+ GtkBuilder *gui;
gchar *filename;
settings = g_slice_new0 (EmpathyAccountWidgetSip);
settings->account = g_object_ref (account);
- filename = empathy_file_lookup ("empathy-account-widget-sip.glade",
+ filename = empathy_file_lookup ("empathy-account-widget-sip.ui",
"libempathy-gtk");
- glade = empathy_glade_get_file (filename,
- "vbox_sip_settings",
- NULL,
+ gui = empathy_builder_get_file (filename,
"vbox_sip_settings", &settings->vbox_settings,
"entry_stun-server", &settings->entry_stun_server,
"spinbutton_stun-port", &settings->spinbutton_stun_part,
@@ -98,7 +95,7 @@ empathy_account_widget_sip_new (McAccount *account)
NULL);
g_free (filename);
- empathy_account_widget_handle_params (account, glade,
+ empathy_account_widget_handle_params (account, gui,
"entry_userid", "account",
"entry_password", "password",
"checkbutton_discover-stun", "discover-stun",
@@ -106,19 +103,21 @@ empathy_account_widget_sip_new (McAccount *account)
"spinbutton_stun-port", "stun-port",
NULL);
- empathy_account_widget_add_forget_button (account, glade,
+ empathy_account_widget_add_forget_button (account, gui,
"button_forget",
"entry_password");
account_widget_sip_discover_stun_toggled_cb (settings->checkbutton_discover_stun,
settings);
- empathy_glade_connect (glade, settings,
+ empathy_builder_connect (gui, settings,
"vbox_sip_settings", "destroy", account_widget_sip_destroy_cb,
"checkbutton_discover-stun", "toggled", account_widget_sip_discover_stun_toggled_cb,
NULL);
- g_object_unref (glade);
+ g_object_ref (settings->vbox_settings);
+ g_object_force_floating (G_OBJECT (settings->vbox_settings));
+ g_object_unref (gui);
return settings->vbox_settings;
}