diff options
author | Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com> | 2009-09-26 00:47:07 +0200 |
---|---|---|
committer | Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com> | 2009-09-26 00:50:07 +0200 |
commit | c14a4deddf674080faa3d4a091ac8a251327e7ae (patch) | |
tree | b1876d0c13e7d27596b24c0c30474c8e1b8a7f19 | |
parent | 4bab511fa5f00d9172b4f3db4f9113a3a2036379 (diff) | |
download | gnome-shell-c14a4deddf674080faa3d4a091ac8a251327e7ae.tar.gz |
Rename iconButton to IconButton, as it is a class.
-rw-r--r-- | js/ui/button.js | 5 | ||||
-rw-r--r-- | js/ui/genericDisplay.js | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/js/ui/button.js b/js/ui/button.js index 443d77b3a..7cae476af 100644 --- a/js/ui/button.js +++ b/js/ui/button.js @@ -91,11 +91,11 @@ const ANIMATION_TIME = 0.25; * size -- size in pixels of both the button and the icon it contains * texture -- optional, must be used if the texture for the icon is already created (else, use setIconFromName) */ -function iconButton(parent, size, texture) { +function IconButton(parent, size, texture) { this._init(parent, size, texture); } -iconButton.prototype = { +IconButton.prototype = { _init : function(parent, size, texture) { this._size = size; if (texture) @@ -170,4 +170,3 @@ iconButton.prototype = { transition :"easeOutQuad" }); } }; - diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js index 028af4f9f..2ca7c5586 100644 --- a/js/ui/genericDisplay.js +++ b/js/ui/genericDisplay.js @@ -98,7 +98,7 @@ GenericDisplayItem.prototype = { infoIconUri, INFORMATION_BUTTON_SIZE, INFORMATION_BUTTON_SIZE); - this._informationButton = new Button.iconButton(this.actor, INFORMATION_BUTTON_SIZE, infoIcon); + this._informationButton = new Button.IconButton(this.actor, INFORMATION_BUTTON_SIZE, infoIcon); let buttonBox = new Big.Box({ width: INFORMATION_BUTTON_SIZE + 2 * DEFAULT_PADDING, height: INFORMATION_BUTTON_SIZE, padding_left: DEFAULT_PADDING, padding_right: DEFAULT_PADDING, |