gnome-shell r58 - trunk/js/ui



Author: marinaz
Date: Wed Nov 19 19:25:51 2008
New Revision: 58
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=58&view=rev

Log:
Make sure we include staysPressed in the list of arguments to the Button object
, so that we don't end up ignoring minHeight.


Modified:
   trunk/js/ui/button.js
   trunk/js/ui/panel.js

Modified: trunk/js/ui/button.js
==============================================================================
--- trunk/js/ui/button.js	(original)
+++ trunk/js/ui/button.js	Wed Nov 19 19:25:51 2008
@@ -18,8 +18,8 @@
 
 const FULL_OPACITY = 255;
 
-function Button(text, buttonColor, pressedButtonColor, minWidth, minHeight) {
-    this._init(text, buttonColor, pressedButtonColor, minWidth, minHeight);
+function Button(text, buttonColor, pressedButtonColor, staysPressed, minWidth, minHeight) {
+    this._init(text, buttonColor, pressedButtonColor, staysPressed, minWidth, minHeight);
 }
 
 Button.prototype = {

Modified: trunk/js/ui/panel.js
==============================================================================
--- trunk/js/ui/panel.js	(original)
+++ trunk/js/ui/panel.js	Wed Nov 19 19:25:51 2008
@@ -34,7 +34,7 @@
 	background.set_position(-1, -1);
 	this._group.add_actor(background);
 
- 	this.button = new Button.Button("Activities", PANEL_BACKGROUND_COLOR, PRESSED_BUTTON_BACKGROUND_COLOR, true, null, PANEL_HEIGHT);
+ 	this.button = new Button.Button("Activities", PANEL_BACKGROUND_COLOR, PRESSED_BUTTON_BACKGROUND_COLOR, true, null, PANEL_HEIGHT-1);
 
  	this._group.add_actor(this.button.button);
 



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