[the-board/cheese: 1/10] [things] Rename private constants for better clarity in SoundThing
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board/cheese: 1/10] [things] Rename private constants for better clarity in SoundThing
- Date: Sun, 3 Apr 2011 22:37:23 +0000 (UTC)
commit 4af2fd257a5ad2a59ff11347eb68d42768ba6386
Author: Lucas Rocha <lucasr gnome org>
Date: Sun Apr 3 12:03:18 2011 +0100
[things] Rename private constants for better clarity in SoundThing
src/js/ui/things/sound.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/js/ui/things/sound.js b/src/js/ui/things/sound.js
index 6b39d28..6bdc342 100644
--- a/src/js/ui/things/sound.js
+++ b/src/js/ui/things/sound.js
@@ -31,8 +31,8 @@ const _CASSETE_IMAGE = Path.THINGS_DATA_DIR + "sound/cassete.png";
const _SHOW_BUTTON_BOX_TIME = 0.5;
-const _CAPTION_BOX_STYLE_NORMAL = "sound-thing-caption-box";
-const _CAPTION_BOX_STYLE_RECORDING = "sound-thing-caption-box-recording";
+const _CAPTION_BOX_NAME_NORMAL = "sound-thing-caption-box";
+const _CAPTION_BOX_NAME_RECORDING = "sound-thing-caption-box-recording";
// Magic numbers based on the graphics of the
// compact cassete
@@ -218,7 +218,7 @@ SoundThing.prototype = {
xAlign: TheBoard.BoxAlignment.FILL,
yAlign: TheBoard.BoxAlignment.FILL,
style: this._style,
- name: _CAPTION_BOX_STYLE_NORMAL });
+ name: _CAPTION_BOX_NAME_NORMAL });
this._captionLabel =
new Mx.Label({ xAlign: Mx.Align.MIDDLE,
@@ -427,7 +427,7 @@ SoundThing.prototype = {
this._setSpoolsAnimating(true);
- this._captionBox.name = _CAPTION_BOX_STYLE_RECORDING;
+ this._captionBox.name = _CAPTION_BOX_NAME_RECORDING;
this._stopEditingCaption();
this._textBeforeRecording = this._captionLabel.text;
@@ -451,7 +451,7 @@ SoundThing.prototype = {
this._stopButton.destroy();
delete this._stopButton;
- this._captionBox.name = _CAPTION_BOX_STYLE_NORMAL;
+ this._captionBox.name = _CAPTION_BOX_NAME_NORMAL;
this._captionLabel.text = this._textBeforeRecording;
delete this._textBeforeRecording;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]