GNOME Bugzilla – Bug 748863
Cut/Copy/Paste are active while they shouldn't
Last modified: 2016-03-06 02:24:03 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.
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.
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 ( https://bugzilla.gnome.org/show_bug.cgi?id=749002 ) I have got the information that this is caused by GTK+.
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);
Is this GTK+2 or GTK+3 code? If I'm not wrong I have seen the "Select All" issue only in GTK+2.
not going to change this in gtk 2