[tracker/tracker-needle-model: 11/25] needle: Ensure tooltips text in the models is pango markup ready
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-needle-model: 11/25] needle: Ensure tooltips text in the models is pango markup ready
- Date: Thu, 24 Mar 2011 11:24:58 +0000 (UTC)
commit ad9f4d0b3a74d9ae0ea1046b25a44b77d880de9e
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 22 12:32:38 2011 +0100
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]