[gnome-tweak-tool] Enable icon theme selection
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Enable icon theme selection
- Date: Mon, 28 Mar 2011 10:11:26 +0000 (UTC)
commit 8e77270123d1ca07cd6d8690a3abf6cd065df08f
Author: Michel Alexandre Salim <salimma fedoraproject org>
Date: Fri Mar 25 13:10:50 2011 +0100
Enable icon theme selection
gtweak/tweaks/tweak_interface.py | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_interface.py b/gtweak/tweaks/tweak_interface.py
index 1e20452..cb0a037 100644
--- a/gtweak/tweaks/tweak_interface.py
+++ b/gtweak/tweaks/tweak_interface.py
@@ -39,10 +39,20 @@ class ThemeSwitcher(GSettingsComboTweak):
[(t, t) for t in valid_themes],
**options)
+class IconThemeSwitcher(GSettingsComboTweak):
+ def __init__(self, **options):
+ iconthemedir = os.path.join(gtweak.DATA_DIR, "icons")
+ GSettingsComboTweak.__init__(self,
+ "org.gnome.desktop.interface",
+ "icon-theme",
+ [(t, t) for t in os.listdir(iconthemedir)],
+ **options)
+
TWEAK_GROUPS = (
TweakGroup(
"Interface",
GSettingsSwitchTweak("org.gnome.desktop.interface", "menus-have-icons"),
GSettingsSwitchTweak("org.gnome.desktop.interface", "buttons-have-icons"),
- ThemeSwitcher()),
+ ThemeSwitcher(),
+ IconThemeSwitcher()),
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]