aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-20 22:51:35 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-01-25 22:13:38 +0800
commit3e258d7e2a040df13320f34af03f034bc88008d9 (patch)
tree5960a2a0109c06e3ae772624e773faa7c9ef9040
parent17ea62102f51a9d6e50a12f516fec4af60ce0c88 (diff)
downloadgsoc2013-empathy-3e258d7e2a040df13320f34af03f034bc88008d9.tar
gsoc2013-empathy-3e258d7e2a040df13320f34af03f034bc88008d9.tar.gz
gsoc2013-empathy-3e258d7e2a040df13320f34af03f034bc88008d9.tar.bz2
gsoc2013-empathy-3e258d7e2a040df13320f34af03f034bc88008d9.tar.lz
gsoc2013-empathy-3e258d7e2a040df13320f34af03f034bc88008d9.tar.xz
gsoc2013-empathy-3e258d7e2a040df13320f34af03f034bc88008d9.tar.zst
gsoc2013-empathy-3e258d7e2a040df13320f34af03f034bc88008d9.zip
account-widget-salut: don't display advanced properties in simple mode
-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");
}