]> err.no Git - mapper/commitdiff
Add _track to map
authorKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 12:36:56 +0000 (15:36 +0300)
committerKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 12:36:56 +0000 (15:36 +0300)
Fix typos and wrong casts

src/mapper.c

index 1e79d76916be0d643c5393af4773f09d5448b19e..75116096ba33c0453e7f2847036484a06c3e6c7c 100644 (file)
@@ -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;
 }