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
This commit is contained in:
Adel Gadllah 2010-09-30 08:42:14 +02:00
parent c6eb2761c7
commit 61c906807b
2 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;
}