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 dmystyle = style_new()   # contrary to some docs, style CANNOT be 
NULL
        var pixbuf = iconset.render_icon(dmystyle,TEXT_DIR_NONE,
            STATE_NORMAL,ICON_SIZE_DIALOG,nil,nil)
        echo "stock pixbuf=",cast[int](pixbuf).toHex(8)
    

Reply via email to