GTK bindings
Posted: Mon Dec 24, 2012 6:45 am
Hi,
today i came across an error when loading a GTK stock icon with the internal GTK function This works fine if the compiler option "Create Unicode executable" is not set. Otherwise you get no icon. After some further investigation, i found out that to get it work, i can either use an ASCII converted string or re-declare the GTK function with the pseudo type p-utf8 like this:
I looked also to other GTK functions and found out that they also do not work either, so i guess that the whole bindings are only work in ASCII mode.
I am not sure whether it is really a bug, but by using the p-utf8 thing, the code works in ASCII and UNICODE mode.
Best regards
Uwe
today i came across an error when loading a GTK stock icon with the internal GTK function
Code: Select all
gtk_icon_theme_load_icon_()
Code: Select all
gtk_icon_theme_load_icon(*theme, name.p-utf8, size, flags, *gerror)
I am not sure whether it is really a bug, but by using the p-utf8 thing, the code works in ASCII and UNICODE mode.
Best regards
Uwe