aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-prefs.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-07-13 17:09:25 +0200
committerSebastien Bacher <seb128@ubuntu.com>2012-07-13 17:09:25 +0200
commited02493a8c6534f1aaf76e005100ad7be7820891 (patch)
tree84597b1501fd36b6f2a3702e12fa35360a5db2e2 /src/datetime-prefs.c
parent75d3c8be473b6c2600f187f77ffb25b21700a373 (diff)
parente2e14906d2f574abf672862c2bf4dac1d044dd3c (diff)
downloadayatana-indicator-datetime-ed02493a8c6534f1aaf76e005100ad7be7820891.tar.gz
ayatana-indicator-datetime-ed02493a8c6534f1aaf76e005100ad7be7820891.tar.bz2
ayatana-indicator-datetime-ed02493a8c6534f1aaf76e005100ad7be7820891.zip
Import upstream version 12.10.0
Diffstat (limited to 'src/datetime-prefs.c')
-rw-r--r--src/datetime-prefs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/datetime-prefs.c b/src/datetime-prefs.c
index 0e2e99c..d80a59f 100644
--- a/src/datetime-prefs.c
+++ b/src/datetime-prefs.c
@@ -613,11 +613,11 @@ timezone_selected (GtkEntryCompletion * widget, GtkTreeModel * model,
-1);
if (strlon != NULL && strlon[0] != 0) {
- lon = strtod(strlon, NULL);
+ lon = g_ascii_strtod(strlon, NULL);
}
if (strlat != NULL && strlat[0] != 0) {
- lat = strtod(strlat, NULL);
+ lat = g_ascii_strtod(strlat, NULL);
}
zone = cc_timezone_map_get_timezone_at_coords (self->priv->tzmap, lon, lat);
@@ -733,6 +733,8 @@ indicator_datetime_panel_init (IndicatorDatetimePanel * self)
"active", G_SETTINGS_BIND_DEFAULT);
g_settings_bind (conf, SETTINGS_SHOW_EVENTS_S, WIG ("showEventsCheck"),
"active", G_SETTINGS_BIND_DEFAULT);
+ g_settings_bind (conf, SETTINGS_SHOW_DETECTED_S, WIG ("showDetectedCheck"),
+ "active", G_SETTINGS_BIND_DEFAULT);
g_settings_bind (conf, SETTINGS_SHOW_LOCATIONS_S, WIG ("showLocationsCheck"),
"active", G_SETTINGS_BIND_DEFAULT);
@@ -829,6 +831,8 @@ indicator_datetime_panel_dispose (GObject * object)
gtk_widget_destroy (priv->date_spin);
priv->date_spin = NULL;
}
+
+ G_OBJECT_CLASS (indicator_datetime_panel_parent_class)->dispose (object);
}
static void