[the-board] [ui] Add setPosition() method to Thing



commit cb7a7d45135bc5381716a10561accaa64fe17c00
Author: Lucas Rocha <lucasr gnome org>
Date:   Thu Jan 13 21:39:06 2011 +0000

    [ui] Add setPosition() method to Thing

 src/js/ui/thing.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/thing.js b/src/js/ui/thing.js
index 54bf7c8..d3366cd 100644
--- a/src/js/ui/thing.js
+++ b/src/js/ui/thing.js
@@ -470,6 +470,11 @@ Thing.prototype = {
         }
     },
 
+    setPosition : function(x, y) {
+        this._updatePosition(x, y,
+                             false /* not from state */);
+    },
+
     setSize : function(width, height) {
         this._updateSize(width, height,
                          false /* not from state */);



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