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);
}
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;
}