[cells-gtk-devel] tree-view children
ΜΑΡΓΙΟΥΛΑΣ ΒΑΣΙΛΕΙΟΣ
vasilism at sch.gr
Wed Feb 2 18:56:55 UTC 2005
>Peter Denno <peter.denno at nist.gov>:
> Hi,
>
> Does anyone here know how the tree-view widget in the example
> test-gtk/test-tree-view.lisp gets its children? I'd expect that you'd have to
>
> supply it with a function which takes an element of the tree and returns a
> list of its children.
:items initarg takes a list of objects of type family
(see doc/01-Cell-basics.lisp in cells for family documentation)
Objects which subclass family have kids.
In tree-view each kid is a leave (have no kids) or a subtree.
So to use tree-view construct a list of one or more 'root' objects of type
family.
In example code tree-view is used to show the widget hierarchy of demo app
All widgets in cells-gtk subclass family and gtk-app is the main window.
> By the name of it, :items-factory seems to fit that
> description, but apparently it only provides the printed representation.
Right, it only provides the printed representation.
-------------------------------------------------
This mail sent through Greek School Network: http://www.sch.gr/
Το μήνυμα εστάλη μέσω του Πανελλήνιου Σχολικού Δικτύου: http://www.sch.gr/
More information about the cells-gtk-devel
mailing list