Fix middle button pasting in the TextView (#81880, reported by Evert
Sat Mar 13 02:55:51 2004 Matthias Clasen <maclas@gmx.de> Fix middle button pasting in the TextView (#81880, reported by Evert Verhellen, patch by Paolo Borelli): * gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve the insert mark and move the cursor to it making sure of also scroll the window if needed. * gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark to the insertion point.
This commit is contained in:

committed by
Matthias Clasen

parent
3186b9e76b
commit
fff3885193
@ -2936,6 +2936,8 @@ pre_paste_prep (ClipboardRequest *request_data,
|
||||
if (gtk_text_buffer_get_selection_bounds (buffer, &start, &end))
|
||||
*insert_point = start;
|
||||
}
|
||||
|
||||
gtk_text_buffer_move_mark_by_name (buffer, "insert", insert_point);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user