[gnome-tweak-tool] Add a Mouse group with the locate-pointer key



commit dcb2ad78e3b4b641f23eec25b3754121cbf9347c
Author: Rui Matos <tiagomatos gmail com>
Date:   Sat Oct 6 19:28:57 2012 +0200

    Add a Mouse group with the locate-pointer key
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685620

 gtweak/tweakmodel.py         |    1 +
 gtweak/tweaks/tweak_mouse.py |    9 +++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
index aca69ab..c0f7b13 100644
--- a/gtweak/tweakmodel.py
+++ b/gtweak/tweakmodel.py
@@ -31,6 +31,7 @@ TWEAK_GROUP_DESKTOP = N_("Desktop")
 TWEAK_GROUP_WINDOWS = N_("Windows")
 TWEAK_GROUP_SHELL = N_("Shell")
 TWEAK_GROUP_TYPING = N_("Typing")
+TWEAK_GROUP_MOUSE = N_("Mouse")
 
 #translate this the same as the name of the file manager (nautilus)
 TWEAK_GROUP_FILES = N_("Files")
diff --git a/gtweak/tweaks/tweak_mouse.py b/gtweak/tweaks/tweak_mouse.py
new file mode 100644
index 0000000..fc712c5
--- /dev/null
+++ b/gtweak/tweaks/tweak_mouse.py
@@ -0,0 +1,9 @@
+from gtweak.tweakmodel import TWEAK_GROUP_MOUSE
+from gtweak.widgets import GSettingsSwitchTweak
+
+TWEAKS = (
+    GSettingsSwitchTweak("org.gnome.settings-daemon.peripherals.mouse",
+                         "locate-pointer",
+                         schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml",
+                         group_name=TWEAK_GROUP_MOUSE),
+)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]