This is the mail archive of the
guile-gtk@sourceware.cygnus.com
mailing list for the Guile project.
Re: about boolean types
- To: ariel at arcavia dot com
- Subject: Re: about boolean types
- From: "Владимир Цишевский" <wowa at jet dot msk dot su>
- Date: Wed, 12 Jan 2000 11:10:22 +0300
- CC: guile-gtk at sourceware dot cygnus dot com
>
>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
>
True. But I accidently bumped into one of the following
definitions, in which the parameters still defined as having type 'int'
(the definitions below are corrected already):
(define-func gtk_aspect_frame_new
GtkWidget
((string label)
(float xalign)
(float yalign)
(float ratio)
(bool obey_child)))
(define-func gtk_aspect_frame_set
none
((GtkAspectFrame aspect_frame)
(float xalign)
(float yalign)
(float ratio)
(bool obey_child)))
(define-func gtk_progress_set_show_text
none
((GtkProgress progress)
(bool show_text)))
(define-func gtk_progress_set_activity_mode
none
((GtkProgress progress)
(bool activity_mode)))
(define-object GtkPlug (GtkWindow)
(fields
(GdkWindow socket_window)
(bool same_app)))
Regargs,
Vladimir V. Tsychevski
senior expert
-----------------------------------------------------
Jet Infosystems
Krasnoproletarskaya 6, Tel. (+7 095) 972-1182
Moscow 103006, Russia Fax (+7 095) 972-0791
-----------------------------------------------------
Any opinions or recommendations herein are those of
the author and not of his computer.