Re: Gtk3::Gdk::EventKey mappings



Hi;

On 24 June 2015 at 16:03, Torsten Schönfeld <torsten schoenfeld gmx de> wrote:
On 03.03.2015 09:14, Terence Ferraro wrote:

I previously used the global snooper in Gtk2, but due to removed
functionality, I added some code myself into Gtk3.pm to essentially
provide the same functionality.


The key snooper functionality should actually still be available.  But for
some reason, it was marked such that it is not included in bindings by this
commit:

https://git.gnome.org/browse/gtk+/commit?id=374e76a19dac87676995356f6daacb10f4bb6e36

The function is missing a notification argument to free the closure,
so it cannot be wrapped correctly.

You would need a new function that takes a GDestroyNotify argument, but…

So if you want it back, either ask the author of the commit of file a bug
with gtk+:

https://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B

… since the function has been deprecated, a new one that just adds an
argument won't be added.

The key snooping API was added for some accessibility technologies; if
you need to handle key events, you should use the event-related
signals on the appropriate GTK widget.

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[ ] ebassi [ gmail com]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]