Re: Label in tray = P in the A

2010-03-28 Thread Sergey Udaltsov
I released 2.30 and committed the latest changes to git. The current solution is to use the same font as application menu but the glyphs are somewhat stretched horizontally, to guarantee the squareness. It does not look too bad for me. I'd appreciate if someone try libgnomekbd from git and

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
Thanks, that looks promising! Sergey On Wed, Mar 24, 2010 at 1:41 AM, Behdad Esfahbod behdad.esfah...@gmail.com wrote: On 03/23/2010 09:06 PM, Sergey Udaltsov wrote: Thanks Matthias How could I tell pango about hinting and AA settings? I could not find that in pango API, only in cairo

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
Thanks lads, the idea about pango really worked. I should not have used the 'toy' API. But the things got worse with the proper size - the label becomes wide. Here's another trouble. GtkStatusIcon makes the icon square. Effectively, it means the image gets scaled and the glyphs become narrow.

Re: Label in tray = P in the A

2010-03-24 Thread Matthias Clasen
On Wed, Mar 24, 2010 at 9:20 AM, Sergey Udaltsov sergey.udalt...@gmail.com wrote: Thanks lads, the idea about pango really worked. I should not have used the 'toy' API. But the things got worse with the proper size - the label becomes wide. Here's another trouble. GtkStatusIcon makes the icon

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
Not an options. This is INDICATOR. That's a primary function. Switching is a secondary function. Sergey On Wed, Mar 24, 2010 at 1:43 PM, Matthias Clasen matthias.cla...@gmail.com wrote: On Wed, Mar 24, 2010 at 9:20 AM, Sergey Udaltsov sergey.udalt...@gmail.com wrote: Thanks lads, the idea

Re: Label in tray = P in the A

2010-03-24 Thread Behdad Esfahbod
And all in Latin, or translated? How many letters typically? On 03/24/2010 10:08 AM, Sergey Udaltsov wrote: Not an options. This is INDICATOR. That's a primary function. Switching is a secondary function. Sergey On Wed, Mar 24, 2010 at 1:43 PM, Matthias Clasen matthias.cla...@gmail.com

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
Translated. Typically, 3 letters (well, at least that's my recommendation as maintainer of xkeyboard-config). On Wed, Mar 24, 2010 at 2:15 PM, Behdad Esfahbod behdad.esfah...@gmail.com wrote: And all in Latin, or translated?  How many letters typically? On 03/24/2010 10:08 AM, Sergey Udaltsov

Re: Label in tray = P in the A

2010-03-24 Thread Milan Bouchet-Valat
Le mercredi 24 mars 2010 à 14:17 +, Sergey Udaltsov a écrit : Translated. Typically, 3 letters (well, at least that's my recommendation as maintainer of xkeyboard-config). Can't you fit these letters in a square, as small as it may be? I don't see any other solution to your problem.

Re: Label in tray = P in the A

2010-03-24 Thread Behdad Esfahbod
On 03/24/2010 10:18 AM, Milan Bouchet-Valat wrote: Le mercredi 24 mars 2010 à 14:17 +, Sergey Udaltsov a écrit : Translated. Typically, 3 letters (well, at least that's my recommendation as maintainer of xkeyboard-config). Can't you fit these letters in a square, as small as it may be? I

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
I can fit indeed. The only thing is that the resulting font would be different from the font used in the menu. I do not see any other solution either, to be true... Sergey On Wed, Mar 24, 2010 at 2:18 PM, Milan Bouchet-Valat nalimi...@club.fr wrote: Le mercredi 24 mars 2010 à 14:17 +,

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
Yes, algorithmically that is straightforward. Sergey On Wed, Mar 24, 2010 at 2:21 PM, Behdad Esfahbod behdad.esfah...@gmail.com wrote: On 03/24/2010 10:18 AM, Milan Bouchet-Valat wrote: Le mercredi 24 mars 2010 à 14:17 +, Sergey Udaltsov a écrit : Translated. Typically, 3 letters (well,

Re: Label in tray = P in the A

2010-03-24 Thread Milan Bouchet-Valat
Le mercredi 24 mars 2010 à 14:22 +, Sergey Udaltsov a écrit : I can fit indeed. The only thing is that the resulting font would be different from the font used in the menu. I do not see any other solution either, to be true... Yeah, that's really a hack. Hope we can get something nicer

Re: Label in tray = P in the A

2010-03-24 Thread Matthias Clasen
On Wed, Mar 24, 2010 at 10:08 AM, Sergey Udaltsov sergey.udalt...@gmail.com wrote: Not an options. This is INDICATOR. That's a primary function. Switching is a secondary function. Make the text an overlay on the keyboard icon then. Just having the three letters U S A without further explanation

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
Ghm, what is overlay? The tooltip? Again, too bad. The indicator should work without mouse pointer. The tooltip is useless only for USA - for Russia, the letters are 'Rus' and the tooltip is 'Russia'. Same for other countries. Sergey On Wed, Mar 24, 2010 at 2:38 PM, Matthias Clasen

Re: Label in tray = P in the A

2010-03-24 Thread Matthias Clasen
On Wed, Mar 24, 2010 at 10:43 AM, Sergey Udaltsov sergey.udalt...@gmail.com wrote: Ghm, what is overlay? The tooltip? Again, too bad. The indicator should work without mouse pointer. No, I meant put it in the icon, like an emblem. The tooltip is useless only for USA - for Russia, the letters

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
No, I meant put it in the icon, like an emblem. What kind of emblems? For example for Usa and Russia? How about making it Keyboard layout: USA ? NP ___ desktop-devel-list mailing list desktop-devel-list@gnome.org

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
I am sorry, you lost me here. How could the label be the emblem? You mean some kind of word-art? Sergey On Wed, Mar 24, 2010 at 3:26 PM, Matthias Clasen matthias.cla...@gmail.com wrote: On Wed, Mar 24, 2010 at 11:15 AM, Sergey Udaltsov sergey.udalt...@gmail.com wrote: No, I meant put it in

Re: Label in tray = P in the A

2010-03-24 Thread Florian Müllner
El mié, 24-03-2010 a las 16:14 +, Sergey Udaltsov escribió: I am sorry, you lost me here. How could the label be the emblem? You mean some kind of word-art? I think what he means is to display the icon and render the three letter acronyms over it. Or in other words, use the keyboard icon as

Re: Label in tray = P in the A

2010-03-24 Thread Matthias Clasen
2010/3/24 Florian Müllner florian.muell...@gmail.com: El mié, 24-03-2010 a las 16:14 +, Sergey Udaltsov escribió: I am sorry, you lost me here. How could the label be the emblem? You mean some kind of word-art? I think what he means is to display the icon and render the three letter

Re: Label in tray = P in the A

2010-03-24 Thread Luca Ferretti
Il giorno mer, 24/03/2010 alle 14.17 +, Sergey Udaltsov ha scritto: Translated. Typically, 3 letters (well, at least that's my recommendation as maintainer of xkeyboard-config). About this, a quick note about xkeyboard-config I always forgot to report. Why don't use directly ISO 3166-1

Re: Label in tray = P in the A

2010-03-24 Thread Sergey Udaltsov
This is perfectly valid point. Thanks for telling me. I intended to use 3166 alpha-3 but some codes might get messed. I will try to check that. Sergey On Wed, Mar 24, 2010 at 11:09 PM, Luca Ferretti lferr...@gnome.org wrote: Il giorno mer, 24/03/2010 alle 14.17 +, Sergey Udaltsov ha

Label in tray = P in the A

2010-03-23 Thread Sergey Udaltsov
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,

Re: Label in tray = P in the A

2010-03-23 Thread Matthias Clasen
On Tue, Mar 23, 2010 at 7:42 PM, Sergey Udaltsov sergey.udalt...@gmail.com wrote: 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.

Re: Label in tray = P in the A

2010-03-23 Thread Ted Gould
On Tue, 2010-03-23 at 23:42 +, Sergey Udaltsov wrote: 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