[gnome-tweak-tool] Restore ‘Power button action ’ setting
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Restore ‘Power button action ’ setting
- Date: Wed, 13 Jan 2016 10:58:31 +0000 (UTC)
commit cfaf72258039b056c495d8aa9f6645acaf5f4aee
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Tue Jan 12 10:36:25 2016 +0000
Restore ‘Power button action’ setting
The ‘button-power’ gsettings key was removed in gnome-settings-daemon
3.16 and replaced with ‘power-button-action’ in 3.16.1. Also add a title
so that it matches the appearance of the laptop lid tweaks.
https://bugzilla.gnome.org/show_bug.cgi?id=760514
gtweak/tweaks/tweak_group_shell.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_shell.py b/gtweak/tweaks/tweak_group_shell.py
index b8dd497..557746f 100644
--- a/gtweak/tweaks/tweak_group_shell.py
+++ b/gtweak/tweaks/tweak_group_shell.py
@@ -108,7 +108,8 @@ TWEAK_GROUPS = [
GSettingsCheckTweak(_("Show week numbers"),"org.gnome.shell.calendar", "show-weekdate",
schema_filename="org.gnome.shell.gschema.xml", loaded=_shell_loaded),
),
ListBoxTweakGroup(TWEAK_GROUP_POWER,
- GSettingsComboEnumTweak(_("Power Button Action"), "org.gnome.settings-daemon.plugins.power",
"button-power", size_group=sg),
+ Title(_("When Power Button is Pressed"), "", uid="title-theme"),
+ GSettingsComboEnumTweak(_("Action"), "org.gnome.settings-daemon.plugins.power",
"power-button-action", size_group=sg),
Title(_("When Laptop Lid is Closed"), "", uid="title-theme"),
GSettingsComboEnumTweak(_("On Battery Power"),"org.gnome.settings-daemon.plugins.power",
"lid-close-battery-action", size_group=sg),
GSettingsComboEnumTweak(_("When plugged in"),"org.gnome.settings-daemon.plugins.power",
"lid-close-ac-action", size_group=sg),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]