From df0ea3ed0a74b7fcdbf509f76d83381c27440c8b Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 1 Aug 2008 15:36:56 +0300 Subject: [PATCH] Add _track to map Fix typos and wrong casts --- src/mapper.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mapper.c b/src/mapper.c index 1e79d76..7511609 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -433,12 +433,13 @@ switch (mis) { break; case MAPPER_INIT_UI: mapper_ui_init(); + gtk_map_add_path(_map, _track, TRUE); mis=MAPPER_INIT_GOTO; p=0.99; w="UI"; break; case MAPPER_INIT_GOTO: - if (gtk_map_goto_position(_map, &_home)==FALSE) { + if (gtk_map_goto_position(_map, _home)==FALSE) { g_printerr("Home is not set.\n"); gtk_map_set_center_latlon(_map, 60.45, 22.25); } @@ -454,8 +455,8 @@ switch (mis) { break; } -gtk_progress_bar_set_fraction(GTK_PROGRESS(init_progress), p); -gtk_progress_bar_set_text(GTK_PROGRESS(init_progress), w); +gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(init_progress), p); +gtk_progress_bar_set_text(GTK_PROGRESS_BAR(init_progress), w); return ret; } -- 2.39.5