Re: custom TreeModel

Kjell Ahlstedt via gtkmm-list <[email protected]>
Newsgroups gmane.comp.gnome.gtkmm
Message-ID <[email protected]>
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*: [email protected] <mailto:[email protected]>
> *To*: danny <[email protected] 
> <mailto:danny%20%[email protected]%3e>>
> *From*: Kjell Ahlstedt <[email protected] 
> <mailto:Kjell%20Ahlstedt%20%[email protected]%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
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.