[gnome-tweak-tool] Convert tweak_font to new TweakGroup API
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Convert tweak_font to new TweakGroup API
- Date: Sun, 18 Aug 2013 19:49:09 +0000 (UTC)
commit 18f57efa7a83d23d77dcd19f0ac55dca50862fb2
Author: Alex Muñoz <alexmudoz gmail com>
Date: Tue Aug 6 02:52:37 2013 -0400
Convert tweak_font to new TweakGroup API
gtweak/tweaks/tweak_font.py | 32 --------------------------------
gtweak/tweaks/tweak_group_font.py | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 32 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_font.py b/gtweak/tweaks/tweak_group_font.py
new file mode 100644
index 0000000..b90097f
--- /dev/null
+++ b/gtweak/tweaks/tweak_group_font.py
@@ -0,0 +1,34 @@
+# 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/>.
+
+from gi.repository import Gtk
+
+from gtweak.tweakmodel import TWEAK_GROUP_FONTS
+from gtweak.widgets import ListBoxTweakGroup, GSettingsSpinButtonTweak, GSettingsFontButtonTweak,
GSettingsComboTweak
+
+TWEAK_GROUPS = [
+ ListBoxTweakGroup(TWEAK_GROUP_FONTS,
+ GSettingsFontButtonTweak("Window Titles","org.gnome.desktop.wm.preferences", "titlebar-font"),
+ GSettingsFontButtonTweak("Interface","org.gnome.desktop.interface", "font-name"),
+ GSettingsFontButtonTweak("Documents", "org.gnome.desktop.interface", "document-font-name"),
+ GSettingsFontButtonTweak("Monospace", "org.gnome.desktop.interface", "monospace-font-name"),
+ GSettingsComboTweak("Hinting","org.gnome.settings-daemon.plugins.xsettings", "hinting",
+ [(i, i.title()) for i in ("none", "slight", "medium", "full")]),
+ GSettingsComboTweak("Antialiasing","org.gnome.settings-daemon.plugins.xsettings", "antialiasing",
+ [(i, i.title()) for i in ("none", "grayscale", "rgba")]),
+ )
+]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]