[gnome-tweak-tool] Convert tweak_windows to new TweakGroup API
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Convert tweak_windows to new TweakGroup API
- Date: Sun, 18 Aug 2013 19:49:19 +0000 (UTC)
commit aeec2386372581acab30052200d9b3caf477aa3e
Author: Alex Muñoz <alexmudoz gmail com>
Date: Tue Aug 6 02:56:30 2013 -0400
Convert tweak_windows to new TweakGroup API
gtweak/tweaks/tweak_group_windows.py | 31 +++++++++++++++++++++
gtweak/tweaks/tweak_windows.py | 50 ----------------------------------
2 files changed, 31 insertions(+), 50 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_windows.py b/gtweak/tweaks/tweak_group_windows.py
new file mode 100644
index 0000000..7091be2
--- /dev/null
+++ b/gtweak/tweaks/tweak_group_windows.py
@@ -0,0 +1,31 @@
+# This file is part of gnome-tweak-tool.
+#
+# Copyright (c) 2011 John Stowers
+#
+# gnome-tweak-tool is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# gnome-tweak-tool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with gnome-tweak-tool. If not, see <http://www.gnu.org/licenses/>.
+
+import gtweak
+from gtweak.tweakmodel import TWEAK_GROUP_WINDOWS
+from gtweak.widgets import ListBoxTweakGroup, GSettingsComboEnumTweak, Title
+
+TWEAK_GROUPS = [
+ ListBoxTweakGroup(TWEAK_GROUP_WINDOWS,
+ GSettingsComboEnumTweak("Focus Mode", "org.gnome.desktop.wm.preferences", "focus-mode"),
+ Title("Titlebar Actions", ""),
+ GSettingsComboEnumTweak("Double-click","org.gnome.desktop.wm.preferences",
"action-double-click-titlebar"),
+ GSettingsComboEnumTweak("Middle-click","org.gnome.desktop.wm.preferences",
"action-middle-click-titlebar"),
+ GSettingsComboEnumTweak("Secondary-click","org.gnome.desktop.wm.preferences",
"action-right-click-titlebar"),
+ )
+]
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]