349 |
preferences.longitude = 0.0; |
preferences.longitude = 0.0; |
350 |
else |
else |
351 |
preferences.longitude = atof (temp); |
preferences.longitude = atof (temp); |
352 |
temp = gtk_editable_get_chars (GTK_EDITABLE (GTK_BIN(NScombo)->child), 0, 1); |
|
353 |
if (g_ascii_strncasecmp (temp, _("N"), 1) == 0) |
preferences.NS = gtk_combo_box_get_active (GTK_COMBO_BOX (NScombo)) + 1; |
354 |
preferences.NS = 1; |
preferences.EW = gtk_combo_box_get_active (GTK_COMBO_BOX (EWcombo)) + 1; |
355 |
else |
preferences.units = gtk_combo_box_get_active |
356 |
preferences.NS = 2; |
(GTK_COMBO_BOX (unitscombo)) == 1 ? 0 : 1; |
357 |
temp = gtk_editable_get_chars (GTK_EDITABLE (GTK_BIN(EWcombo)->child), 0, 1); |
|
|
if (g_ascii_strncasecmp (temp, _("E"), 1) == 0) |
|
|
preferences.EW = 1; |
|
|
else |
|
|
preferences.EW = 2; |
|
|
temp = gtk_editable_get_chars (GTK_EDITABLE (GTK_BIN(unitscombo)->child), |
|
|
0, -1); |
|
|
if (g_ascii_strncasecmp (temp, "K", 1) == 0) |
|
|
preferences.units = 1; |
|
|
else |
|
|
preferences.units = 0; |
|
358 |
state.mylocation = setlocation (preferences.latitude, preferences.NS, |
state.mylocation = setlocation (preferences.latitude, preferences.NS, |
359 |
preferences.longitude, preferences.EW); |
preferences.longitude, preferences.EW); |
360 |
|
|