[gnome-shell] Don't pass an (out) argument to meta_window_get_outer_rect()



commit 43d479c786719b5284563177eb6ea530619c541a
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Mon Nov 22 22:18:30 2010 +0100

    Don't pass an (out) argument to meta_window_get_outer_rect()
    
    Mutter now has the needed (out) annotation, so we have to use the
    return value instead of passing a reference to a rectangle.

 js/ui/workspace.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 4194897..b7837e8 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -881,8 +881,7 @@ Workspace.prototype = {
 
         xCenter = xCenter * global.screen_width;
 
-        let rect = new Meta.Rectangle();
-        metaWindow.get_outer_rect(rect);
+        let rect = metaWindow.get_outer_rect();
         let buttonOuterHeight, captionHeight;
         let buttonOuterWidth = 0;
 



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