diff options
| author | Simon Tatham <anakin@pobox.com> | 2008-12-01 23:04:17 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2008-12-01 23:04:17 +0000 |
| commit | ba08d8ab28cb26cf3f743acf0e9c9df13bbb5d3e (patch) | |
| tree | aa01b1fc8c376abcc51428fb899f1db860ea70c9 | |
| parent | ec38952c4c8e924c1c89ad5b934c6b8e70ce4102 (diff) | |
| download | puzzles-ba08d8ab28cb26cf3f743acf0e9c9df13bbb5d3e.zip puzzles-ba08d8ab28cb26cf3f743acf0e9c9df13bbb5d3e.tar.gz puzzles-ba08d8ab28cb26cf3f743acf0e9c9df13bbb5d3e.tar.bz2 puzzles-ba08d8ab28cb26cf3f743acf0e9c9df13bbb5d3e.tar.xz | |
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]
| -rw-r--r-- | gtk.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |