You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
GObject properties only work for GObjects and not boxed types. Boxed types are only a way to teach GObject (the library, not the type) about "external" types together with the corresponding memory management functions (copy/ref and free/unref).
On your external type you can have whatever API you want, but as it's not a GObject so can't have GObject properties.
Does that answer your question? Do you see some possible improvement in the docs to make this clearer?
glib::subclass shows how to create either an
Object
with properties, or aBoxedType
with no properties.But is it possible to have
BoxedType
and have properties on it?https://gtk-rs.org/docs/glib/subclass/index.html
The text was updated successfully, but these errors were encountered: