[gnome-tweak-tool/gnome-3-24] 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/gnome-3-24] top_bar: Only show this page if GNOME Shell is running
- Date: Mon, 12 Jun 2017 00:41:31 +0000 (UTC)
commit a1bf028db4104d422ec18053052ffb4d787bd3fb
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Sun Jun 11 19:55:12 2017 -0400
top_bar: Only show this page if GNOME Shell is running
gtweak/tweaks/tweak_group_shell.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_shell.py b/gtweak/tweaks/tweak_group_shell.py
index 822d231..9a17f7f 100644
--- a/gtweak/tweaks/tweak_group_shell.py
+++ b/gtweak/tweaks/tweak_group_shell.py
@@ -30,7 +30,7 @@ _shell_loaded = _shell is not None
class ApplicationMenuTweak(GetterSetterSwitchTweak):
def __init__(self, **options):
self._xsettings = XSettingsOverrides()
- GetterSetterSwitchTweak.__init__(self, _("Show Application Menu"), **options)
+ GetterSetterSwitchTweak.__init__(self, _("Show Application Menu"), loaded=_shell_loaded, **options)
def get_active(self):
return self._xsettings.get_shell_shows_app_menu()
@@ -101,11 +101,11 @@ depends_how = lambda x,kn: not(x.get_boolean(kn))
TWEAK_GROUPS = [
ListBoxTweakGroup(TWEAK_GROUP_TOPBAR,
ApplicationMenuTweak(),
- Title(_("Clock"),""),
- GSettingsCheckTweak(_("Show date"),"org.gnome.desktop.interface", "clock-show-date",
schema_filename="org.gnome.desktop.interface.gschema.xml"),
- GSettingsCheckTweak(_("Show seconds"), "org.gnome.desktop.interface", "clock-show-seconds",
schema_filename="org.gnome.desktop.interface.gschema.xml"),
- Title(_("Calendar"),""),
- GSettingsCheckTweak(_("Show week numbers"),"org.gnome.desktop.calendar", "show-weekdate",
schema_filename="org.gnome.desktop.calendar.gschema.xml"),
+ Title(_("Clock"),"", loaded=_shell_loaded),
+ GSettingsCheckTweak(_("Show date"),"org.gnome.desktop.interface", "clock-show-date",
schema_filename="org.gnome.desktop.interface.gschema.xml", loaded=_shell_loaded),
+ GSettingsCheckTweak(_("Show seconds"), "org.gnome.desktop.interface", "clock-show-seconds",
schema_filename="org.gnome.desktop.interface.gschema.xml", loaded=_shell_loaded),
+ Title(_("Calendar"),"", loaded=_shell_loaded),
+ GSettingsCheckTweak(_("Show week numbers"),"org.gnome.desktop.calendar", "show-weekdate",
schema_filename="org.gnome.desktop.calendar.gschema.xml", loaded=_shell_loaded),
),
ListBoxTweakGroup(TWEAK_GROUP_POWER,
Title(_("When Power Button is Pressed"), "", uid="title-theme"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]