guile-gtk-general
[Top][All Lists]
Advanced

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

Re: Subclassing gtk-list-store


From: Andy Wingo
Subject: Re: Subclassing gtk-list-store
Date: Sun, 20 May 2007 16:35:24 +0200

Hi Andy,

So, contrary to my previous suggestion ;), I suggest you just use the
existing list store. There's no need to subclass it. I have written
loads of programs with pygtk and never needed to use their custom model
facilities, which this code is based off of; I think you probably don't
need it either.

That said...

On Sun, 2007-05-20 at 01:07 +0100, Andy Chambers wrote:
> on-get-columns                ;; number
> on-get-column-type          ;; gtype
> on-get-iter                        ;; #f (after setting up iter to
> point at the root node)
> on-get-path                      ;; list representing a path
> on-get-value                     ;; value at iter's node
> on-iter-next                      ;; the iter (after altering the iter
> to point to the next sibling)

See http://www.pygtk.org/pygtk2tutorial/sec-GenericTreeModel.html,
except for the note about get-flags. The interface offered by the
generic tree model is slightly different from that of the C interfaces.

Regards,

Andy.
-- 
http://wingolog.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]