On Fri, 2009-10-23 at 18:24 +0200, Piñeiro wrote: > In order to resolve bug 1852 [1] I would require a equivalent > functionality to gtk_key_snooper_install [2]. > > A direct solution would be just connect to "key-press-event" and > "key-release-event" on the stage (and in any other stages that would > appear), and simulate this function in the callback. > > This is not exactly the same, but I think that the functionality would > be really equivalent (if I don't miss any detail, this is my first > idea).
yes: using ClutterStageManager and its ::stage-added and ::stage-removed signals to connect and disconnect a ::captured-event to filter out the key events would be the equivalent. I'm not entirely sold on adding a key-snooper API, since it would only be useful for A11Y, and because Clutter already provides a way to achieve the same functionality using public API. ciao, Emmanuele. -- To unsubscribe send a mail to [email protected]
