Re: Why the code is not compatible?

Hi Igor,

The code fallbacks to a default icon size (24x24) if you pass a wrong
argument. You should also get a warning in the console if I read the
source correctly.

Le dimanche 16 août 2015 à 09:06 -0400, Igor Korot a écrit :
Hi, Jean,

On Sun, Aug 16, 2015 at 8:59 AM, Jean Brefort
<jean brefort normalesup org> wrote:
GtkIconSize is an enum. Acceptable values are 1 to 6, 6 being
GTK_ICON_SIZE_DIALOG. (0 means invalid). 48 is undefined.

But then why it works if I just use gtk_image_new_from_icon_name()?
Am I losing the size, converting from GdkPixbuf and it becomes 0?

Thank you.

Le dimanche 16 août 2015 à 14:24 +0200, Stefan Salewski a écrit :
On Sat, 2015-08-15 at 19:16 -0400, Igor Korot wrote:
However, if
I explicitely put 48 instead of GTK_ICON_SIZE_DIALOG in  the 
gtk_icon_theme_load_icon() or
use gtk_image_new_from_icon_name() instead of the whole block 
appears properly sized.

I think GtkIconSize is an enum, so using value 48 should be 

For such kind of problems it is really useful to provide a 
minimal example, preferable in plain C. I can not guess what your
problem may be, maybe the real experts can. But unfortunately we 
not many experts still on this list, and they may be busy.

gtk-list mailing list
gtk-list gnome org

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