aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-11 20:41:47 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-02-12 00:01:38 +0800
commit457d59921b00b2acb008df1cd0428d4433ec981a (patch)
treeb89bb34d9b256930b34fd542dcdb35b417bbd658
parent2f011b0419e1d37ce9eadba249fa11f6852e1d8e (diff)
downloadgsoc2013-empathy-457d59921b00b2acb008df1cd0428d4433ec981a.tar.gz
gsoc2013-empathy-457d59921b00b2acb008df1cd0428d4433ec981a.tar.zst
gsoc2013-empathy-457d59921b00b2acb008df1cd0428d4433ec981a.zip
hide the advanced options for Facebook accounts
-rw-r--r--libempathy-gtk/empathy-account-widget-jabber.ui2
-rw-r--r--libempathy-gtk/empathy-account-widget.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-widget-jabber.ui b/libempathy-gtk/empathy-account-widget-jabber.ui
index 49584917e..f71fb1520 100644
--- a/libempathy-gtk/empathy-account-widget-jabber.ui
+++ b/libempathy-gtk/empathy-account-widget-jabber.ui
@@ -172,7 +172,7 @@
</packing>
</child>
<child>
- <object class="GtkExpander" id="expander1">
+ <object class="GtkExpander" id="expander_advanced">
<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 76d2ed19c..39a3741ed 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -960,6 +960,7 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
GtkWidget *label_id_create, *label_password_create;
GtkWidget *label_example_gtalk, *label_example_jabber, *label_example_fb;
gboolean is_gtalk, is_facebook;
+ GtkWidget *expander_advanced;
is_gtalk = account_widget_is_gtalk (self);
is_facebook = account_widget_is_facebook (self);
@@ -1016,6 +1017,7 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
"label_username_example", &label_example_jabber,
"label_username_g_example", &label_example_gtalk,
"label_username_f_example", &label_example_fb,
+ "expander_advanced", &expander_advanced,
NULL);
empathy_account_widget_handle_params (self,
@@ -1047,6 +1049,7 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
{
gtk_widget_hide (label_example_jabber);
gtk_widget_show (label_example_fb);
+ gtk_widget_hide (expander_advanced);
}
}
}