Re: GtkTextView and caret moved



"Padraig O'Briain" <Padraig Obriain Sun COM> writes:
> For accessibility support, we are trying to determine when the caret has moved 
> in GtkTextView.
> 
> We are connecting to the "mark_set" signal on the GtkTextBuffer and checking 
> that the mark is "insert".
> 
> We have noticed that we get two notifications of caret moved, one is generated 
> when gtk_text_view_button_press_event() is called and the other is generated 
> when gtk_text_button_release_event() is called when the mouse is clicked in the 
> text.
> 
> Is this a bug? If so, I will open a bug in bugzilla.
> 

I don't consider it a bug really, though it's a possible optimization.
There's no guarantee about how often, etc. mark_set will be called.

Havoc




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