[gtkada] Accelerators and popup windows

Emmanuel Briot briot at adacore.com
Fri Apr 1 09:45:33 CEST 2005



Stefan Bellon wrote:
> Is there any Gtk way I'm overlooking how to handle accelerators in
> popup menus of different windows of the same type? To take Gimp a
> non-Ada example: If you press '+', exactly the window with the input
> focus gets zoomed in.


I would connect to the focus_in_event and focus_out_event for all the toplevel 
windows that you open, and keep track of the currently active one this way.
If you are using GtkAda.MDI, you can also easily get that information.

regards,
Emmanuel



More information about the gtkada mailing list