Re: gtk_im_context_set_cursor_location() in GtkTextView
- From: Yao Zhang <yzhang sharemedia com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: gtk_im_context_set_cursor_location() in GtkTextView
- Date: Wed, 03 Oct 2001 14:32:26 -0400
Havoc Pennington wrote:
> There is an open bug in bugzilla on this:
>
> http://bugzilla.gnome.org/show_bug.cgi?id=50626
Sorry I didn't realize it is there already.
> The patch there from Hidetoshi has the same problem as yours, it
> updates the spot hint at essentially random times.
I looked at Hidetoshi's code, it seems to me that he set im cursor
location after every gtk_text_layout_draw(). I am trying to set
im cursor location only when the cursor change position, which
I figured the position change will happen at a. button release
event; b. pend_cursor_blink().
> We need to think through exactly what cases will result in the cursor
> location changing, and update the spot hint in response to those
> cases, rather than simply updating it on every event or the like.
I am trying to set im cursor location only when the cursor change
position, which I figured the position change will happen at
a. button release event; b. key in (pend_cursor_blink()).
The only time which I have trouble with is when the TextView
is first created, I don't know how to call
im_context_set_cursor_location().
So the initial im context cursor position is always at a default
location.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]