[gnome-control-center] datetime: Update current time when tz changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Update current time when tz changes
- Date: Thu, 27 Sep 2012 20:14:44 +0000 (UTC)
commit 2ab1f2172338608f5b95858d46c05b71cf46b438
Author: Bastien Nocera <hadess hadess net>
Date: Thu Sep 27 22:12:52 2012 +0200
datetime: Update current time when tz changes
https://bugzilla.gnome.org/show_bug.cgi?id=665137
panels/datetime/cc-datetime-panel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 8465dc3..803f48a 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -748,6 +748,10 @@ on_clock_changed (GnomeWallClock *clock,
GParamSpec *pspec,
CcDateTimePanel *panel)
{
+ CcDateTimePanelPrivate *priv = panel->priv;
+
+ g_date_time_unref (priv->date);
+ priv->date = g_date_time_new_now_local ();
update_time (panel);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]