From 4207f22ac83a0c4f06cc2ae588605c2f235449e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 25 Aug 2011 15:46:51 +0100 Subject: Update the date when open the indicator-datetime menu Fixes https://bugs.launchpad.net/indicator-datetime/+bug/793450 --- src/indicator-datetime.c | 6 ------ 1 file changed, 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); -- cgit v1.2.3