Handle applications without descriptions

ClutterText doesn't accept NULL for text, so pass in "" explicitly
if the description is null or undefined.

(Mentioned in Bug 573404)
This commit is contained in:
Owen W. Taylor 2009-02-27 11:35:31 -05:00
parent cb4ad9a963
commit 3066f60efc

View File

@ -149,7 +149,7 @@ GenericDisplayItem.prototype = {
font_name: "Sans 12px",
width: text_width,
ellipsize: Pango.EllipsizeMode.END,
text: descriptionText,
text: descriptionText ? descriptionText : "",
x: this._name.x,
y: this._name.height + 4 });
this.actor.add_actor(this._description);