Re: Stop plots eating events
James Steward <[email protected]> Thu, 13 Oct 2011 14:49:50 +1100
| Newsgroups | gmane.comp.scigraphica.gtkextra |
|---|---|
| Message-ID | <[email protected]> |
James Steward wrote: > How do I do this? > > I want to receive key press and release events, as well as left button > (button 1) press and release events. > > Once the plot is first displayed I can get key press and release events, > as well as scroll wheel events. > > If I left click inside the plot area, from then on key press events do > not happen, but key release still gets to my app. > > Left click events never get through, but scroll and right or middle > clicks do. > > It seems the plot is swallowing the left click and key press events. > > Can I configure it not to? > I suppose I could comment out lines in gtkplotcanvas.c; widget_class->motion_notify_event = gtk_plot_canvas_motion; widget_class->button_press_event = gtk_plot_canvas_button_press; widget_class->button_release_event = gtk_plot_canvas_button_release; widget_class->key_press_event = gtk_plot_canvas_key_press; Or set to NULL in my code. Regards, James. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct