From c214c108bf98591b162f7e306f192a9ca962f3de Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 1 Dec 2008 23:04:17 +0000 Subject: [PATCH] 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! git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8365 cda61777-01e9-0310-a592-d414129be87e --- gtk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk.c b/gtk.c index c17ffe2..5f2ef22 100644 --- a/gtk.c +++ b/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, -- 2.11.0