aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-08-25 15:46:51 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-08-25 15:46:51 +0100
commit4207f22ac83a0c4f06cc2ae588605c2f235449e8 (patch)
tree407a24efcc0cb94d135039dc18988d6edb4e458b
parent5298a3957ac3c81ff197a73e1f7986ead22818c2 (diff)
downloadayatana-indicator-datetime-4207f22ac83a0c4f06cc2ae588605c2f235449e8.tar.gz
ayatana-indicator-datetime-4207f22ac83a0c4f06cc2ae588605c2f235449e8.tar.bz2
ayatana-indicator-datetime-4207f22ac83a0c4f06cc2ae588605c2f235449e8.zip
Update the date when open the indicator-datetime menu
Fixes https://bugs.launchpad.net/indicator-datetime/+bug/793450
-rw-r--r--src/indicator-datetime.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index aca1101..59bcaf3 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -274,12 +274,6 @@ menu_visible_notfy_cb(GtkWidget * menu, G_GNUC_UNUSED GParamSpec *pspec, gpointe
gint y, m, d;
g_debug("notify visible signal received");
-
- // we should only react if we're currently visible
- gboolean visible;
- g_object_get(G_OBJECT(menu), "visible", &visible, NULL);
- if (visible) return;
- g_debug("notify visible menu hidden, resetting date");
datetime = g_date_time_new_now_local ();
g_date_time_get_ymd (datetime, &y, &m, &d);