Re: Subclassing gtk-list-store
"Andy Chambers" <[email protected]>
| Newsgroups | gmane.lisp.guile.gtk |
|---|---|
| Message-ID | <[email protected]> |
On 5/18/07, Andy Wingo <[email protected]> wrote: > Hi Andy, > > On Thu, 2007-05-17 at 23:06 +0100, Andy Chambers wrote: > > (define <item-defs> (<gtk-list-store>) > > nodelist) > > It would be define-class, of course, and the tree model stuff doesn't > fit terribly well with an inheritance model. See > gtk/gnome/contrib/delay-tree-model.scm for an example of creating a > custom tree model. I thought I might have to do that. I've been trying to work out what types the respective methods are supposed to return. Here's what I believe after reading the code. Is this right? 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) If you just want a list to be displayed, can you just return #f for all the on-* methods involving children/parents? Many Thanks, Andy