[gnome-bluetooth] Fix status label visibility in applet
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Fix status label visibility in applet
- Date: Tue, 20 Oct 2009 13:36:32 +0000 (UTC)
commit cce31961fde2b6954e58d2940629357681f884b8
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 20 13:43:36 2009 +0100
Fix status label visibility in applet
When the first killswitch is added after start
applet/main.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/applet/main.c b/applet/main.c
index 33d1ad2..63d4e06 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -290,6 +290,13 @@ killswitch_state_changed (BluetoothKillswitch *killswitch, KillswitchState state
g_assert_not_reached ();
}
+ if (bluetooth_killswitch_has_killswitches (killswitch) != FALSE) {
+ GObject *object;
+
+ object = gtk_builder_get_object (xml, "killswitch-label");
+ gtk_action_set_visible (GTK_ACTION (object), TRUE);
+ }
+
object = gtk_builder_get_object (xml, "killswitch-label");
gtk_action_set_label (GTK_ACTION (object), _(status_label));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]