This is the mail archive of the
guile-gtk@sourceware.cygnus.com
mailing list for the Guile project.
Re: about boolean types
- To: Vladimir Tsyshevsky <wowa at jet dot msk dot su>
- Subject: Re: about boolean types
- From: Ariel Rios <ariel at arcavia dot com>
- Date: Tue, 11 Jan 2000 10:31:36 -0600
- Cc: guile-gtk at sourceware dot cygnus dot com
- References: <E12822W-00054e-00@goliath.service.jet.msk.su>
Vladimir Tsyshevsky wrote:
>
> Hi,
>
> many parameters in gtk+ have formal integer type, but are booleans
> really. Nevertheless, all they are mentioned as integer in Scheme
> prototypes. I think, if is not very difficult to introduce 'bool' type
> in guile-gtk to fix this problem.
Boolena types are already included on guile-gtk. Eg,
(define-func gtk_widget_set_sensitive
none
((GtkWidget widget)
(bool sensitive)))
However bool expects scheme values (#t #f) instead of C.
Ariel