GNOME Bugzilla – Bug 356106
Paste option in context menu is always disabled
Last modified: 2006-09-16 14:39:14 UTC
Hi, this bug was reported in launchpad here: https://launchpad.net/distros/ubuntu/+source/gcalctool/+bug/60105 " If I copy a number in another program and try to paste it on the calculator (right click -> paste), the menu is mostly disabled. But if I go to "edit" -> "paste", all works ok. I think that it should work from the contextual menu too.. ctrl-C ctrl-V work, but not shift-canc shift-ins. " bug 317786 is somewhat similar.
The text area context menu is mostly inactive because that text area is set to be not editable (i.e. read-only). This is because as the user types things into the calculator, we append them to the end of the display (except for Backspace and Delete which are special cases) or expand them into specific commands (e.g 'K' turns into "Sin("). We don't want the user just randomly editing the display. Now once you select something in the display (either via "Select All" or by highlighting something my dragging the mouse), then the Copy menu item is activated. You can also paste something into the display area using the middle mouse button. The Copy/Paste menu items in the Edit menu also work as you mention (plus Control-C and Control-V). There are no plans to change any of this. Bug 317786 is different (I believe). It refers to the menu items in the Edit menu. I'm closing this one as NOTABUG.
Just to clarify: is the paste context menu item ever usable?
No it's not. This is code in Gtk+ that always makes the Paste menu item insensitive if the text area is read-only.