[gnome-shell-extensions/wip/window-list: 2/3] Temporarily add some compatibility code for 3.7.4
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/window-list: 2/3] Temporarily add some compatibility code for 3.7.4
- Date: Fri, 1 Feb 2013 16:58:42 +0000 (UTC)
commit bc8a04c22641fee7412b29aeb020fbc4aa7ab2dc
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 a4f6d0c..1765256 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]