[sugar] System Tray Icons

Eben Eliason eben.eliason at gmail.com
Tue May 27 22:30:32 EDT 2008


On Tue, May 27, 2008 at 10:12 PM, Benjamin M. Schwartz
<bmschwar at fas.harvard.edu> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I was interested in writing a clock tray icon, so I attempted to
> understand how the battery tray icon works.  After reading all the
> relevant code, I have concluded:

Neat.

> 2. The Battery tray icon works by choosing one of 15 different statically
> generated icons

That's true.

> 1. Sugar does not support dynamically generated icons, beyond the
> application of colors and badges

But I'm not sure this is true.  The sugar icon class inherits from
gtk.Image. Can't you extract the pixbuf and manually update the
contents of the icon as necessary, doing any dynamic
positioning/compositing before shoving the bits in?  Perhaps not (I'm
not familiar with this at all), or perhaps this is inefficient. I'm
curious to know what's possible.

- Eben

> 3. It is not possible to implement a clock icon using this framework.

PS.  If you are in fact correct, I hope we can find a way to make it
possible in the future!



> I would like to find out if I have misunderstood the code, and how we
> should proceed here.  In particular, I would ask: why can't we simply make
> each device an arbitrary ToolbarItem?
>
> - --Ben
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkg8v3MACgkQUJT6e6HFtqSEsACeNx8KMsIXgsg0zl3J4TCLd4Bf
> GjMAn2m7syMWzvNaVDTe/b321Grffwkm
> =hP9V
> -----END PGP SIGNATURE-----
> _______________________________________________
> Sugar mailing list
> Sugar at lists.laptop.org
> http://lists.laptop.org/listinfo/sugar
>


More information about the Sugar mailing list