Hi,

I first observed this bug on 64-bit Windows and assumed it was a bug
in Pango on Windows. After I observed the same problem on the latest
version of Ubuntu, I thought it might be a bug in Factor's FFI
instead.

However, it turns out that the explanation is much more mundane. At
some point, the type of a parameter to the
pango_layout_line_index_to_x() call was changed from gboolean to int,
and the documentation on the Pango site (on which I based the Factor
bindings) is now out of date. Fixing our FFI binding seems to have
solved the problem.

I pushed a fix; let me know how it goes.

Slava

On Mon, Apr 13, 2009 at 4:22 AM, Stefan Schmiedl <s...@xss.de> wrote:
> Greetings,
>
> I noticed a somewhat annoying bug in the ui listener on
> my linux box
>
>        Linux g128 2.6.27-gentoo-r7-0312 #2 SMP Thu Mar 12
>        08:55:33 CET 2009 x86_64 Intel(R) Core(TM)2 Duo CPU
>        E8500 @ 3.16GHz GenuineIntel GNU/Linux
>
> Here's what I did:
>
> $ cd factor
> $ git pull
> $ rm boot.*
> $ wget http://factorcode.org/images/latest/boot.unix-x86.64.image
> $ make clean
> $ make
> $ ./factor -i=boot.unix-x86.64.image
> $ ./factor -i=factor.image
>
> Then in the listener window type
>
>        asdf<CTRL-a>
>
> The visible gray selection extends only over "sdf" but internally
> includes the complete line.
>
> Probably related to this is the following misbehavior: Enter
>
>        asdf<LEFT>
>
> The red insertion marker is still displayed after "f" but logically
> positioned correctly between "d" and "f". Moving to the left also
> stops with the visible insertion marker located between "a" and "s".
>
> How should a curious newbie go about digging into the system
> to locate the problem?
>
> Thanks,
> s.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to