This is the mail archive of the guile-gtk@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: about boolean types


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]