Mail Archives: geda-user/2023/09/28/16:30:44
Hi Claudio,
On Mon, 25 Sep 2023, Claudio Fabri (clafi AT gmx DOT com) [via
geda-user AT delorie DOT com] wrote:
> gschem doesn't seem to be able to paste anymore. I can Cut (Ctrl+X) or
> copy (Ctrl+C) but the "Paste" menu is always disabled/inactive. Pressing
> Ctrl+V does nothing at all. I've noticed that a few days ago. I have
> cleaned yay cache and recompiled geda-gaf again but it doesn't solve the
> problem.
the Edit/Paste action is enabled or disabled based on whether the
clipboard contents support the MIME type "application/x-geda-schematic".
Apparently, this isn't detected correctly on your machine. Do you use a
clipboard manager or something similar?
The easiest fix would be to force the action active by replacing
gschem_action_set_sensitive (action_clipboard_paste, usable, w_current);
with
gschem_action_set_sensitive (action_clipboard_paste, TRUE, w_current);
in gschem/src/x_clipboard.c . This will fail if the clipboard contents
don't adhere to the "application/x-geda-schematic" MIME type, though, so
it won't work if the problem is with cut/copy or if your clipboard
contents are garbled by another application or tool.
Roland
- Raw text -