mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Add missing call to gtk_selection_clear_targets(), without which the
list of selection targets offered by GTK Puzzles grows an extra copy of each of the three supported text formats every time the user makes a selection! [originally from svn r8365]
This commit is contained in:
1
gtk.c
1
gtk.c
@ -1244,6 +1244,7 @@ void write_clip(frontend *fe, char *data)
|
||||
|
||||
if (gtk_selection_owner_set(fe->area, GDK_SELECTION_PRIMARY,
|
||||
CurrentTime)) {
|
||||
gtk_selection_clear_targets(fe->area, GDK_SELECTION_PRIMARY);
|
||||
gtk_selection_add_target(fe->area, GDK_SELECTION_PRIMARY,
|
||||
GDK_SELECTION_TYPE_STRING, 1);
|
||||
gtk_selection_add_target(fe->area, GDK_SELECTION_PRIMARY,
|
||||
|
Reference in New Issue
Block a user