[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: text from GList item?
From: |
Kevin Ryde |
Subject: |
Re: text from GList item? |
Date: |
Sat, 09 Dec 2006 06:41:52 +1100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Paul Emsley <address@hidden> writes:
>
> I want to get to the text/string of the list of items in a combo-box:
> So, it is not clear to me what I should substitute for xxx in the
> following... can you help?
>
> (let ((combo-list (gtk-combo-list my-combo-box)))
> (let ((children (gtk-container-children combo-list)))
> (map (lambda (c) (format #t "~s~%" (xxx c)))
> children)))
I think the children are GtkListItem's, each of which has a single
GtkLabel child, so
(define (xxx c)
(gtk-label-get (car (gtk-container-children c))))
(Or gtk-bin-get-child in gtk 2.)