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 Chambers
Subject: Re: Subclassing gtk-list-store
Date: Sun, 20 May 2007 01:07:09 +0100

On 5/18/07, Andy Wingo <address@hidden> 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




reply via email to

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