g_fprintf(fp, "</trkseg>\n</trk>\n");
g_fprintf(fp, app_data->waypoint_block_str->str);
g_fprintf(fp, "</gpx>\n");
- g_string_truncate(app_data->waypoint_block_str, 0);
}
static void cb_wp_set_btn (GtkWidget * w, AppData * data)
gtk_widget_set_sensitive(GTK_WIDGET(data->wp_set_btn), FALSE);
}
g_string_truncate(data->wp_marker_str, 0);
+ g_string_truncate(app_data->waypoint_block_str, 0);
}
static void cb_file_save (GtkWidget * w, AppData * data)
}
}
}
+ else {
+ app_data->has_fix = FALSE;
+ app_data->last_device_status = LOCATION_GPS_DEVICE_STATUS_NO_FIX;
+ }
//g_print ("Satellites in view: %d\n", device->satellites_in_view);
//g_print ("Satellites in use: %d\n", device->satellites_in_use);