No, please, do not create RSVG wrapper =) Take your time for rest and making
other useful things.
Thanks for pointing me to that. I'm confused in all that
pointer-reference-object_itself stuff =) I'll try to check this tomorrow.
SVG works, I created GdkPixbuf from it with:
fill_cell_with_new_image(color_cells[index],
"/images/cells/general_dark.svg")
proc fill_cell_with_new_image (cell:ref cell_type, image_name:string)
{.discardable.} =
#[ Fills given cell's image field with specified in "image_name".
]#
var image = gtk3.newImage()
var pixbuf: gdk_pixbuf.GdkPixbuf =
gdk_pixbuf.newPixbufFromFileAtSize(os.getAppDir() &
image_name, cell_size.cint(), cell_size.cint(), dummy_error)
image.setFromPixbuf(pixbuf)
cell.image = image
and all worked and displayed.
I have many books on my PocketBook reader: about Java, Javascript, Python (near
7 pieces), many other =) But I have no books about Nim, Gtk. Besides, the only
book I read - Mark Lutz - Learning Python =)
Thanks for help and suggestion, I'll try to fix this tomorrow.