I have filed https://gitlab.gnome.org/GNOME/gtkmm-documentation/issues/9
On 2019-12-27 14:41, danny wrote:
hi,
on one hand I genuinely feel that there is a real use case for this:
imagine a library that you've written, and you want to show its
results in a gtk treeview, but straight from your result data
structure and not by duplicating the nodes in the treeview itself.
What if the input-output schema of your library is fixed? or suppose
that you're porting it to gtk as an alternative to another gui? People
will struggle with linking their library to the gtk treeview; or in
any case I certainly had a hard time finding out how to get this
working. Yes, this way of adressing the data certainly is complicated,
but that makes an example all the more welcome, no? There is no way
around this kind of custom code, if you want to avoid duplicating your
data, or if your data is constantly changing, for instance.
I also tend to get lost in the documentation for gtk(mm), and for
instance I just did not notice the examples in
gtkmm-documentation/examples/book/custom/custom_treemodelĀ . So an
additional example in the gtkmm/demos does not look superfluous to me.
On the other hand, I don't want to impose, and if you feel there is no
place for my example in the gtkmm demos, then so be it. People really
desperate for an example will now find it in the mailinglist at
"/Date/: Mon, 16 Dec 2019 23:10:45 +0100", I guess...
happy new year,
Danny.
-----Original Message-----
*Date*: Mon, 23 Dec 2019 13:23:20 +0100
*Subject*: Re: custom TreeModel
*Cc*: gtkmm-list@gnome.org <mailto:gtkmm-list@gnome.org>
*To*: danny <danny.van.el...@skynet.be
<mailto:danny%20%3cdanny.van.el...@skynet.be%3e>>
*From*: Kjell Ahlstedt <kjellahlst...@gmail.com
<mailto:kjell%20ahlstedt%20%3ckjellahlst...@gmail.com%3e>>
An alternative would be to add this in a new
gtkmm-documentation/examples/book/custom/custom_treemodel directory in
the gtkmm tutorial. And a description in a new section in the /Custom
Widgets/ chapter (which should then be renamed).
Isn't this kind of custom class that implements one or more interfaces
quite unusual? And a bit more complicated than most of the demos?
There is no corresponding program in gtk/demos. All existing C++ demos
in gtkmm correspond to C demos in gtk.
Kjell
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list