[gnome-tweak-tool] Add a Typing group with the input-sources-switcher key
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Add a Typing group with the input-sources-switcher key
- Date: Tue, 25 Sep 2012 13:29:37 +0000 (UTC)
commit 1b18b7619bcb2cfdbeeba580c84e8e651c55a942
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Sep 24 14:51:41 2012 +0200
Add a Typing group with the input-sources-switcher key
This group will hold some more typing related tweaks but for now just
add the modifiers only shortcut to switch input sources.
https://bugzilla.gnome.org/show_bug.cgi?id=684712
gtweak/tweakmodel.py | 1 +
gtweak/tweaks/tweak_typing.py | 9 +++++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
index 4661ff0..aca69ab 100644
--- a/gtweak/tweakmodel.py
+++ b/gtweak/tweakmodel.py
@@ -30,6 +30,7 @@ TWEAK_GROUP_THEME = N_("Theme")
TWEAK_GROUP_DESKTOP = N_("Desktop")
TWEAK_GROUP_WINDOWS = N_("Windows")
TWEAK_GROUP_SHELL = N_("Shell")
+TWEAK_GROUP_TYPING = N_("Typing")
#translate this the same as the name of the file manager (nautilus)
TWEAK_GROUP_FILES = N_("Files")
diff --git a/gtweak/tweaks/tweak_typing.py b/gtweak/tweaks/tweak_typing.py
new file mode 100644
index 0000000..d8d98bf
--- /dev/null
+++ b/gtweak/tweaks/tweak_typing.py
@@ -0,0 +1,9 @@
+from gtweak.tweakmodel import TWEAK_GROUP_TYPING
+from gtweak.widgets import GSettingsComboEnumTweak
+
+TWEAKS = (
+ GSettingsComboEnumTweak("org.gnome.settings-daemon.peripherals.keyboard",
+ "input-sources-switcher",
+ schema_filename="org.gnome.settings-daemon.peripherals.gschema.xml",
+ group_name=TWEAK_GROUP_TYPING),
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]