Re: stklos bug?

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Fri, 19 Sep 1997 22:06:59 +0200

Andrew Dorrell writes:
> Hi,
>
> I my recent toying with the canvas widget I have noticed the following
> unusual behaviour which I believe to be a bug: The scroll-region in a
> canvas is a list coordinates. Using STklos you can set it using:
>
> (set! (scroll-region my-canvas) '(0 0 100 100)) ; For example
>
> But when you read it you get back the string
>
> (scroll-region my-canvas) ==> " 0 0 100 100 "
>
> Perhaps the leading space is fooling the Tk/scheme interface? I have
> found this behaviour in both 3.0 and 3.1 (linux gcc - though I don't
> believe this is really relevant here)
>

This is clearly a bug. It is no the leading space which is the cause. In fact,
Tk options are, in some, extent typed. The type for the scroll-region is set
to string which is obviously false. It should be a list. I think this is the
only option in the toolkit which is a list, and support for such beast has to
be written. I will correct it for next release.

                -- Erick
Received on Fri Sep 19 1997 - 22:22:36 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST