From: Philipp Zabel Date: Fri, 28 May 2010 16:50:47 +0000 (+0200) Subject: Show name in lift list X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=769e4fe4a3a498b0ad0356401aa9acb48c6ef2cd;hp=cc4db6bd98dce619097e25af4a250d53ffd89a50;p=beifahrer Show name in lift list --- diff --git a/src/lift-list-window.vala b/src/lift-list-window.vala index 6cf87c3..82e731e 100644 --- a/src/lift-list-window.vala +++ b/src/lift-list-window.vala @@ -57,7 +57,7 @@ public class LiftListWindow : StackableWindow { selection.set_mode (SelectionMode.SINGLE); // Source and destination column - route_column = new TreeViewColumn.with_attributes ("Route", new CellRendererText (), "text", 0); + route_column = new TreeViewColumn.with_attributes ("Route", new CellRendererText (), "markup", 0); route_column.set_reorderable (false); route_column.set_sizing (TreeViewColumnSizing.AUTOSIZE); route_column.set_expand (true); @@ -154,8 +154,10 @@ public class LiftListWindow : StackableWindow { store.@get (iter, 5, out lift2); if (lift2 == null) continue; - if (lift2.description == null) + if (lift2.description == null) { yield adac.update_lift_details (lift2); + store.@set (iter, 0, lift2.city_from + " - " + lift2.city_to + "\n" + lift2.name + ""); + } } while (store.iter_next (ref iter)); }