From 3066f60efc78e8f9a1566d3a0630f8ede57d05b1 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 27 Feb 2009 11:35:31 -0500 Subject: [PATCH] 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) --- js/ui/genericDisplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js index 56541be2b..d08e01dc4 100644 --- a/js/ui/genericDisplay.js +++ b/js/ui/genericDisplay.js @@ -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);