Re: Label in tray = P in the A
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 I will check the snapshot function... Use pango_cairo_context_set_font_options() with the cairo_font_options_t retrieved from gdk. behdad Sergey On 3/24/10, Matthias Clasen matthias.cla...@gmail.com wrote: 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. 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, Using the cairo 'toy' text api is almost never correct. I've just fixed a bunch of Indic text rendering bugs in various apps that were caused by use of this api instead of pango. You can have a look at pango/examples/cairosimple.c for how that might look. Or maybe you can just use gtk_widget_get_snapshot with a label widget. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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. What would be the acceptable solution? Just leave it as it is? Use two status icons (hehe, joking)? Use flags (joking even more)? Any ideas are welcome. Sergey On Wed, Mar 24, 2010 at 12:01 PM, Sergey Udaltsov sergey.udalt...@gmail.com wrote: 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 I will check the snapshot function... Use pango_cairo_context_set_font_options() with the cairo_font_options_t retrieved from gdk. behdad Sergey On 3/24/10, Matthias Clasen matthias.cla...@gmail.com wrote: 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. 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, Using the cairo 'toy' text api is almost never correct. I've just fixed a bunch of Indic text rendering bugs in various apps that were caused by use of this api instead of pango. You can have a look at pango/examples/cairosimple.c for how that might look. Or maybe you can just use gtk_widget_get_snapshot with a label widget. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 square. Effectively, it means the image gets scaled and the glyphs become narrow. What would be the acceptable solution? Just leave it as it is? Use two status icons (hehe, joking)? Use flags (joking even more)? Any ideas are welcome. Just use a keyboard icon, and have a menu to switch layouts. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 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. What would be the acceptable solution? Just leave it as it is? Use two status icons (hehe, joking)? Use flags (joking even more)? Any ideas are welcome. Just use a keyboard icon, and have a menu to switch layouts. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 wrote: 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 square. Effectively, it means the image gets scaled and the glyphs become narrow. What would be the acceptable solution? Just leave it as it is? Use two status icons (hehe, joking)? Use flags (joking even more)? Any ideas are welcome. Just use a keyboard icon, and have a menu to switch layouts. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 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 wrote: 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 square. Effectively, it means the image gets scaled and the glyphs become narrow. What would be the acceptable solution? Just leave it as it is? Use two status icons (hehe, joking)? Use flags (joking even more)? Any ideas are welcome. Just use a keyboard icon, and have a menu to switch layouts. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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. Regards ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 don't see any other solution to your problem. Yeah, something like that. Measure size, cairo_scale, redraw. May need to do two / three times to get the best fit. b Regards ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 +, 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. Regards ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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, 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. Yeah, something like that. Measure size, cairo_scale, redraw. May need to do two / three times to get the best fit. b Regards ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 soon using a GNOME Shell extension, and libappindicator for the old panel. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 sit between my status icons is kinda odd in the first place... also, repeating the same three letters in the tooltip is pointless. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 matthias.cla...@gmail.com wrote: 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 sit between my status icons is kinda odd in the first place... also, repeating the same three letters in the tooltip is pointless. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 are 'Rus' and the tooltip is 'Russia'. Same for other countries. How about making it Keyboard layout: USA ? ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 the icon, like an emblem. What kind of emblems? For example for Usa and Russia? No, your three-letter acronyms, like USA or RUS ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to make GNOME better for Netbooks?
On 10 Mar 2010, at 10:32, Valent Turkovic wrote: Do you have some examples and guidelines how to customize GNOME for Netbooks? If you want some ideas for how to customize GNOME to work on a netbook, it's probably easiest just to try some of the netbook-oriented distros out there, like the Ubuntu Netbook Remix, to see what they do. We also need to encourage developers to write applications that will adapt better to running on netbooks and other non-desktop devices. This will certainly be one of the themes of the new GNOME Human Interface Guidelines, on which we're just getting started. Cheeri, Calum. -- CALUM BENSON, Interaction Designer Sun Microsystems Ireland mailto:calum.ben...@sun.comOpenSolaris Desktop Team http://blogs.sun.com/calum +353 1 819 9771 Any opinions are personal and not necessarily those of Sun Microsystems ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to make GNOME better for Netbooks?
On Wed, Mar 24, 2010 at 12:41 PM, Calum Benson calum.ben...@sun.com wrote: On 10 Mar 2010, at 10:32, Valent Turkovic wrote: Do you have some examples and guidelines how to customize GNOME for Netbooks? If you want some ideas for how to customize GNOME to work on a netbook, it's probably easiest just to try some of the netbook-oriented distros out there, like the Ubuntu Netbook Remix, to see what they do. We also need to encourage developers to write applications that will adapt better to running on netbooks and other non-desktop devices. This will certainly be one of the themes of the new GNOME Human Interface Guidelines, on which we're just getting started. Yes, and mobile devices (smartphones etc) too. I've noticed the user interface of applications designed for these devices are highly usable and well thought out. I think the physical constraints of these devices forces developers to come up with creative user interfaces. Anyway, I think it'll be great if some of the great ideas of developing user interfaces on mobile devices finds its way into the GNOME HIG. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: How to make GNOME better for Netbooks?
On 24 Mar 2010, at 17:36, Mystilleef wrote: Yes, and mobile devices (smartphones etc) too. I've noticed the user interface of applications designed for these devices are highly usable and well thought out. I think the physical constraints of these devices forces developers to come up with creative user interfaces. Anyway, I think it'll be great if some of the great ideas of developing user interfaces on mobile devices finds its way into the GNOME HIG. Well, there does come a point where the design requirements are so different for (say) a desktop application and a touchscreen phone application that you really need two completely different sets of guidelines, as all the other major players in that field can testify. But with the UI pattern library we're hoping to put together for GNOME 3.x, we should at least be able to keep the patterns for similar tasks on different devices all together in the same place. Cheeri, Calum. -- CALUM BENSON, Interaction Designer Sun Microsystems Ireland mailto:calum.ben...@sun.comOpenSolaris Desktop Team http://blogs.sun.com/calum +353 1 819 9771 Any opinions are personal and not necessarily those of Sun Microsystems ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 background image of the TLA. signature.asc Description: Esta parte del mensaje está firmada digitalmente ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 acronyms over it. Or in other words, use the keyboard icon as background image of the TLA. Yeah, something like the attached icon (ignore the fact that I have no artistic talent at all...). attachment: german-keyboard.png___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: participation in gsoc2010
Hi, Am Samstag, den 20.03.2010, 23:19 +0530 schrieb vikas kushwaha: 1. This is about creating a application to customize gnome. The application will allow users to create new menu items and attach actions with them, and also specify their positioning in the window. In this way this way, this application would be helpful to create gui for gnome applications easily. It can also be used to modify gui for already installed application by the users. Probably better suited for discussion on the usability mailing list. 2. This one is about adding more features to nautilus. This includes adding options to sort and arrange files based on size, type, more recent, most used etc. This will allow users to access their data more effectively and quickly. ...and this one on the nautilus mailing list. andre -- mailto:ak...@gmx.net | failed http://www.iomc.de/ | http://blogs.gnome.org/aklapper ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 alpha-3[1]? As Italian translator of xkeyboard-config, I've to say it's a little mess to check where a 3 letter message come from. Currently the 3 letter letter code for many countries seems to use the ISO spec, but some countries have a custom code: for example Bangladesh is Ban while the ISO code is BGD, same for Bhutan (Bhu instead BTN) or Greece (Gre instead GRC) and maybe others. Using directly uppercase ISO would help translators and users, allowing to have unique 3 letter codes for each country with no cost (translators could simply copy original message to translated message, if no transliteration in needed). [1] http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Label in tray = P in the A
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 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 alpha-3[1]? As Italian translator of xkeyboard-config, I've to say it's a little mess to check where a 3 letter message come from. Currently the 3 letter letter code for many countries seems to use the ISO spec, but some countries have a custom code: for example Bangladesh is Ban while the ISO code is BGD, same for Bhutan (Bhu instead BTN) or Greece (Gre instead GRC) and maybe others. Using directly uppercase ISO would help translators and users, allowing to have unique 3 letter codes for each country with no cost (translators could simply copy original message to translated message, if no transliteration in needed). [1] http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list