aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-08-31 15:08:08 -0500
committerTed Gould <ted@gould.cx>2011-08-31 15:08:08 -0500
commita748ceb9f10a46400f700d1b4ea2ec5f4b0e1376 (patch)
tree67cec30a60cb87bf406b32ff57aaf3cdc9c83ce1
parentcfd56b9c2492653b92ce573380f0a06cbde699b7 (diff)
parent4207f22ac83a0c4f06cc2ae588605c2f235449e8 (diff)
downloadayatana-indicator-datetime-a748ceb9f10a46400f700d1b4ea2ec5f4b0e1376.tar.gz
ayatana-indicator-datetime-a748ceb9f10a46400f700d1b4ea2ec5f4b0e1376.tar.bz2
ayatana-indicator-datetime-a748ceb9f10a46400f700d1b4ea2ec5f4b0e1376.zip
Remove visibility check so we can update the date before we're visible.
-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);