On Sat, 2005-11-26 at 14:29 +0000, John Cupitt wrote: > Hi again, > > It works with hand-made menus too. You need to have an accel group and > path for each item. > > I make one accel group per top-level window, then attach each item in > that window which might have an accelerator to that group. The path > names each item (eg. "<main_window>/File/Open") soGTK can save and > restore accelerators correctly. > > Here's my app's code for menu items: > > http://cvs.sourceforge.net/viewcvs.py/vips/nip2-7.11/src/toolview.c?rev=1.1.1.1&view=markup > > and for menus: > > http://cvs.sourceforge.net/viewcvs.py/vips/nip2-7.11/src/toolkitview.c?rev=1.1.1.1&view=markup > > There's more stuff in there for building menu trees which hang off UI > manager trees, don't know if that's useful for you. > > John
hmm, I have not been setting a path for my menus.. I guess that must be my problem, this will require some code-rethinking.. It looks like the easiest way out though! Thanks for the help and the code snippets! Now back to work... -- Daniel Pekelharing <[EMAIL PROTECTED]> _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list