summaryrefslogtreecommitdiffstats
path: root/debian/patches/gnome_3_34_fix.patch
blob: 1f2e1f076000dfa417fd3978d5c0f307e987c45b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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() {