How to use rsvg_handle_render
from lua
#1262
-
In Conky v1.13 the functions Passing a table with the correct arguments does not work ("assertion '!viewport.is_null()' failed") and the "constructors" that tolua++ should (as far as I understand) create are not available ( I'm probably missing something very obvious (I don't have much experience with tolua++), but any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This should resolve it: #1263 When I updated this, I forgot to add the necessary methods. Now you'll be able to create/destroy: rect = RsvgRectangle::create() -- creates rectangle
rect:destroy(); -- destroys rectangle
-- alternatively, let Lua manage the memory:
rect = RsvgRectangle::create()
tolua.takeownership(rect)
-- now Lua will free the object when it goes out of scope It's my bad for forgetting to add those methods. |
Beta Was this translation helpful? Give feedback.
This should resolve it: #1263
When I updated this, I forgot to add the necessary methods.
Now you'll be able to create/destroy:
It's my bad for forgetting to add those methods.