mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Add missing call to gtk_selection_clear_targets(), without which the
list of selection targets offered by GTK PuTTY/pterm grows an extra copy of each of the three supported text formats every time the user makes a selection! [originally from svn r8364]
This commit is contained in:
parent
5d0d5e0466
commit
5fec8bd897
@ -1640,6 +1640,7 @@ void write_clip(void *frontend, wchar_t * data, int *attr, int len, int must_des
|
||||
|
||||
if (gtk_selection_owner_set(inst->area, GDK_SELECTION_PRIMARY,
|
||||
inst->input_event_time)) {
|
||||
gtk_selection_clear_targets(inst->area, GDK_SELECTION_PRIMARY);
|
||||
gtk_selection_add_target(inst->area, GDK_SELECTION_PRIMARY,
|
||||
GDK_SELECTION_TYPE_STRING, 1);
|
||||
if (inst->pasteout_data_ctext)
|
||||
|
Loading…
Reference in New Issue
Block a user