Thread: clock
View Single Post
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#49
Looks good. Have you tried stracing it or running it overnight on batteries to see what it does to your battery life?

Hopefully, looking at the screenshot it's sleeping for a minute before updating the display...

Edit: duh, it's got a seconds display, so it won't be sleeping long at all. You probably want to remove that, or at least make it not update the display, and sleep for much longer periods when the screen is blanked or the application isn't in the foreground. There are DBUS events for both of these.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa

Last edited by aflegg; 2007-08-25 at 16:29. Reason: Duh: it's got a seconds display