Re: Maybe GListModel incorrectness.
- From: Emmanuele Bassi <ebassi gmail com>
- To: "Konstantin P." <ria freelander gmail com>
- Cc: ML-gtk <gtk-list gnome org>
- Subject: Re: Maybe GListModel incorrectness.
- Date: Sun, 25 Sep 2016 12:29:30 +0100
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]