Changeset 275
- Timestamp:
- 07/22/06 05:28:37 (18 years ago)
- Location:
- trunk/hiptop/pester/net/sabi/pester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/net/sabi/pester/Alarm.java
r273 r275 251 251 public int getSecondsUntilNextIntervalStringUpdate() { 252 252 int i = remainingInterval(); 253 if (i == 1)253 if (i <= 1) 254 254 return 0; 255 255 if (i <= 60) 256 256 return 1; 257 if (i <= 24 * 60 * 60) 258 return i % 60; 259 return i % 3600; // update at least once an hour, regardless 257 if (i <= 24 * 60 * 60) { 258 i %= 60; 259 return (i == 0 ? 60 : i); 260 } 261 i %= 3600; 262 return (i == 0 ? 3600 : i); 260 263 } 261 264 -
trunk/hiptop/pester/net/sabi/pester/AlarmListView.java
r274 r275 28 28 setHasBorder(true); 29 29 mToolTipAlarm = new danger.app.Alarm(0, this); 30 Application.registerForEvent(this, Event.EVENT_TIME_CHANGED); 30 31 super.onDecoded(); 31 32 } … … 64 65 Alarms.removeAlarm((Alarm)getFocusedItem()); 65 66 return true; 67 case Event.EVENT_TIME_CHANGED: 68 if (mToolTipWindow == null || !mToolTipWindow.isVisible()) 69 return true; 66 70 case Event.EVENT_ALARM: // tooltip invalid 67 // XXX should do this too if the time changes68 71 showToolTip(); 69 72 return true;
Note:
See TracChangeset
for help on using the changeset viewer.