[9250] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: menu accelerators
daemon@ATHENA.MIT.EDU (Federico Mena Quintero)
Tue Oct 13 15:20:27 1998
Date: Tue, 13 Oct 1998 15:18:21 -0400
From: Federico Mena Quintero <federico@nuclecu.unam.mx>
To: padraig@turing.idc.ul.ie
CC: gtk-list@redhat.com
In-reply-to: <Pine.LNX.3.96.981013194416.4493M-100000@turing.idc.ul.ie>
(padraig@turing.idc.ul.ie)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
> I had a look at the 2 examples in the gtk tutorial. One is called 'the
> hard way' and one is called 'the easy way'. it shows you how to add
> accelerators in the easy method, but not in the hard method, and it
> doesn't seem to be transferable to the hard method. I want to use the hard
> way, partly because it's 'the hard way' :-), and partly because I may want
> to put pixmaps in the menu at some stage. I also want to use accelerators.
> (I want it all goddamit!).
The Gnome libraries have a very nice framework for this in the
gnome-app-helper module. You basically create an array of structures
that describe your menu (with pixmaps and all), and they will create
the widgets with accelerators for you.
Federico
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null