]> err.no Git - mapper/commitdiff
Update route table
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 10:59:33 +0000 (13:59 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 10:59:33 +0000 (13:59 +0300)
src/cb.c

index 7eb75c26e15528f2ae597dcfcd70e092280542ca..b962dd754ada3031dc7688d6815784bc7c0abbcd 100644 (file)
--- a/src/cb.c
+++ b/src/cb.c
@@ -44,7 +44,15 @@ return TRUE;
 gboolean 
 menu_cb_route_open(GtkAction * action)
 {
+GtkListStore *store;
+
 route_open_file();
+
+store=route_generate_store();
+if (store!=NULL) {
+       gtk_tree_view_set_model(route_tree_view, store);
+       g_object_unref(G_OBJECT(store));
+}
 return TRUE;
 }
 
@@ -75,6 +83,7 @@ gboolean
 menu_cb_route_clear(GtkAction * action)
 {
 route_clear();
+gtk_tree_view_set_model(route_tree_view, NULL);
 return TRUE;
 }