GNOME Bugzilla – Bug 548492
gedit clears PRIMARY clipboard
Last modified: 2009-05-28 23:01:06 UTC
Please describe the problem: When selecting text in gedit, it is stored in PRIMARY clipboard. When unselecting the text, it clears the PRIMARY clipboard. Most other GNOME applications don't clear PRIMARY when unselecting text, and it seems much more sensible to keep PRIMARY clipboard's content until new content is placed there. Steps to reproduce: 1. Select some text 2. Left-click anywhere in the editor to unselect the text 3. Middle-click somewhere in the editor Actual results: Nothing. Expected results: The text that was selected in step 1 should be inserted. Does this happen every time? Other information: To see the behaviour I'd expect from gedit, see most other GNOME applications, e.g. Evolution's mail editor, gnome-terminal and others.
I agree, but that's GtkTextView behavior (no idea if it is intentional or a simply bug).
I vote that it is a bug, it makes PRIMARY nearly useless in gtk applications. It was probably taken as a slightly too literal interpretation of the clipboard spec (http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt) which says that "PRIMARY is the current selection." Traditional behavior has been that PRIMARY is never cleared, merely overwritten.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 333514 ***