X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Thu, 28 Sep 2023 22:29:04 +0200 (CEST) From: Roland Lutz To: "Claudio Fabri (clafi AT gmx DOT com) [via geda-user AT delorie DOT com]" Subject: Re: [geda-user] Paste menu inactive despite copy/cut In-Reply-To: Message-ID: <699b1150-3961-abd7-cf78-80ec92c0a979@grinsen-ohne-katze.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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