Where is the cursor drawing routines for gtktextview?



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

    



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