summaryrefslogtreecommitdiffstats
path: root/debian/patches/gnome_3_34_fix.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:59:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:59:22 +0000
commit97410c6b8aa025d5c2fa1cd7b63e235c30638370 (patch)
tree62bbfd675f00acd422f622bcb42e301ec11c686e /debian/patches/gnome_3_34_fix.patch
parentAdding upstream version 0.4.5. (diff)
downloadgnome-shell-extension-impatience-97410c6b8aa025d5c2fa1cd7b63e235c30638370.tar.xz
gnome-shell-extension-impatience-97410c6b8aa025d5c2fa1cd7b63e235c30638370.zip
Adding debian version 0.4.5-4.debian/0.4.5-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/gnome_3_34_fix.patch')
-rw-r--r--debian/patches/gnome_3_34_fix.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/gnome_3_34_fix.patch b/debian/patches/gnome_3_34_fix.patch
new file mode 100644
index 0000000..1f2e1f0
--- /dev/null
+++ b/debian/patches/gnome_3_34_fix.patch
@@ -0,0 +1,39 @@
+Index: gnome-shell-extension-impatience/impatience/extension.js
+===================================================================
+--- gnome-shell-extension-impatience.orig/impatience/extension.js
++++ gnome-shell-extension-impatience/impatience/extension.js
+@@ -8,7 +8,6 @@ const Settings = Extension.imports.setti
+
+ function LOG(m){
+ global.log("[impatience] " + m);
+- log("[impatience] " + m);
+ };
+ function Ext() {
+ this._init.apply(this, arguments);
+@@ -18,7 +17,7 @@ var noop = function() {};
+ Ext.prototype = {};
+ Ext.prototype._init = function() {
+ this.enabled = false;
+- this.original_speed = St.get_slow_down_factor();
++ this.original_speed = St.Settings.get().slow_down_factor;
+ this.modified_speed = DEFAULT_SPEED;
+ this.unbind = noop;
+ };
+@@ -40,7 +39,7 @@ Ext.prototype.enable = function() {
+ Ext.prototype.disable = function() {
+ this.enabled = false;
+ this.unbind();
+- St.set_slow_down_factor(this.original_speed);
++ St.Settings.get().slow_down_factor = this.original_speed;
+ };
+
+ Ext.prototype.set_speed = function(new_speed) {
+@@ -52,7 +51,7 @@ Ext.prototype.set_speed = function(new_s
+ this.modified_speed = new_speed;
+ }
+ LOG("setting new speed: " + this.modified_speed);
+- St.set_slow_down_factor(this.modified_speed);
++ St.Settings.get().slow_down_factor = this.modified_speed;
+ };
+
+ function init() {