~ubuntu-branches/ubuntu/raring/tracker/raring

« back to all changes in this revision

Viewing changes to src/tracker-needle/tracker-result-store.vala

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2011-08-26 00:26:14 UTC
  • mfrom: (4.3.17 sid)
  • Revision ID: package-import@ubuntu.com-20110826002614-4qjfs9jhh5gs4p13
Tags: 0.10.24-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
                set;
62
62
        }
63
63
 
64
 
        private Operation * find_operation (GenericArray<Operation> array, CategoryNode *node, int offset) {
 
64
        private Operation? find_operation (GenericArray<Operation> array, CategoryNode node, int offset) {
65
65
                Operation op;
66
66
                int i;
67
67
 
113
113
 
114
114
                                for (j = 0; j < n_columns; j++) {
115
115
                                        if (j == n_columns - 1) {
116
 
                                                // FIXME: Set markup for tooltip column in a nicer way
117
 
                                                result.values[j] = Markup.escape_text (cursor.get_string (j));
 
116
                                                string s = cursor.get_string (j);
 
117
 
 
118
                                                if (s != null)
 
119
                                                        result.values[j] = Markup.escape_text (s);
 
120
                                                else
 
121
                                                        result.values[j] = null;
118
122
                                        } else {
119
123
                                                result.values[j] = cursor.get_string (j);
120
124
                                        }
427
431
                return n_columns + n_extra_columns;
428
432
        }
429
433
 
 
434
#if VALA_0_14
 
435
        public Gtk.TreePath? get_path (Gtk.TreeIter iter) {
 
436
#else
430
437
        public Gtk.TreePath get_path (Gtk.TreeIter iter) {
 
438
#endif
431
439
                TreePath path = new TreePath ();
432
440
                CategoryNode cat;
433
441
                int i;