From: Kaj-Michael Lang Date: Fri, 1 Aug 2008 12:36:56 +0000 (+0300) Subject: Add _track to map X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df0ea3ed0a74b7fcdbf509f76d83381c27440c8b;p=mapper Add _track to map Fix typos and wrong casts --- 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; }