Fix width of application text items

appdisplay.js: Fix missing parentheses for computation of
  the available width for the application name and description.

svn path=/trunk/; revision=101
This commit is contained in:
Owen Taylor 2008-12-01 21:53:49 +00:00
parent 9c21ce3eb5
commit 6bccda430e

View File

@ -87,7 +87,7 @@ AppDisplayItem.prototype = {
this._group.add_actor(this._icon); this._group.add_actor(this._icon);
let comment = appinfo.get_description(); let comment = appinfo.get_description();
let text_width = width - me._icon.width + 4; let text_width = width - (me._icon.width + 4);
this._name = new Clutter.Label({ color: APPDISPLAY_NAME_COLOR, this._name = new Clutter.Label({ color: APPDISPLAY_NAME_COLOR,
font_name: "Sans 14px", font_name: "Sans 14px",
width: text_width, width: text_width,