[the-board] [ui] Make unselectAllThings() method public in Page
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Make unselectAllThings() method public in Page
- Date: Fri, 14 Jan 2011 01:37:23 +0000 (UTC)
commit 641e96b3b2960ef0e9d6272cc116287cd74dfb6f
Author: Lucas Rocha <lucasr gnome org>
Date: Fri Jan 14 01:30:57 2011 +0000
[ui] Make unselectAllThings() method public in Page
src/js/ui/page.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/js/ui/page.js b/src/js/ui/page.js
index bf16463..3e98f59 100644
--- a/src/js/ui/page.js
+++ b/src/js/ui/page.js
@@ -415,10 +415,6 @@ Page.prototype = {
this._setSelectedThings(selectedThings);
},
- _unselectAllThings : function() {
- this._setSelectedThings([]);
- },
-
_ensureDragArea : function(draggedThing) {
if (!this._dragArea) {
this._dragArea = draggedThing.area;
@@ -427,7 +423,7 @@ Page.prototype = {
_onMainBoxClicked : function(o, event) {
if (this._cancelSelectionOnClick) {
- this._unselectAllThings();
+ this.unselectAllThings();
}
this._cancelSelectionOnClick = true;
@@ -563,7 +559,7 @@ Page.prototype = {
if (this._activeThing) {
this._activeThing.onActivate();
- this._unselectAllThings();
+ this.unselectAllThings();
this._dimBox.raise(null);
this._activeThing.actor.raise(this._dimBox);
@@ -664,6 +660,10 @@ Page.prototype = {
this._setSelectedThings(this._things);
},
+ unselectAllThings : function() {
+ this._setSelectedThings([]);
+ },
+
destroy : function() {
this._destroyAllThings();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]