From mboxrd@z Thu Jan 1 00:00:00 1970 From: "÷ÌÁÄÉÍÉÒ ãÉÛÅ×ÓËÉÊ" To: ariel@arcavia.com Cc: guile-gtk@sourceware.cygnus.com Subject: Re: about boolean types Date: Wed, 12 Jan 2000 00:10:00 -0000 Message-id: References: <387B5AE8.3EF20A65@arcavia.com> X-SW-Source: 2000-q1/msg00007.html > >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.