On Tue, Oct 7, 2008 at 6:02 AM, John Gilmore <[EMAIL PROTECTED]> wrote: > /usr/share/sugar/shell/view/devices/battery.py > > #TODO: make this less of an wild/educated guess > minutes_remaining = int(current_level / 0.59) > remaining_hourpart = minutes_remaining / 60 > remaining_minpart = minutes_remaining % 60 > secondary_text = _('%(hour)d:%(min).2d remaining' > % { 'hour': remaining_hourpart, > 'min': remaining_minpart}) > > How, uh, unusual to slip this into a release at the last minute! > > The battery code has moved all around in the last two weeks (I think > it's been in three different places in the Sugar tree), so I found > it too hard to track who put this change in, and why.
It's not hard at all, just use gitweb to look at the history of the file in the sucrose-0.82 branch. And it's not a last minute change. http://dev.laptop.org/git?p=sugar;a=commitdiff;h=cf6bd9384004cb47cf5a0f77c31049624cff7dd0 Marco _______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel