aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget-local-xmpp.ui2
-rw-r--r--libempathy-gtk/empathy-account-widget.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-widget-local-xmpp.ui b/libempathy-gtk/empathy-account-widget-local-xmpp.ui
index c123aa6ff..15d75572b 100644
--- a/libempathy-gtk/empathy-account-widget-local-xmpp.ui
+++ b/libempathy-gtk/empathy-account-widget-local-xmpp.ui
@@ -104,7 +104,7 @@
</packing>
</child>
<child>
- <object class="GtkExpander" id="expander1">
+ <object class="GtkExpander" id="expander_advanced_settings">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index c44b6cd1b..1cc84cb34 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -852,10 +852,12 @@ account_widget_build_salut (EmpathyAccountWidget *self,
const char *filename)
{
EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
+ GtkWidget *expander_advanced;
self->ui_details->gui = empathy_builder_get_file (filename,
"table_common_settings", &priv->table_common_settings,
"vbox_salut_settings", &self->ui_details->widget,
+ "expander_advanced_settings", &expander_advanced,
NULL);
empathy_account_widget_handle_params (self,
@@ -867,6 +869,9 @@ account_widget_build_salut (EmpathyAccountWidget *self,
"entry_jid", "jid",
NULL);
+ if (priv->simple)
+ gtk_widget_hide (expander_advanced);
+
self->ui_details->default_focus = g_strdup ("entry_first_name");
}