[10145] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Menu Accelerators
daemon@ATHENA.MIT.EDU (Federico Mena Quintero)
Sun Nov 15 22:23:51 1998
Date: Sun, 15 Nov 1998 22:22:49 -0500
From: Federico Mena Quintero <federico@nuclecu.unam.mx>
To: gtk-list@redhat.com
In-reply-to: <m0zf6l5-000DH2C@shells.clipboard.com>
(br0ke@shells.clipboard.com)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
> 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.
There is a small example of using GnomeAppHelper in the test-gnome
program (gnome-libs/test-gnome/testgnome.c).
Federico
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null