From 398b5ea653f81cefe41f394a195af577611627bd Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 19 Oct 2007 13:59:33 +0300 Subject: [PATCH] Update route table --- src/cb.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cb.c b/src/cb.c index 7eb75c2..b962dd7 100644 --- 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; } -- 2.39.2