[the-board] [ui] Rename _updateControls to _updateControlsVisibility() in Thing
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Rename _updateControls to _updateControlsVisibility() in Thing
- Date: Wed, 26 Jan 2011 22:50:52 +0000 (UTC)
commit 76f3bf0a37642c5f5d1f23171536e40aceaf3178
Author: Lucas Rocha <lucasr gnome org>
Date: Wed Jan 26 21:59:17 2011 +0000
[ui] Rename _updateControls to _updateControlsVisibility() in Thing
For clarity reasons.
src/js/ui/thing.js | 12 ++++++------
src/js/ui/things/sound.js | 16 ++++++++--------
src/js/ui/things/video.js | 12 ++++++------
3 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/js/ui/thing.js b/src/js/ui/thing.js
index ddeb49e..ec17a96 100644
--- a/src/js/ui/thing.js
+++ b/src/js/ui/thing.js
@@ -231,7 +231,7 @@ Thing.prototype = {
}
},
- _updateControls : function() {
+ _updateControlsVisibility : function() {
if (!this._selected && (this._hover || this._active)) {
this._showControls();
} else {
@@ -319,14 +319,14 @@ Thing.prototype = {
_onMainBoxEnterEvent : function() {
this._hover = true;
- this._updateControls();
+ this._updateControlsVisibility();
this.enter();
},
_onMainBoxLeaveEvent : function() {
this._hover = false;
- this._updateControls();
+ this._updateControlsVisibility();
this.leave();
},
@@ -379,14 +379,14 @@ Thing.prototype = {
onActivate : function() {
this._active = true;
- this._updateControls();
+ this._updateControlsVisibility();
this.activate();
},
onDeactivate : function() {
this._active = false;
- this._updateControls();
+ this._updateControlsVisibility();
this.deactivate();
},
@@ -473,7 +473,7 @@ Thing.prototype = {
this._selected = selected && !this._active;
this._updateSelection();
- this._updateControls();
+ this._updateControlsVisibility();
this.emit("selected-changed");
},
diff --git a/src/js/ui/things/sound.js b/src/js/ui/things/sound.js
index 6239252..0e3591d 100644
--- a/src/js/ui/things/sound.js
+++ b/src/js/ui/things/sound.js
@@ -280,7 +280,7 @@ SoundThing.prototype = {
}
}
- this._updateControlsVisibility();
+ this._updateSoundControlsVisibility();
if (!fromState) {
this.emit('save');
@@ -413,7 +413,7 @@ SoundThing.prototype = {
this._textBeforeRecording = this._captionLabel.text;
this._captionLabel.text = Gettext.gettext("Recording");
- this._updateControlsVisibility();
+ this._updateSoundControlsVisibility();
},
_stopVoiceRecording : function() {
@@ -439,7 +439,7 @@ SoundThing.prototype = {
this._updateSoundFilename(soundFilename,
true /* avoid autoplaying */);
- this._updateControlsVisibility();
+ this._updateSoundControlsVisibility();
},
_startEditingCaption : function() {
@@ -499,7 +499,7 @@ SoundThing.prototype = {
this._formatTimeComponent(seconds);
},
- _updateControlsVisibility : function() {
+ _updateSoundControlsVisibility : function() {
let visible = !this._recorder &&
this._soundFilename &&
(this.hover || this.active);
@@ -589,22 +589,22 @@ SoundThing.prototype = {
},
enter : function() {
- this._updateControlsVisibility();
+ this._updateSoundControlsVisibility();
},
leave : function() {
- this._updateControlsVisibility();
+ this._updateSoundControlsVisibility();
},
activate : function() {
this._startEditingCaption();
- this._updateControlsVisibility();
+ this._updateSoundControlsVisibility();
},
deactivate : function() {
this._stopVoiceRecording();
this._stopEditingCaption();
- this._updateControlsVisibility();
+ this._updateSoundControlsVisibility();
},
loadState : function(state) {
diff --git a/src/js/ui/things/video.js b/src/js/ui/things/video.js
index 37338b6..48a078a 100644
--- a/src/js/ui/things/video.js
+++ b/src/js/ui/things/video.js
@@ -344,7 +344,7 @@ VideoThing.prototype = {
}
}
- this._updateControlsVisibility();
+ this._updateVideoControlsVisibility();
if (!fromState) {
this.emit('save');
@@ -486,7 +486,7 @@ VideoThing.prototype = {
this._formatTimeComponent(seconds);
},
- _updateControlsVisibility : function() {
+ _updateVideoControlsVisibility : function() {
let visible = this._videoFilename &&
(this.hover || this.active);
@@ -553,22 +553,22 @@ VideoThing.prototype = {
},
enter : function() {
- this._updateControlsVisibility();
+ this._updateVideoControlsVisibility();
},
leave : function() {
- this._updateControlsVisibility();
+ this._updateVideoControlsVisibility();
},
activate : function() {
this._captionLabel.clutterText.editable = true;
this._captionLabel.clutterText.grab_key_focus();
- this._updateControlsVisibility();
+ this._updateVideoControlsVisibility();
},
deactivate : function() {
this._captionLabel.clutterText.editable = false;
- this._updateControlsVisibility();
+ this._updateVideoControlsVisibility();
},
loadState : function(state) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]