155 |
gtk_window_set_title(GTK_WINDOW(dialog->dialog), _("Loading")); |
gtk_window_set_title(GTK_WINDOW(dialog->dialog), _("Loading")); |
156 |
gtk_window_set_default_size(GTK_WINDOW(dialog->dialog), 300, 10); |
gtk_window_set_default_size(GTK_WINDOW(dialog->dialog), 300, 10); |
157 |
|
|
158 |
gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); |
gtk_window_set_modal(GTK_WINDOW(dialog->dialog), TRUE); |
159 |
gtk_window_set_transient_for(GTK_WINDOW(dialog->dialog), GTK_WINDOW(parent)); |
gtk_window_set_transient_for(GTK_WINDOW(dialog->dialog), GTK_WINDOW(parent)); |
160 |
|
|
161 |
dialog->label = gtk_label_new("---"); |
dialog->label = gtk_label_new("---"); |
764 |
/* neither geocaching.com GC* nor opencaching.com OC* nor */ |
/* neither geocaching.com GC* nor opencaching.com OC* nor */ |
765 |
/* geocaching australia GA* waypoint */ |
/* geocaching australia GA* waypoint */ |
766 |
if(cache->id && |
if(cache->id && |
767 |
|
(strncasecmp(cache->id, "__", 2) != 0) && |
768 |
(strncasecmp(cache->id, "GC", 2) != 0) && |
(strncasecmp(cache->id, "GC", 2) != 0) && |
769 |
(strncasecmp(cache->id, "OC", 2) != 0) && |
(strncasecmp(cache->id, "OC", 2) != 0) && |
770 |
(strncasecmp(cache->id, "GA", 2) != 0)) { |
(strncasecmp(cache->id, "GA", 2) != 0)) { |
1346 |
|
|
1347 |
void gpx_pos_get_distance_str(char *str, int len, |
void gpx_pos_get_distance_str(char *str, int len, |
1348 |
pos_t p1, pos_t p2, int mil) { |
pos_t p1, pos_t p2, int mil) { |
1349 |
if(!p1.lat && !p1.lon) { |
if(isnan(p1.lat) || isnan(p1.lon)) { |
1350 |
snprintf(str, len, "---"); |
snprintf(str, len, "---"); |
1351 |
return; |
return; |
1352 |
} |
} |