~kelemeng/indicator-datetime/bug845473

« back to all changes in this revision

Viewing changes to src/indicator-datetime.c

  • Committer: Ted Gould
  • Date: 2011-08-31 20:08:08 UTC
  • mfrom: (124.2.1 indicator-datetime)
  • Revision ID: ted@gould.cx-20110831200808-ldid1q811afnhom9
Remove visibility check so we can update the date before we're visible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
        gint y, m, d;
275
275
 
276
276
        g_debug("notify visible signal received");
277
 
        
278
 
        // we should only react if we're currently visible
279
 
        gboolean visible;
280
 
        g_object_get(G_OBJECT(menu), "visible", &visible, NULL);
281
 
        if (visible) return;
282
 
        g_debug("notify visible menu hidden, resetting date");
283
277
 
284
278
        datetime = g_date_time_new_now_local ();
285
279
        g_date_time_get_ymd (datetime, &y, &m, &d);