[gnome-shell-extensions/wip/window-list: 3/4] Temporarily add some compatibility code for 3.7.4



commit a90b0d2e63a2171e60670e16a080674e5959c491
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Jan 23 21:33:49 2013 +0100

    Temporarily add some compatibility code for 3.7.4

 extensions/window-list/extension.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index e716262..d00a3e9 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -19,6 +19,15 @@ const GroupingMode = {
 };
 
 
+// compat with 3.7.4
+if (!Meta.Window.prototype.located_on_workspace)
+    Meta.Window.prototype.located_on_workspace = function(ws) {
+        return this.is_on_all_workspaces() || this.get_workspace() == ws;
+    };
+
+if (!Meta.Window.prototype.set_icon_geometry)
+    Meta.Window.prototype.set_icon_geometry = function() {}
+
 function _minimizeOrActivateWindow(window) {
         let focusWindow = global.display.focus_window;
         if (focusWindow == window ||



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]