www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2023/09/28/16:30:44

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 <rlutz AT hedmen DOT org>
To: "Claudio Fabri (clafi AT gmx DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Paste menu inactive despite copy/cut
In-Reply-To: <trinity-4027d1e1-b7f6-423d-96b5-eb4dee74d182-1695651824533@3c-app-mailcom-bs07>
Message-ID: <699b1150-3961-abd7-cf78-80ec92c0a979@grinsen-ohne-katze.de>
References: <trinity-4027d1e1-b7f6-423d-96b5-eb4dee74d182-1695651824533 AT 3c-app-mailcom-bs07>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019