Label in tray = P in the A

General 4 Comments

In GNOME 2.30, the kbd indicator moved to the tray. People are happy, most of them. But … there is a trouble here.

StatusIcons are not GTK widgets. And, as the result, the indicator has to “emulate” gtk widget. That’s a real pain, folks. The indicator renders text to cairo, converts cairo to pixbuf, sets status icon from pixbuf. Worst of all, the widget has to follow and track all changes in gtk style, font rendering etc. What a pain.. Bug reports… Now, another one. Here is my question of the day: can anybody tell me why the font size retrieved from gtk and provided to cairo gives different results comparing to the gtk itself? I simply do not get that…