Label in tray = P in the A



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

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 gtk style, font
rendering settings etc. What a pain.. Bug reports... Now, another one:
https://bugzilla.gnome.org/show_bug.cgi?id=611875.

Here is my question of the day: why does the font size retrieved from
gtk style and provided to cairo give different results, comparing to
the gtk itself? I simply do not get that...

I tried to use cairo_scaled_font_t - but the results are even worse,
the font gets smaller;)

Thanks for any ideas,

Sergey


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