[gnome-tweak-tool] Tweak window focus mode etc
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Tweak window focus mode etc
- Date: Wed, 1 Jun 2011 22:41:38 +0000 (UTC)
commit 02a59e11e33b5aeeb85eef5a95b46d4dcb6be1b3
Author: John Stowers <john stowers gmail com>
Date: Thu Jun 2 10:41:15 2011 +1200
Tweak window focus mode etc
gtweak/tweaks/tweak_windows.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_windows.py b/gtweak/tweaks/tweak_windows.py
index 70e1fb7..f36acd5 100644
--- a/gtweak/tweaks/tweak_windows.py
+++ b/gtweak/tweaks/tweak_windows.py
@@ -36,6 +36,14 @@ class ActionClickTitlebarTweak(GConfComboTweak):
[(o, o.replace("_"," ").title()) for o in schema_options],
**options)
+class FocusModeTweak(GConfComboTweak):
+ def __init__(self, **options):
+ GConfComboTweak.__init__(self,
+ "/apps/metacity/general/focus_mode",
+ str,
+ [(o, o.title()) for o in ("click","sloppy","mouse")],
+ **options)
+
class WindowThemeSwitcher(GConfComboTweak):
def __init__(self, **options):
GConfComboTweak.__init__(self,
@@ -71,5 +79,6 @@ TWEAK_GROUPS = (
WindowThemeSwitcher(size_group=sg),
ActionClickTitlebarTweak("/apps/metacity/general/action_double_click_titlebar", size_group=sg),
ActionClickTitlebarTweak("/apps/metacity/general/action_middle_click_titlebar", size_group=sg),
- ActionClickTitlebarTweak("/apps/metacity/general/action_right_click_titlebar", size_group=sg)),
+ ActionClickTitlebarTweak("/apps/metacity/general/action_right_click_titlebar", size_group=sg),
+ FocusModeTweak(size_group=sg)),
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]