aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-30 16:52:02 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-07 21:06:06 +0800
commitc5a45a77bcc3fc39bb4814f46deb994e1b29ddb5 (patch)
tree94ca3bbffe690ed4312b0a689fbc34fc4112a8e9 /libempathy-gtk
parent43070f934f712124c9b064c34021f42e09eb328e (diff)
downloadgsoc2013-empathy-c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5.tar
gsoc2013-empathy-c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5.tar.gz
gsoc2013-empathy-c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5.tar.bz2
gsoc2013-empathy-c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5.tar.lz
gsoc2013-empathy-c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5.tar.xz
gsoc2013-empathy-c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5.tar.zst
gsoc2013-empathy-c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5.zip
hide jabber example by default so we just have to show the one we want
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget-jabber.ui1
-rw-r--r--libempathy-gtk/empathy-account-widget.c9
2 files changed, 4 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-account-widget-jabber.ui b/libempathy-gtk/empathy-account-widget-jabber.ui
index f7579bbb4..d17d0d7e0 100644
--- a/libempathy-gtk/empathy-account-widget-jabber.ui
+++ b/libempathy-gtk/empathy-account-widget-jabber.ui
@@ -89,7 +89,6 @@
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label_username_example">
- <property name="visible">True</property>
<property name="xalign">0</property>
<property name="xpad">3</property>
<property name="label" translatable="yes">&lt;b&gt;Example:&lt;/b&gt; user@jabber.org</property>
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index f33fec2c0..e42fe78e9 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1496,7 +1496,6 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
if (service == GTALK_SERVICE)
{
- gtk_widget_hide (label_example_jabber);
gtk_widget_show (label_example_gtalk);
}
else if (service == FACEBOOK_SERVICE)
@@ -1504,8 +1503,6 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
GtkContainer *parent;
GList *children;
- gtk_widget_hide (label_example_jabber);
-
/* Removing the label from list of focusable widgets */
parent = GTK_CONTAINER (gtk_widget_get_parent (label_example_fb));
children = gtk_container_get_children (parent);
@@ -1513,15 +1510,17 @@ account_widget_build_jabber (EmpathyAccountWidget *self,
gtk_container_set_focus_chain (parent, children);
g_list_free (children);
- gtk_widget_show (label_example_fb);
gtk_widget_hide (expander_advanced);
}
else if (service == OVI_SERVICE)
{
- gtk_widget_hide (label_example_jabber);
gtk_widget_show (label_example_ovi);
gtk_widget_hide (expander_advanced);
}
+ else
+ {
+ gtk_widget_show (label_example_jabber);
+ }
}
}