Skip to content

GObject.TypeClass.ref removed in glib 2.86 #346

@Ikke

Description

@Ikke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions