[tracker] tracker-needle: Ensure tooltips text in the models is pango markup ready



commit 039fbc20c484f550300f4f7e684c09a834de4551
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Mar 22 12:32:38 2011 +0100

    tracker-needle: Ensure tooltips text in the models is pango markup ready

 src/tracker-needle/tracker-result-store.vala |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-result-store.vala b/src/tracker-needle/tracker-result-store.vala
index b40f973..624f889 100644
--- a/src/tracker-needle/tracker-result-store.vala
+++ b/src/tracker-needle/tracker-result-store.vala
@@ -103,7 +103,12 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 				result = &op.node.results[i];
 
 				for (j = 0; j < n_columns - 1; j++) {
-					result.values[j] = cursor.get_string (j);
+					if (j == n_columns - 2) {
+						// FIXME: Set markup for tooltip column in a nicer way
+						result.values[j] = Markup.escape_text (cursor.get_string (j));
+					} else {
+						result.values[j] = cursor.get_string (j);
+					}
 				}
 
 				// Emit row-changed



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