diff options
author | Michael Terry <mike@mterry.name> | 2011-02-15 15:52:09 -0500 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-02-15 15:52:09 -0500 |
commit | 02fcae957feca3cefd3c950c265fab03c5b1177c (patch) | |
tree | c2ae712a4b36c108d01d0eb95257e1d031ccbe1f /src/datetime-service.c | |
parent | 07e4b46e4a8ee9607919ad28af4f26fb036eb57e (diff) | |
download | ayatana-indicator-datetime-02fcae957feca3cefd3c950c265fab03c5b1177c.tar.gz ayatana-indicator-datetime-02fcae957feca3cefd3c950c265fab03c5b1177c.tar.bz2 ayatana-indicator-datetime-02fcae957feca3cefd3c950c265fab03c5b1177c.zip |
ignore timezone switches if nothing to do
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 432657d..0894e83 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -233,10 +233,14 @@ static void quick_set_tz (DbusmenuMenuitem * menuitem, guint timestamp, gpointer user_data) { const gchar * tz = dbusmenu_menuitem_property_get(menuitem, TIMEZONE_MENUITEM_PROP_LABEL); + g_debug("Quick setting timezone to: %s", tz); g_return_if_fail(tz != NULL); + if (g_strcmp0(tz, current_timezone) == 0) + return; + OobsObject * obj = oobs_time_config_get(); g_return_if_fail(obj != NULL); |