The ffi.load_enum function uses GObject.TypeClass.ref:
|
local type_class = GObject.TypeClass.ref(gtype) |
According to the glib documentation, the ref function has been deprecated since glib 2.84, and apparently removed in glib 2.86. The documentation instructs to use TypeClass.get instead.
Just changing ref to get fixes the issue for me, but such a change would mean glib >= 2.84 is required.
The
ffi.load_enumfunction usesGObject.TypeClass.ref:lgi/lgi/ffi.lua
Line 83 in a412921
According to the glib documentation, the
reffunction has been deprecated since glib 2.84, and apparently removed in glib 2.86. The documentation instructs to use TypeClass.get instead.Just changing
reftogetfixes the issue for me, but such a change would meanglib >= 2.84is required.