Re: [gtk-osx-users] About copy & paste
- From: John Ralls <jralls ceridwen us>
- To: Gabriele Greco <gabrielegreco gmail com>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] About copy & paste
- Date: Tue, 5 Jun 2018 10:14:50 -0700
On Jun 5, 2018, at 7:38 AM, Gabriele Greco <gabrielegreco gmail com> wrote:
Hi guys,
There is a "clean" way to allow copy & paste on GtkEntry/GtkTextView on the OSX GTK version at least ALSO
with CMD-C & CMD-V ?
I've done something that almost work using a keyboard snooper but I do not like it at all...
Unless you’re using a very old version of Gtk--more than 5 or 6 years--for some strange reason
it should Just Work *with out-of-the-box GtkEntry/TextView*. If the code using the widgets has overridden the
bindings to <control>C and <control>V then you’ll have to patch it.
In C you can use GDK_MODIFIER_INTENT_PRIMARY_ACCELERATOR instead of GDK_CONTROL_MASK. GtkBuilder got a
<primary> modifier in 3.20 that does the same thing, but Glade neither understands it nor uses it. Worse,
Glade gets it completely wrong by having a radio choice for “primary” modifier but inserting <control> in
response.
Regards,
John Ralls
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]