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 748863 - Cut/Copy/Paste are active while they shouldn't
Cut/Copy/Paste are active while they shouldn't
Product: gtk+
Classification: Platform
Component: .General
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Reported: 2015-05-04 04:12 UTC by sworddragon2
Modified: 2016-03-06 02:24 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description sworddragon2 2015-05-04 04:12:41 UTC
In several GTK+2 and GTK+3 applications I'm seeing that some of the entries Cut, Copy and Paste are active while they shouldn't. For example directly after booting the system especially the entry Paste is active in many applications. Maybe there could be a check if something to cut/copy is selected and if content is available in the clipboard to paste.
Comment 1 Paolo Borelli 2015-05-04 11:06:18 UTC
You need to report this against each specific application, it is not something that can be fixed generically at the GTK level. The application needs to track the selection/clipboard status and disable those actions.

I am closing this bug, but please file bugs against applications with this problem.
Comment 2 sworddragon2 2015-05-09 09:44:36 UTC
A short time after this report I have also noticed that the context menu on input fields (opened with a right mouse click) shows the entry "Select All" even if the input field is empty. In this ticket ( ) I have got the information that this is caused by GTK+.
Comment 3 Matthias Clasen 2015-05-11 14:27:17 UTC
I don't think there is much harm in having select all enabled for an empty string. But I don't see that happening here - we have code that handles precisely this case:

     menuitem = gtk_menu_item_new_with_mnemonic (_("Select _All"));
      gtk_widget_set_sensitive (menuitem, gtk_entry_buffer_get_length (info_entry_priv->buffer) > 0);
Comment 4 sworddragon2 2015-05-11 15:28:27 UTC
Is this GTK+2 or GTK+3 code? If I'm not wrong I have seen the "Select All" issue only in GTK+2.
Comment 5 Matthias Clasen 2015-05-11 20:22:54 UTC
Comment 6 Matthias Clasen 2016-03-06 02:24:03 UTC
not going to change this in gtk 2