Re: Displaying domain objects with GtkTreeView

2011-12-06 Thread Stefan Sauer
On 12/02/2011 03:55 PM, Rafał Krupiński wrote: > 2011/12/1 David Nečas : >> What are you talking about? You can pass any GObject-derived type as >> the column type (not that it matters much, the net result is the same as >> passing G_TYPE_OBJECT). You get back the objects that you stored there. >

Re: Displaying domain objects with GtkTreeView

2011-12-02 Thread Edheldil
On 12/02/2011 04:01 PM, David Nečas wrote: > On Fri, Dec 02, 2011 at 03:55:51PM +0100, Rafał Krupiński wrote: >> I rather meant to use my object as a model for a whole, multi-column >> row, somehow binding fields or properties to columns. > It makes no sense (to me anyway) to imagine one object as

Re: Displaying domain objects with GtkTreeView

2011-12-02 Thread David Nečas
On Fri, Dec 02, 2011 at 03:55:51PM +0100, Rafał Krupiński wrote: > I rather meant to use my object as a model for a whole, multi-column > row, somehow binding fields or properties to columns. It makes no sense (to me anyway) to imagine one object as multiple *model* columns. But it is easy to cre

Re: Displaying domain objects with GtkTreeView

2011-12-02 Thread Rafał Krupiński
2011/12/1 David Nečas : > What are you talking about?  You can pass any GObject-derived type as > the column type (not that it matters much, the net result is the same as > passing G_TYPE_OBJECT).  You get back the objects that you stored there. > > If you store objects of different classes to the

Re: Displaying domain objects with GtkTreeView

2011-12-01 Thread David Nečas
On Thu, Nov 24, 2011 at 04:30:25PM +0100, Rafał Krupiński wrote: > How do I display list of custom objects in GtkTreeView? > GtkTreeView takes GtkListStore as a model, but it doesn't allow custom > objects, only list of gobjects. > > On the other hand, when I want to read list's selection all I ge

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński : > On 28.11.2011 14:17, Tristan Van Berkom wrote: >> >> 2011/11/28 Rafał Krupiński: >>> >>> Hi all! >>> >>> How do I display list of custom objects in GtkTreeView? >>> GtkTreeView takes GtkListStore as a model, but it doesn't allow custom >>> objects, only list of gobjec

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński : > Hi all! > > How do I display list of custom objects in GtkTreeView? > GtkTreeView takes GtkListStore as a model, but it doesn't allow custom > objects, only list of gobjects. What could that possibly mean ? If you have custom derived GObjects, you can certainly popu