[Usability] Re: A battery applet...



On Tue, Dec 14, 2004 at 09:00:06AM +0800, Davyd Madeley wrote:
> It will also be important to receive "battery level has changed" events
> asyncronously, I think HAL will be able to do this though.
> 
> This could be implemented very badly, very easily (look at the current
> applet).  Basically power management sucks at the moment, and we do need a
> rich power management API.

Hal sends dbus signals when devices are added/removed and when properties are
changed. So if the battery level property is changed, you'll get an event. When
the power is connected (battery start charging), you'll get an event etc.. 

So the battery applet can be lazy and just do some fancy graphical stuff when
hal tells it something changed :)

  Sjoerd
-- 
No people are all bad, just as none are all good.
Tecumseh, (Shawnee) to his nephew Spemica Lawba 1790



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]