summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-01-10 17:38:32 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-01-10 17:38:32 +0000
commitf7737ab6ccf8151daa6af9c168e483d494d059c9 (patch)
treeaf980ee0cd8ffdb2a947a820f7940d1671173a9e /gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-gnome-shell-3.2.1-r2.patch
parentAdd deblob support (diff)
downloadhistorical-f7737ab6ccf8151daa6af9c168e483d494d059c9.tar.gz
historical-f7737ab6ccf8151daa6af9c168e483d494d059c9.tar.bz2
historical-f7737ab6ccf8151daa6af9c168e483d494d059c9.zip
Fix gnome-shell-3.2.1-r2 compatibility (bug #398385, thanks to Juergen Rose or reporting) and report a more useful error on missing schemas. Drop old.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-gnome-shell-3.2.1-r2.patch')
-rw-r--r--gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-gnome-shell-3.2.1-r2.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-gnome-shell-3.2.1-r2.patch b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-gnome-shell-3.2.1-r2.patch
new file mode 100644
index 000000000000..21e3db02534b
--- /dev/null
+++ b/gnome-extra/gnome-tweak-tool/files/gnome-tweak-tool-3.2.2-gnome-shell-3.2.1-r2.patch
@@ -0,0 +1,49 @@
+From 92b3fbafb7a4f43761dfc3469f20c7fad0cf99d0 Mon Sep 17 00:00:00 2001
+From: John Stowers <john.stowers@gmail.com>
+Date: Sun, 20 Nov 2011 22:54:58 +1300
+Subject: [PATCH] Fix compatibility with gnome-shell master
+
+---
+ gtweak/gshellwrapper.py | 4 +++-
+ gtweak/tweaks/tweak_shell_extensions.py | 6 +++++-
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/gtweak/gshellwrapper.py b/gtweak/gshellwrapper.py
+index 4c4ef81..254d246 100644
+--- a/gtweak/gshellwrapper.py
++++ b/gtweak/gshellwrapper.py
+@@ -51,7 +51,9 @@ class GnomeShell:
+ "ENABLED" : 1,
+ "DISABLED" : 2,
+ "ERROR" : 3,
+- "OUT_OF_DATE" : 4
++ "OUT_OF_DATE" : 4,
++ "DOWNLOADING" : 5,
++ "INITIALIZED" : 6,
+ }
+
+ EXTENSION_TYPE = {
+diff --git a/gtweak/tweaks/tweak_shell_extensions.py b/gtweak/tweaks/tweak_shell_extensions.py
+index a453f33..7f883bc 100644
+--- a/gtweak/tweaks/tweak_shell_extensions.py
++++ b/gtweak/tweaks/tweak_shell_extensions.py
+@@ -24,11 +24,15 @@ class _ShellExtensionTweak(Tweak):
+ sw.set_active(self._shell.extension_is_active(state, ext["uuid"]))
+ sw.connect('notify::active', self._on_extension_toggled, ext["uuid"])
+
++ info = None
+ warning = None
+ sensitive = False
+ if state == GnomeShell.EXTENSION_STATE["ENABLED"] or \
+- state == GnomeShell.EXTENSION_STATE["DISABLED"]:
++ state == GnomeShell.EXTENSION_STATE["DISABLED"] or \
++ state == GnomeShell.EXTENSION_STATE["INITIALIZED"]:
+ sensitive = True
++ elif state == GnomeShell.EXTENSION_STATE["DOWNLOADING"]:
++ info = _("Extension downloading")
+ elif state == GnomeShell.EXTENSION_STATE["ERROR"]:
+ warning = _("Error loading extension")
+ elif state == GnomeShell.EXTENSION_STATE["OUT_OF_DATE"]:
+--
+1.7.8.3
+