torios-dev team mailing list archive
-
torios-dev team
-
Mailing list archive
-
Message #01419
Indicators (tl;dr I am using FLTK instead of GTK+)
Hi all,
After having spent some time with Vala and GTK+ I have decided it is
actually counter productive to use this stuff for what I am doing. GTK
(as you all probably know) routinely removes features and the like. So
I have been revisiting the idea of an FLTK-based indicator, so I have
been working on that today a bit.
My initial tests of this new system have gone quite well, I can
effectively do all the minor things I want to in FLTK and X11 to make
and dock the indicator icon, and have a menu pop-up, though I may need
to do some other things to make the menu pop-up nicely always below the
icon. However I currently have working code to make the icon and at 10
second intervals update the icon. The rest will be something I need to
look into the alsa/pulse libraries to make volume, and the dbus/upower
API for a battery. Both of these are things I was looking into anyhow,
but it means that (with both infact) I effectively have the ability to
do what I want without using GTK+.
I prefer FLTK for many reasons in ToriOS.
1. The API is straightforward and uses normal things (like integers to
iterate).
2. the API consistently adds features, and does not break API compatibility.
3. Fast Light ToolKit is fast and light, neither which are GTK features.
So, since ToriOS is focused on the hardware we focus on I will stay
focused on FLTK, which is nice because I am really familiar with it :D
--
Regards
Follow ups