[tracker/tracker-0.10] tracker-needle: Ensure text in categories view is always 2 lines high



commit 6ed90d779163a7efbaae4e524a6cf129be9547e6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Mar 22 13:20:41 2011 +0100

    tracker-needle: Ensure text in categories view is always 2 lines high

 src/tracker-needle/tracker-view.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-needle/tracker-view.vala b/src/tracker-needle/tracker-view.vala
index 832b1e0..72956a6 100644
--- a/src/tracker-needle/tracker-view.vala
+++ b/src/tracker-needle/tracker-view.vala
@@ -343,15 +343,15 @@ public class Tracker.View : ScrolledWindow {
 		tree_model.get (iter, 2, out text, 3, out subtext, -1);
 
 		if (text != null) {
-			markup = Markup.escape_text (text);
+			markup = Markup.escape_text (text) + "\n";
 		}
 
 		if (subtext != null) {
-			markup += "\n<small><span color='grey'>%s</span></small>".printf (Markup.escape_text (subtext));
+			markup += "<small><span color='grey'>%s</span></small>".printf (Markup.escape_text (subtext));
 		}
 
 		if (markup == null) {
-			markup = "<span color='grey'>%s</span>".printf (_("Loading..."));
+			markup = "<span color='grey'>%s</span>\n".printf (_("Loading..."));
 		}
 
 		cell.set ("markup", markup);



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