Show name in lift list
authorPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 28 May 2010 16:50:47 +0000 (18:50 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 28 May 2010 16:50:47 +0000 (18:50 +0200)
src/lift-list-window.vala

index 6cf87c3..82e731e 100644 (file)
@@ -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<small>" + lift2.name + "</small>");
+                               }
                        } while (store.iter_next (ref iter));
                }