GtkTextView and caret moved



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.

Padraig


gtk_text_buffer_mark_set(0x44030, 0xffbed4b0, 0x70868, 0x0, 0xff3e0000, 
0xff3b0b24), at 0xff10260c
gtk_text_buffer_place_cursor(0x44030, 0xffbed558, 0xffbed5f8, 0x11, 0x1,0x70), 
at 0xff1038c4
gtk_text_view_start_selection_drag(0x6fdb0, 0xffbed658, 0xe0398, 0x9, 0x6fdb0, 
0x0), at 0xff136cc8
gtk_text_view_button_press_event(0x6fdb0, 0xe0398, 0x912, 0x2f690, 0x34b24, 
0x0), at 0xff133bc0


gtk_text_buffer_mark_set(0x44030, 0xffbed418, 0x70868, 0x0, 0xffbed538, 0x1), at 
0xff10260c
gtk_text_buffer_set_mark(0x44030, 0x70868, 0x0, 0xffbed538, 0x0, 0x1), at 
0xff102720
gtk_text_buffer_move_mark(0x44030, 0x70868, 0xffbed538, 0x7, 0x7, 0x0), at 
0xff102a00
move_mark_to_pointer_and_scroll(0x6fdb0, 0xff20f348, 0xff20f348, 0x0, 0x43d68, 
0x70), at 0xff136968
gtk_text_view_end_selection_drag(0x6fdb0, 0xe0398, 0x3f578, 0x4c740, 0x3547c, 
0x0), at 0xff136ddc
gtk_text_view_button_release_event(0x6fdb0, 0xe0398, 0x912, 0x2f690, 0x34b24, 
0x0), at 0xff134040





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