[gnome-shell] modalDialog: Fix bindConstraint



commit fbf6e032d06d34b8bbb6546a470427a2d1f894fc
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Wed Feb 15 17:58:56 2012 +0100

    modalDialog: Fix bindConstraint
    
    Clutter.BindCoordinate is an enum not a bitmask, so use Clutter.BindCoordinate.ALL
    instead of a bitmask of POSITION and SIZE.

 js/ui/modalDialog.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index a647959..4478f9e 100644
--- a/js/ui/modalDialog.js
+++ b/js/ui/modalDialog.js
@@ -46,7 +46,7 @@ const ModalDialog = new Lang.Class({
         Main.uiGroup.add_actor(this._group);
 
         let constraint = new Clutter.BindConstraint({ source: global.stage,
-                                                      coordinate: Clutter.BindCoordinate.POSITION | Clutter.BindCoordinate.SIZE });
+                                                      coordinate: Clutter.BindCoordinate.ALL });
         this._group.add_constraint(constraint);
 
         this._group.connect('destroy', Lang.bind(this, this._onGroupDestroy));



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