[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TreeView selection?
From: |
Neil Jerram |
Subject: |
Re: TreeView selection? |
Date: |
Fri, 28 Apr 2006 08:31:40 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Neil Jerram <address@hidden> writes:
> How can I find out which row of a TreeView is selected?
>
> So far I have this:
>
> (call-with-values
> (lambda ()
> (get-selected (get-selection treeview)))
> (lambda (model iter)
> iter))
>
> ... which produces:
>
> #<gvalue <gtk-tree-iter> 405fa068>
>
> I then tried adding a gvalue->scm call, to convert this gvalue to what
> I hoped would be the row value, but it appeared to have no effect.
> (In other words, the return value of the gvalue->scm call was still a
> <gvalue ...>.)
Sorry, should have googled a bit more before posting. It looks like the
answer is (gtk-tree-model-get-value model iter COLUMN-INDEX). I'll
post again if this doesn't work.
Neil