Re: Maybe GListModel incorrectness.
- Date: Sun, 25 Sep 2016 12:29:30 +0100
- From: Emmanuele Bassi <ebassi@xxxxxxxxx>
- Subject: Re: Maybe GListModel incorrectness.
you should be using gtk-devel-list if you want to contact the GTK developers.
On 22 September 2016 at 22:05, Konstantin P. <ria.freelander@xxxxxxxxx> wrote:
> I have custom GListModel, which hold a boxed type.
GListModel is meant to be used with GObject for storage, not with
GBoxed types, or with other fundamental types.
The reason why GListModel uses void* pointers is to avoid continuous
type checking, but that does not imply that you can store whatever
pointer-sized data you want into it.
> I think GLIstModel must state about items must be GObject subclasses,
Which it does:
| GListModel is an interface that represents a mutable list of GObjects.
> or implement a boxed type handler of dup and free. (Like GDestroyNotify)
No, that cannot happen without breaking binary compatibility,
especially with regards to language bindings.
[@] ebassi [@gmail.com]
gtk-list mailing list