Re: Where is the cursor drawing routines for gtktextview?



Hi again,

I just solved problem 1 mentioned below. Question 2 is still
open though, and it is probably a single line of code that I need
to insert somewhere...

Regards,
Dov

On Wed, Mar 12, 2003 at 10:35:09PM +0200, Dov Grobgeld wrote:
> Hello,
> 
> I'm in middle of writing a fix for the bug "Automatic paragraph
> direction according to Unicode BiDi algorithm":
> 
>     http://bugzilla.gnome.org/show_bug.cgi?id=70451
> 
> It is almost finished, but I have two question regarding the cursor
> that I still haven't solved:
> 
>    1. When the text direction becomes RTL and the cursor is 
>       positioned at the first character in the line, the cursor 
>       disappears in the right margin. I have been looking for the
>       code that controls the x-offset of the cursor, but I still
>       haven't found it. Where is it? I guess that there is some
>       code that is looking at the style direction and adjusting
>       the cursor position for RTL. But where is that code?
> 
>    2. Another minor problem is that I am using the keyboard direction
>       as an indicator for the direction of "neutral" lines. Thus, when
>       I am at a neutral line and toggle the keyboard the line direction
>       changes. But the update isn't immediately, but only at the next
>       cursor redraw. How can I do an immediate redraw when the cursor
>       direction changes?
> 
> Thanks,
> Dov
> 
>     
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]