GTK4 Creating a Gsk.RenderNode* does not return a GObject
Trying to append a RenderNode to a snapshot. According to documentation it should accept the given type. https://docs.gtk.org/gtk4/method.Snapshot.append_node.html But it does not. Thanks for your work :)
ViewMath.py:42: Warning: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed`
node = Gsk.TextNode.new()
ViewMath.py:42: Warning: g_object_is_floating: assertion 'G_IS_OBJECT (object)' failed
node = Gsk.TextNode.new()
** (python3:26120): CRITICAL **: 00:00:11.077: pygobject_register_wrapper: assertion 'PyObject_TypeCheck(self, &PyGObject_Type)' failed
Traceback (most recent call last):
File "ViewMath.py", line 44, in do_snapshot
snapshot.append_node(node)
TypeError: expected GObject but got <gi.repository.Gsk.TextNode object at 0x7fc019fd3130>
Segmentation fault (core dumped)