On Tue, Dec 18, 2018 at 01:01:45PM -0500, Adam Tauno Williams wrote:
> I have created, and registered, a custom GObject type [an object].  I
> can place that type into a ListModel: aka model =
> Gtk.ListModel(MyClass).
> 
> One of the advantages of creating a GObject is the whole property
> system - - - and most notably change signals.
> 
> What I have not been able to find is how to connect/map something like
> a Gtk.CellRendererText to a property, such that having a type in a
> model has some advantage [vs. a model like (int, str, str)].  ???

I think you have to use Gtk.TreeViewColumn.set_cell_data_func(), but I
also fail to see any advantages you'd get of doing that instead of using
plain data types in the model.

Marius Gedminas
-- 
Remember the... the... uhh.....
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to