Re: Maybe GListModel incorrectness.



Hi;

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 gmail com> 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.
-- https://developer.gnome.org/gio/stable/GListModel.html

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.

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]