GNOME Bugzilla – Bug 738849
Propgate key-press events to view actor
Last modified: 2014-10-20 18:10:51 UTC
Hi, Lets try to propagate the key-press events from a GtkChamplainEmbed to the ChamplainView actor. So that GTK application can pan/zoom using keyboard.
Created attachment 288899 [details] [review] GtkChamplainEmbed: Propagate key-press to view Make sure the GtkChamplainEmbed widget gives focus to the GtkClutterEmbed widget. And also propagates the key press events to the ChamplainView actor.
Created attachment 288900 [details] [review] ChamplainView: Move the key-press event to view Bind the key-press event to the view actor instead of the kinetic_scroll actor. This will allow users of GtkChamplainEmbed to use the pan and zoom bindings from their application.
Created attachment 288902 [details] [review] GtkChamplainEmbed: Propagate key-press to view Make sure the GtkChamplainEmbed widget gives focus to the GtkClutterEmbed widget. And also propagates the key press events to the ChamplainView actor.
Created attachment 288924 [details] [review] GtkChamplainEmbed: Propagate key-press to view Make sure the GtkChamplainEmbed widget gives focus to the GtkClutterEmbed widget. And also propagates the key press events to the ChamplainView actor.
Review of attachment 288900 [details] [review]: LGTM
Review of attachment 288924 [details] [review]: LGTM
I have suspected there was a way to propagate the events - was just a bit lazy to investigate. Thanks for looking into this.