[gnome-shell] Don't use mutter_window_get_window_type / MetaCompWindowType



commit 61c906807b7f751fc1cb7b75a80688afb1235849
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Thu Sep 30 08:42:14 2010 +0200

    Don't use mutter_window_get_window_type / MetaCompWindowType
    
    They have been removed so we have to use meta_window_get_window_type()
    and MetaWindowType instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=630363

 js/ui/windowManager.js |    8 ++++----
 js/ui/workspace.js     |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index da77c10..9aa9bef 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -140,7 +140,7 @@ WindowManager.prototype = {
     _shouldAnimate : function(actor) {
         if (Main.overview.visible)
             return false;
-        if (actor && (actor.get_window_type() != Meta.CompWindowType.NORMAL))
+        if (actor && (actor.meta_window.get_window_type() != Meta.WindowType.NORMAL))
             return false;
         return true;
     },
@@ -225,7 +225,7 @@ WindowManager.prototype = {
     _parentHasOtherAttachedDialog: function(parent, self) {
         var count = 0;
         parent.foreach_transient(function(win) {
-            if (win.get_window_type() == Meta.CompWindowType.MODAL_DIALOG && win != self)
+            if (win.get_window_type() == Meta.WindowType.MODAL_DIALOG && win != self)
                 count++;
             return false;
         });
@@ -271,7 +271,7 @@ WindowManager.prototype = {
     },
 
     _mapWindow : function(shellwm, actor) {
-        if (actor.get_window_type() == Meta.CompWindowType.MODAL_DIALOG
+        if (actor.meta_window.get_window_type() == Meta.WindowType.MODAL_DIALOG
             && Meta.prefs_get_attach_modal_dialogs()
             && actor.get_meta_window().get_transient_for()) {
             this._dimmedWindows.push(actor);
@@ -336,7 +336,7 @@ WindowManager.prototype = {
 
     _destroyWindow : function(shellwm, actor) {
         let parent = actor.get_meta_window().get_transient_for();
-        while (actor.get_window_type() == Meta.CompWindowType.MODAL_DIALOG
+        while (actor.meta_window.get_window_type() == Meta.WindowType.MODAL_DIALOG
                && parent) {
             if (!Main.overview.visible)
                 this._undimParentWindow(actor, true);
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index e1b1b7c..b249ee1 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -614,7 +614,7 @@ Workspace.prototype = {
 
         // Find the desktop window
         for (let i = 0; i < windows.length; i++) {
-            if (windows[i].get_window_type() == Meta.WindowType.DESKTOP) {
+            if (windows[i].meta_window.get_window_type() == Meta.WindowType.DESKTOP) {
                 this._desktop = new DesktopClone(windows[i]);
                 break;
             }



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