Re: pixbuf_new_from_stock

2016-12-19 Thread geezer9
Your tip was better than useful. Here is nimish code that worked (with some inessential validating code): var iconset = icon_factory_lookup_default("gtk-dialog-error") echo "iconset=",cast[int](iconset).toHex(8) if iconset==nil: quit("Bad Icon Id") var

Re: pixbuf_new_from_stock

2016-12-19 Thread geezer9
The link you gave is VERY helpful - many thanks. I had hoped the Gtk critical number was a code offset - ah well - just have to continue digging out GTK problems via diagnostic outputs. I have been programming decades in Java (and previously MSWIN) so am GTK-clueless Thanks for your assistance.

Re: pixbuf_new_from_stock

2016-12-09 Thread Stefan_Salewski
What do you think where the problem is? Are you following a C example or the Krause book? As you know I am using only GTK3 -- but from my memory of examples and the Krause book I think that the second parameter of gtk_image_new_from_stock is generally a C enum of type GtkIconSize. So allowed

pixbuf_new_from_stock

2016-12-09 Thread geezer9
This is not strictly a NIM question - but it is in service to an attempt to write a semi-cross-platform nim gui library. The question concerns gtk2 There is a need to load a pixbuf from a stock image - such as **gtk-dialog-error**. There seems to be no **pixbuf_new_from_stock** function