aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-08-05 18:02:39 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-22 21:20:44 +0800
commit3962f6f8d1680b6a304577dbc1ed366c33f6b206 (patch)
treed8d8f08541140ca7cf5d08cb23cf56a588e8e398 /libempathy-gtk/empathy-account-widget.c
parent877ca07d5b79400863997df5c31180feec7103db (diff)
downloadgsoc2013-empathy-3962f6f8d1680b6a304577dbc1ed366c33f6b206.tar
gsoc2013-empathy-3962f6f8d1680b6a304577dbc1ed366c33f6b206.tar.gz
gsoc2013-empathy-3962f6f8d1680b6a304577dbc1ed366c33f6b206.tar.bz2
gsoc2013-empathy-3962f6f8d1680b6a304577dbc1ed366c33f6b206.tar.lz
gsoc2013-empathy-3962f6f8d1680b6a304577dbc1ed366c33f6b206.tar.xz
gsoc2013-empathy-3962f6f8d1680b6a304577dbc1ed366c33f6b206.tar.zst
gsoc2013-empathy-3962f6f8d1680b6a304577dbc1ed366c33f6b206.zip
Change labels when creating an account
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r--libempathy-gtk/empathy-account-widget.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 27120c51a..713f50048 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -666,12 +666,26 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
GtkWidget *spinbutton_port;
GtkWidget *checkbutton_ssl;
+ GtkWidget *label_id, *label_password;
+ GtkWidget *label_id_create, *label_password_create;
if (priv->simple)
{
self->ui_details->gui = empathy_builder_get_file (filename,
"vbox_jabber_simple", &self->ui_details->widget,
+ "label_id_simple", &label_id,
+ "label_id_create", &label_id_create,
+ "label_password_simple", &label_password,
+ "label_password_create", &label_password_create,
NULL);
+
+ if (empathy_account_settings_get_boolean (priv->settings, "register"))
+ {
+ gtk_widget_hide (label_id);
+ gtk_widget_hide (label_password);
+ gtk_widget_show (label_id_create);
+ gtk_widget_show (label_password_create);
+ }
empathy_account_widget_handle_params (self,
"entry_id_simple", "account",