After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 548492 - gedit clears PRIMARY clipboard
gedit clears PRIMARY clipboard
Status: RESOLVED DUPLICATE of bug 333514
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-08-19 17:36 UTC by Frederik Elwert
Modified: 2009-05-28 23:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Frederik Elwert 2008-08-19 17:36:58 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.
Comment 1 Paolo Borelli 2008-08-19 18:43:54 UTC
I agree, but that's GtkTextView behavior (no idea if it is intentional or a simply bug).
Comment 2 Dean Serenevy 2009-03-15 20:22:07 UTC
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.
Comment 3 Margarita Manterola 2009-05-28 23:01:06 UTC
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 ***