[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: GtkTreeModel



Joshua N Pritikin <vishnu@pobox.com> writes:
> Is the new GtkTree stuff in 1.3.6 actually working? 

Mostly. ;-)
 
> Is the data of GtkTreeIter model-defined?

I believe so, yes.
 
> Huh?  Obviously i can dig through the code, but a working example
> would be great.
> 

First, note that you don't have to write a model; GtkListStore and
GtkTreeStore are prebuilt models. Though I think in many cases,
assuming GObject doesn't frighten you too much, writing a model will
result in more maintainable code and also less bloat.

>From this, it follows that GtkListStore and GtkTreeStore are example
model implementations you can copy.

Also, there are several examples in demos/ and tests/ that come with
GTK. For example the "stock browser" in gtk-demo.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]