[empathy] account-widget-salut: don't display advanced properties in simple mode
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] account-widget-salut: don't display advanced properties in simple mode
- Date: Mon, 25 Jan 2010 14:14:03 +0000 (UTC)
commit 3e258d7e2a040df13320f34af03f034bc88008d9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Jan 20 14:51:35 2010 +0000
account-widget-salut: don't display advanced properties in simple mode
.../empathy-account-widget-local-xmpp.ui | 2 +-
libempathy-gtk/empathy-account-widget.c | 5 +++++
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 c123aa6..15d7557 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 c44b6cd..1cc84cb 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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]