[10146] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Menu Accelerators
daemon@ATHENA.MIT.EDU (Owen Taylor)
Sun Nov 15 22:32:01 1998
To: Federico Mena Quintero <federico@nuclecu.unam.mx>
Cc: gtk-list@redhat.com
From: Owen Taylor <otaylor@redhat.com>
Date: 15 Nov 1998 22:32:19 -0500
In-Reply-To: Federico Mena Quintero's message of "Sun, 15 Nov 1998 22:22:49 -0500"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Federico Mena Quintero <federico@nuclecu.unam.mx> writes:
> > Is there any way to bind an accelerator to show a submenu? I want
> > to be able to hit ^f or meta-f and have the file menu pop up, kinda
> > like m$-windows. I've been trying to work it into the gnome menu
> > thing, which is just an overlay for gtk's menu factory, but so far
> > nothing has worked :/
>
> GnomeAppHelper already supports this. When you want an underlined
> accelerator key, just put a "_" before the letter you want
> underlined. So you would have the "_File" menu, the "Save _as..."
> item, etc.
Let me point out that this is also supported by the standard
GtkItemFactory, present in the development GTK+-1.1 series.
(GNOME also requires GTK+-1.1)
Regards,
Owen
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null