[gtkada] Re: Accelerators and popup windows
Stefan Bellon
sbellon at sbellon.de
Fri Apr 1 19:53:09 CEST 2005
Emmanuel Briot wrote:
> 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.
Yes, that's basically what I've done in the meantime. Thanks for the
reply.
--
Stefan Bellon
More information about the gtkada
mailing list