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 600876 - Paste keybinding unreliable
Paste keybinding unreliable
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: gnome-2-34
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-05 20:54 UTC by Philip Prindeville
Modified: 2011-03-20 20:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Watch owner-change (2.95 KB, patch)
2011-03-07 15:37 UTC, Michael Terry
none Details | Review

Description Philip Prindeville 2009-11-05 20:54:28 UTC
If I select text with my mouse, then do CTL-SHFT-C, the clipboard gets updated with my text... and I can confirm this by opening gedit and doing CTL-V in that application.

However, if I to CTL-SHFT-C then release C and press V (which keeping CTL & SHFT down) then nothing gets pasted.

Similarly, releasing CTL, SHFT, C and then depressing CTL, SHFT, V also fails to paste.

Selecting from the menu bar "Edit => Paste" works, however.

This is on FC11 (updated), with gnome-terminal-2.26.3.1-1.fc11.x86_64.
Comment 1 Christian Persch 2010-01-05 22:32:40 UTC
Not reproducible here, using gnome-terminal git master and vte git master.
Comment 2 Michael Terry 2011-03-07 15:30:49 UTC
I'm reopening this, as I have reproduction steps:

1) Log into a fresh session
2) Open a gnome-terminal
3) Click on the Edit menu
4) Now try to copy some text and paste it using the keyboard shortcuts. It will copy, but not paste.

The problem is that when first logging in, the clipboard is empty.  When the Edit menu is activated, the clipboard contents are checked and the paste actions are set sensitive or not.

But that's the only time they are checked.  So if you open the Edit menu when there are no contents, the actions are made insensitive until the Edit menu is opened again with contents in the clipboard.

The most sensible fix to me is to not check the clipboard only on Edit menu activation, but rather whenever the clipboard contents change.  I have a patch, which will shortly be attached.
Comment 3 Michael Terry 2011-03-07 15:37:07 UTC
Created attachment 182717 [details] [review]
Watch owner-change
Comment 4 Christian Persch 2011-03-20 20:59:56 UTC
Fixed on master.