summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-19 09:12:46 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-05-19 09:12:46 +0000
commit0e0107048cc912127a661a137dbfc4d226104aa4 (patch)
treea45c33498e2bfb47d946eb5b84b4d09134e9e52e /gnome-extra/gnome-tweak-tool/files
parentEnsure libmp4v2 headers are present by forcing correct SLOT (diff)
downloadhistorical-0e0107048cc912127a661a137dbfc4d226104aa4.tar.gz
historical-0e0107048cc912127a661a137dbfc4d226104aa4.tar.bz2
historical-0e0107048cc912127a661a137dbfc4d226104aa4.zip
Bump to a real 3.4 release. Drop pre-release version.
Package-Manager: portage-2.2.0_alpha107/cvs/Linux x86_64
Diffstat (limited to 'gnome-extra/gnome-tweak-tool/files')
-rw-r--r--gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-missing-schemas.patch174
-rw-r--r--gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-shell-theme-schema.patch77
-rw-r--r--gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-static-workspaces.patch72
-rw-r--r--gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-text-scaling-factor-button.patch61
4 files changed, 0 insertions, 384 deletions
diff --git a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-missing-schemas.patch b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-missing-schemas.patch
deleted file mode 100644
index 33ea00ab4453..000000000000
--- a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-missing-schemas.patch
+++ /dev/null
@@ -1,174 +0,0 @@
-From 81ee17f1b0352347b1bf5f2bdad25e0fc2c7c3eb Mon Sep 17 00:00:00 2001
-From: John Stowers <john.stowers@gmail.com>
-Date: Wed, 18 Jan 2012 21:10:45 +1300
-Subject: [PATCH] Dont crash on missing schemas
-
----
- gtweak/gsettings.py | 23 ++++++++++++++++++++++-
- gtweak/tweakmodel.py | 3 +++
- gtweak/widgets.py | 32 ++++++++++++++++++++------------
- 3 files changed, 45 insertions(+), 13 deletions(-)
-
-diff --git a/gtweak/gsettings.py b/gtweak/gsettings.py
-index 9ab8749..e334637 100644
---- a/gtweak/gsettings.py
-+++ b/gtweak/gsettings.py
-@@ -23,6 +23,12 @@ import gtweak
-
- from gi.repository import Gio, GLib
-
-+_SCHEMA_CACHE = {}
-+_GSETTINGS_SCHEMAS = set(Gio.Settings.list_schemas())
-+
-+class GSettingsMissingError(Exception):
-+ pass
-+
- class _GSettingsSchema:
- def __init__(self, schema_name, schema_dir=None, schema_filename=None, **options):
- if not schema_dir:
-@@ -64,10 +70,25 @@ class _GSettingsSchema:
- def __repr__(self):
- return "<gtweak.gsettings._GSettingsSchema: %s>" % self._schema_name
-
--_SCHEMA_CACHE = {}
-+class GSettingsFakeSetting:
-+ def __init__(self):
-+ pass
-+
-+ def get_range(self, *args, **kwargs):
-+ return False, []
-+
-+ def get_string(self, *args, **kwargs):
-+ return ""
-+
-+ def __getattr__(self, name):
-+ def noop(*args, **kwargs):
-+ pass
-+ return noop
-
- class GSettingsSetting(Gio.Settings):
- def __init__(self, schema_name, **options):
-+ if schema_name not in _GSETTINGS_SCHEMAS:
-+ raise GSettingsMissingError(schema_name)
- Gio.Settings.__init__(self, schema_name)
- if schema_name not in _SCHEMA_CACHE:
- _SCHEMA_CACHE[schema_name] = _GSettingsSchema(schema_name, **options)
-diff --git a/gtweak/tweakmodel.py b/gtweak/tweakmodel.py
-index d67ce5a..558a329 100644
---- a/gtweak/tweakmodel.py
-+++ b/gtweak/tweakmodel.py
-@@ -35,6 +35,7 @@ class Tweak:
- self.name = name
- self.description = description
- self.group_name = options.get("group_name",_("Miscellaneous"))
-+ self.loaded = True
-
- self._search_cache = None
-
-@@ -148,6 +149,8 @@ class TweakModel(Gtk.ListStore):
- self._tweak_group_names[tweakgroup.name] = tweakgroup
-
- def add_tweak_auto_to_group(self, tweak):
-+ if not tweak.loaded:
-+ return
- name = tweak.group_name
- try:
- group = self._tweak_group_names[name]
-diff --git a/gtweak/widgets.py b/gtweak/widgets.py
-index 4a7646f..c915a17 100644
---- a/gtweak/widgets.py
-+++ b/gtweak/widgets.py
-@@ -15,10 +15,12 @@
- # 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 logging
-+
- from gi.repository import Gtk, Gdk, Gio, Pango
-
- from gtweak.tweakmodel import Tweak
--from gtweak.gsettings import GSettingsSetting
-+from gtweak.gsettings import GSettingsSetting, GSettingsFakeSetting, GSettingsMissingError
- from gtweak.gconf import GConfSetting
-
- def build_label_beside_widget(txt, *widget, **kwargs):
-@@ -97,11 +99,17 @@ class _GSettingsTweak(Tweak):
- def __init__(self, schema_name, key_name, **options):
- self.schema_name = schema_name
- self.key_name = key_name
-- self.settings = GSettingsSetting(schema_name, **options)
-- Tweak.__init__(self,
-- options.get("summary",self.settings.schema_get_summary(key_name)),
-- options.get("description",self.settings.schema_get_description(key_name)),
-- **options)
-+ try:
-+ self.settings = GSettingsSetting(schema_name, **options)
-+ Tweak.__init__(self,
-+ options.get("summary",self.settings.schema_get_summary(key_name)),
-+ options.get("description",self.settings.schema_get_description(key_name)),
-+ **options)
-+ except GSettingsMissingError, e:
-+ self.settings = GSettingsFakeSetting()
-+ Tweak.__init__(self,"","")
-+ self.loaded = False
-+ logging.info("Missing gsettings %s (key %s)" % (e.message, key_name))
-
- class GSettingsSwitchTweak(_GSettingsTweak):
- def __init__(self, schema_name, key_name, **options):
-@@ -109,7 +117,7 @@ class GSettingsSwitchTweak(_GSettingsTweak):
-
- w = Gtk.Switch()
- self.settings.bind(key_name, w, "active", Gio.SettingsBindFlags.DEFAULT)
-- self.widget = build_label_beside_widget(self.settings.schema_get_summary(key_name), w)
-+ self.widget = build_label_beside_widget(self.name, w)
- # never change the size of a switch
- self.widget_for_size_group = None
-
-@@ -119,7 +127,7 @@ class GSettingsFontButtonTweak(_GSettingsTweak):
-
- w = Gtk.FontButton()
- self.settings.bind(key_name, w, "font-name", Gio.SettingsBindFlags.DEFAULT)
-- self.widget = build_label_beside_widget(self.settings.schema_get_summary(key_name), w)
-+ self.widget = build_label_beside_widget(self.name, w)
- self.widget_for_size_group = w
-
- class GSettingsRangeTweak(_GSettingsTweak):
-@@ -131,7 +139,7 @@ class GSettingsRangeTweak(_GSettingsTweak):
-
- w = Gtk.HScale.new_with_range(_min, _max, options.get('adjustment_step', 1))
- self.settings.bind(key_name, w.get_adjustment(), "value", Gio.SettingsBindFlags.DEFAULT)
-- self.widget = build_label_beside_widget(self.settings.schema_get_summary(key_name), w)
-+ self.widget = build_label_beside_widget(self.name, w)
- self.widget_for_size_group = w
-
- class GSettingsSpinButtonTweak(_GSettingsTweak):
-@@ -146,7 +154,7 @@ class GSettingsSpinButtonTweak(_GSettingsTweak):
- w.set_adjustment(adjustment)
- w.set_digits(options.get('digits', 0))
- self.settings.bind(key_name, adjustment, "value", Gio.SettingsBindFlags.DEFAULT)
-- self.widget = build_label_beside_widget(self.settings.schema_get_summary(key_name), w)
-+ self.widget = build_label_beside_widget(self.name, w)
- self.widget_for_size_group = w
-
- class GSettingsComboEnumTweak(_GSettingsTweak):
-@@ -161,7 +169,7 @@ class GSettingsComboEnumTweak(_GSettingsTweak):
- w.connect('changed', self._on_combo_changed)
- self.combo = w
-
-- self.widget = build_label_beside_widget(self.settings.schema_get_summary(key_name), w)
-+ self.widget = build_label_beside_widget(self.name, w)
- self.widget_for_size_group = w
-
-
-@@ -246,7 +254,7 @@ class GConfFontButtonTweak(_GConfTweak):
- w = Gtk.FontButton()
- w.props.font_name = self.gconf.get_value()
- w.connect("notify::font-name", self._on_fontbutton_changed)
-- self.widget = build_label_beside_widget(self.gconf.schema_get_summary(), w)
-+ self.widget = build_label_beside_widget(self.name, w)
- self.widget_for_size_group = w
-
- def _on_fontbutton_changed(self, btn, param):
---
-1.7.8.6
-
diff --git a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-shell-theme-schema.patch b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-shell-theme-schema.patch
deleted file mode 100644
index eb9fd14c0a93..000000000000
--- a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-shell-theme-schema.patch
+++ /dev/null
@@ -1,77 +0,0 @@
-From 6fbecd5f847fceff3942dc6b1370fb5514e7c293 Mon Sep 17 00:00:00 2001
-From: Giovanni Campagna <gcampagna@src.gnome.org>
-Date: Sun, 29 Apr 2012 23:58:20 +0200
-Subject: [PATCH] Shell Theme: load settings schema from user directory
-
-Recent versions of the user-theme extension install the GSettings
-schema in the extension directory, to comply with extensions.gnome.org
-rules.
-
-https://bugzilla.gnome.org/show_bug.cgi?id=675106
----
- gtweak/gsettings.py | 20 ++++++++++++++++----
- gtweak/tweaks/tweak_shell.py | 8 +++++++-
- 2 files changed, 23 insertions(+), 5 deletions(-)
-
-diff --git a/gtweak/gsettings.py b/gtweak/gsettings.py
-index e334637..2739d6a 100644
---- a/gtweak/gsettings.py
-+++ b/gtweak/gsettings.py
-@@ -86,12 +86,24 @@ class GSettingsFakeSetting:
- return noop
-
- class GSettingsSetting(Gio.Settings):
-- def __init__(self, schema_name, **options):
-- if schema_name not in _GSETTINGS_SCHEMAS:
-+ def __init__(self, schema_name, schema_dir=None, **options):
-+ if schema_dir is None and schema_name not in _GSETTINGS_SCHEMAS:
- raise GSettingsMissingError(schema_name)
-- Gio.Settings.__init__(self, schema_name)
-+ if schema_dir is None:
-+ Gio.Settings.__init__(self, schema_name)
-+ else:
-+ GioSSS = Gio.SettingsSchemaSource
-+ schema_source = GioSSS.new_from_directory(schema_dir,
-+ GioSSS.get_default(),
-+ False)
-+ schema_obj = schema_source.lookup(schema_name, True)
-+ if not schema_obj:
-+ raise GSettingsMissingError(schema_name)
-+
-+ Gio.Settings.__init__(self, None, settings_schema=schema_obj)
-+
- if schema_name not in _SCHEMA_CACHE:
-- _SCHEMA_CACHE[schema_name] = _GSettingsSchema(schema_name, **options)
-+ _SCHEMA_CACHE[schema_name] = _GSettingsSchema(schema_name, schema_dir=schema_dir, **options)
- logging.debug("Caching gsettings: %s" % _SCHEMA_CACHE[schema_name])
-
- self._schema = _SCHEMA_CACHE[schema_name]
-diff --git a/gtweak/tweaks/tweak_shell.py b/gtweak/tweaks/tweak_shell.py
-index 1d5a91d..5bb664f 100644
---- a/gtweak/tweaks/tweak_shell.py
-+++ b/gtweak/tweaks/tweak_shell.py
-@@ -46,6 +46,8 @@ class ShellThemeTweak(Tweak):
- THEME_EXT_NAME = "user-theme@gnome-shell-extensions.gcampax.github.com"
- THEME_GSETTINGS_SCHEMA = "org.gnome.shell.extensions.user-theme"
- THEME_GSETTINGS_NAME = "name"
-+ THEME_GSETTINGS_DIR = os.path.join(GLib.get_user_data_dir(), "gnome-shell", "extensions",
-+ THEME_EXT_NAME, "schemas")
- THEME_DIR = os.path.join(GLib.get_home_dir(), ".themes")
-
- def __init__(self, **options):
-@@ -63,7 +65,11 @@ class ShellThemeTweak(Tweak):
- if ShellThemeTweak.THEME_EXT_NAME in extensions and extensions[ShellThemeTweak.THEME_EXT_NAME]["state"] == 1:
- #check the correct gsettings key is present
- try:
-- self._settings = GSettingsSetting(ShellThemeTweak.THEME_GSETTINGS_SCHEMA)
-+ if os.path.exists(ShellThemeTweak.THEME_GSETTINGS_DIR):
-+ self._settings = GSettingsSetting(ShellThemeTweak.THEME_GSETTINGS_SCHEMA,
-+ schema_dir=ShellThemeTweak.THEME_GSETTINGS_DIR)
-+ else:
-+ self._settings = GSettingsSetting(ShellThemeTweak.THEME_GSETTINGS_SCHEMA)
- name = self._settings.get_string(ShellThemeTweak.THEME_GSETTINGS_NAME)
-
- ext = extensions[ShellThemeTweak.THEME_EXT_NAME]
---
-1.7.8.6
-
diff --git a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-static-workspaces.patch b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-static-workspaces.patch
deleted file mode 100644
index 757d77c2281e..000000000000
--- a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-static-workspaces.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-From c8410742023ff973c05bd1e30f65e4e1574a0367 Mon Sep 17 00:00:00 2001
-From: John Stowers <john.stowers@gmail.com>
-Date: Wed, 9 May 2012 13:38:22 +0200
-Subject: [PATCH] Support dynamic/static workspaces
-
----
- gtweak/tweaks/tweak_shell.py | 37 ++++++++++++++++++++++++++++++++++---
- 1 files changed, 34 insertions(+), 3 deletions(-)
-
-diff --git a/gtweak/tweaks/tweak_shell.py b/gtweak/tweaks/tweak_shell.py
-index b4552ea..8c21de5 100644
---- a/gtweak/tweaks/tweak_shell.py
-+++ b/gtweak/tweaks/tweak_shell.py
-@@ -22,8 +22,7 @@ import logging
- import json
- import pprint
-
--from gi.repository import Gtk
--from gi.repository import GLib
-+from gi.repository import Gtk, GLib, GObject, Gio
-
- from gtweak.utils import walk_directories, extract_zip_file, make_combo_list_with_default
- from gtweak.gsettings import GSettingsSetting
-@@ -184,6 +183,37 @@ class ShellThemeTweak(Tweak):
- val = combo.get_model().get_value(combo.get_active_iter(), 0)
- self._settings.set_string(ShellThemeTweak.THEME_GSETTINGS_NAME, val)
-
-+class StaticWorkspaceTweak(Tweak):
-+
-+ NUM_WORKSPACES_SCHEMA = "org.gnome.desktop.wm.preferences"
-+ NUM_WORKSPACES_KEY = "num-workspaces"
-+
-+ DYNAMIC_SCHEMA = "org.gnome.shell.overrides"
-+ DYNAMIC_KEY = "dynamic-workspaces"
-+
-+ def __init__(self, **options):
-+ Tweak.__init__(self, "Dynamic workspaces", "Disable gnome-shell dynamic workspace management, use static workspaces", **options)
-+
-+ settings = GSettingsSetting(self.NUM_WORKSPACES_SCHEMA, **options)
-+ adj = Gtk.Adjustment(1, 1, 99, 1)
-+ sb = Gtk.SpinButton(adjustment=adj, digits=0)
-+ settings.bind(self.NUM_WORKSPACES_KEY, adj, "value", Gio.SettingsBindFlags.DEFAULT)
-+
-+ settings = GSettingsSetting(self.DYNAMIC_SCHEMA, **options)
-+ sw = Gtk.Switch()
-+ settings.bind(self.DYNAMIC_KEY, sw, "active", Gio.SettingsBindFlags.DEFAULT)
-+
-+ #sw.bind_property ("active", sb, "sensitive", GObject.BindingFlags.SYNC_CREATE)
-+ sb.set_sensitive(not settings[self.DYNAMIC_KEY])
-+ sw.connect('notify::active', lambda _sw,_param,_sb: _sb.set_sensitive(not _sw.get_active()), sb)
-+
-+ hb = Gtk.HBox(spacing = 4)
-+ hb.pack_start(sw, False, False, 0)
-+ hb.pack_start(sb, True, True, 0)
-+
-+ self.widget = build_label_beside_widget(self.name, hb)
-+ self.widget_for_size_group = hb
-+
- sg = build_horizontal_sizegroup()
-
- TWEAKS = (
-@@ -198,5 +228,6 @@ TWEAK_GROUPS = (
- GSettingsSwitchTweak("org.gnome.shell.calendar", "show-weekdate", schema_filename="org.gnome.shell.gschema.xml"),
- ShowWindowButtons(schema_filename="org.gnome.shell.gschema.xml", size_group=sg),
- GSettingsComboEnumTweak("org.gnome.settings-daemon.plugins.power", "lid-close-battery-action", size_group=sg),
-- GSettingsComboEnumTweak("org.gnome.settings-daemon.plugins.power", "lid-close-ac-action", size_group=sg)),
-+ GSettingsComboEnumTweak("org.gnome.settings-daemon.plugins.power", "lid-close-ac-action", size_group=sg),
-+ StaticWorkspaceTweak(size_group=sg)),
- )
---
-1.7.8.6
-
diff --git a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-text-scaling-factor-button.patch b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-text-scaling-factor-button.patch
deleted file mode 100644
index 61a01833871f..000000000000
--- a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.3.4-text-scaling-factor-button.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From 89c320bbb9ec6cf1542c75e5c35c79e6604301b6 Mon Sep 17 00:00:00 2001
-From: Robin Stocker <robin@nibor.org>
-Date: Tue, 17 Jan 2012 13:24:04 +0100
-Subject: [PATCH] Change widget for text-scaling-factor to SpinButton
-
-https://bugzilla.gnome.org/show_bug.cgi?id=650660
-
-Conflicts:
-
- gtweak/tweaks/tweak_font.py
----
- gtweak/tweaks/tweak_font.py | 4 ++--
- gtweak/widgets.py | 15 +++++++++++++++
- 2 files changed, 17 insertions(+), 2 deletions(-)
-
-diff --git a/gtweak/tweaks/tweak_font.py b/gtweak/tweaks/tweak_font.py
-index 7f4b92a..1ace035 100644
---- a/gtweak/tweaks/tweak_font.py
-+++ b/gtweak/tweaks/tweak_font.py
-@@ -18,10 +18,10 @@
- from gi.repository import Gtk
-
- from gtweak.tweakmodel import Tweak, TWEAK_GROUP_FONTS
--from gtweak.widgets import GSettingsRangeTweak, GSettingsFontButtonTweak, GSettingsComboTweak
-+from gtweak.widgets import GSettingsSpinButtonTweak, GSettingsFontButtonTweak, GSettingsComboTweak
-
- TWEAKS = (
-- GSettingsRangeTweak("org.gnome.desktop.interface", "text-scaling-factor", adjustment_step=0.1, group_name=TWEAK_GROUP_FONTS),
-+ GSettingsSpinButtonTweak("org.gnome.desktop.interface", "text-scaling-factor", adjustment_step=0.1, digits=1, group_name=TWEAK_GROUP_FONTS),
- GSettingsFontButtonTweak("org.gnome.desktop.interface", "font-name", group_name=TWEAK_GROUP_FONTS),
- GSettingsFontButtonTweak("org.gnome.desktop.interface", "document-font-name", group_name=TWEAK_GROUP_FONTS),
- GSettingsFontButtonTweak("org.gnome.desktop.interface", "monospace-font-name", group_name=TWEAK_GROUP_FONTS),
-diff --git a/gtweak/widgets.py b/gtweak/widgets.py
-index 9aa0cd2..4a7646f 100644
---- a/gtweak/widgets.py
-+++ b/gtweak/widgets.py
-@@ -134,6 +134,21 @@ class GSettingsRangeTweak(_GSettingsTweak):
- self.widget = build_label_beside_widget(self.settings.schema_get_summary(key_name), w)
- self.widget_for_size_group = w
-
-+class GSettingsSpinButtonTweak(_GSettingsTweak):
-+ def __init__(self, schema_name, key_name, **options):
-+ _GSettingsTweak.__init__(self, schema_name, key_name, **options)
-+
-+ #returned variant is range:(min, max)
-+ _min, _max = self.settings.get_range(key_name)[1]
-+
-+ adjustment = Gtk.Adjustment(0, _min, _max, options.get('adjustment_step', 1))
-+ w = Gtk.SpinButton()
-+ w.set_adjustment(adjustment)
-+ w.set_digits(options.get('digits', 0))
-+ self.settings.bind(key_name, adjustment, "value", Gio.SettingsBindFlags.DEFAULT)
-+ self.widget = build_label_beside_widget(self.settings.schema_get_summary(key_name), w)
-+ self.widget_for_size_group = w
-+
- class GSettingsComboEnumTweak(_GSettingsTweak):
- def __init__(self, schema_name, key_name, **options):
- _GSettingsTweak.__init__(self, schema_name, key_name, **options)
---
-1.7.8.6
-