[gnome-tweak-tool] top_bar: Only show this page if GNOME Shell is running
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] top_bar: Only show this page if GNOME Shell is running
- Date: Sun, 11 Jun 2017 23:42:32 +0000 (UTC)
commit f729e5a0c26b4da538647154c6f858a61962551a
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Sun Jun 11 19:37:20 2017 -0400
top_bar: Only show this page if GNOME Shell is running
gtweak/tweaks/tweak_group_top_bar.py | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_top_bar.py b/gtweak/tweaks/tweak_group_top_bar.py
index 988b8ea..62e1769 100644
--- a/gtweak/tweaks/tweak_group_top_bar.py
+++ b/gtweak/tweaks/tweak_group_top_bar.py
@@ -34,6 +34,7 @@ class ApplicationMenuTweak(GetterSetterSwitchTweak):
name,
"org.gnome.desktop.wm.preferences",
"button-layout",
+ loaded=_shell_loaded,
**options)
def get_active(self):
@@ -65,12 +66,12 @@ class ApplicationMenuTweak(GetterSetterSwitchTweak):
TWEAK_GROUPS = [
ListBoxTweakGroup(_("Top Bar"),
ApplicationMenuTweak(),
- Title(_("Clock"),""),
- GSettingsSwitchTweak(_("Date"),"org.gnome.desktop.interface", "clock-show-date"),
- GSettingsSwitchTweak(_("Seconds"), "org.gnome.desktop.interface", "clock-show-seconds"),
- Title(_("Calendar"),""),
- GSettingsSwitchTweak(_("Week Numbers"),"org.gnome.desktop.calendar", "show-weekdate"),
- Title(_("Power"),""),
- GSettingsSwitchTweak(_("Battery Percentage"),"org.gnome.desktop.interface",
"show-battery-percentage"),
+ Title(_("Clock"),"", loaded=_shell_loaded),
+ GSettingsSwitchTweak(_("Date"),"org.gnome.desktop.interface", "clock-show-date",
loaded=_shell_loaded),
+ GSettingsSwitchTweak(_("Seconds"), "org.gnome.desktop.interface", "clock-show-seconds",
loaded=_shell_loaded),
+ Title(_("Calendar"),"", loaded=_shell_loaded),
+ GSettingsSwitchTweak(_("Week Numbers"),"org.gnome.desktop.calendar", "show-weekdate",
loaded=_shell_loaded),
+ Title(_("Power"),"", loaded=_shell_loaded),
+ GSettingsSwitchTweak(_("Battery Percentage"),"org.gnome.desktop.interface",
"show-battery-percentage", loaded=_shell_loaded),
)
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]