159 |
if(loc) pos = loc->pos; |
if(loc) pos = loc->pos; |
160 |
else pos = context->appdata->home; |
else pos = context->appdata->home; |
161 |
|
|
162 |
|
/* avoid to use "nan" as the user will then not be displayed a nice */ |
163 |
|
/* preset value to alter */ |
164 |
|
if(isnan(pos.lat)) pos.lat = 0; |
165 |
|
if(isnan(pos.lon)) pos.lon = 0; |
166 |
|
|
167 |
gtk_table_attach_defaults(GTK_TABLE(table), |
gtk_table_attach_defaults(GTK_TABLE(table), |
168 |
label = gtk_label_new(_("Latitude:")), 0, 1, 1, 2); |
label = gtk_label_new(_("Latitude:")), 0, 1, 1, 2); |
169 |
gtk_misc_set_alignment(GTK_MISC(label), 1.f, 0.5f); |
gtk_misc_set_alignment(GTK_MISC(label), 1.f, 0.5f); |