[empathy] hide jabber example by default so we just have to show the one we want
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] hide jabber example by default so we just have to show the one we want
- Date: Tue, 7 Dec 2010 13:06:50 +0000 (UTC)
commit c5a45a77bcc3fc39bb4814f46deb994e1b29ddb5
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Sep 30 10:52:02 2010 +0200
hide jabber example by default so we just have to show the one we want
libempathy-gtk/empathy-account-widget-jabber.ui | 1 -
libempathy-gtk/empathy-account-widget.c | 9 ++++-----
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 f7579bb..d17d0d7 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"><b>Example:</b> user jabber org</property>
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index f33fec2..e42fe78 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);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]