To: maxence.guesdon at inria.fr Cc: lablgtk at kaba.or.jp Subject: Re: Menu accelerators In-Reply-To: <3BCDDF80.2050200 at inria.fr> References: <3BCDDF80.2050200 at inria.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011018171521K.garrigue at kurims.kyoto-u.ac.jp> Date: Thu, 18 Oct 2001 17:15:21 +0900 From: Jacques Garrigue Lines: 18 From: Maxence Guesdon > I can't add 'alt'-accelerators to menus, such that for example the first > letter of my 'File' submenu would be underlined and Alt-F would pop > this menu. By the way, i can't add 'alt'-accelerators (with `Mod...), > but the ones with `Control works fine. Accelerators with `MOD1 work perfectly with me. You just have to add ~accel_modi:[`MODI] when you build your GMenu.factory. let factory = new GMenu.factory file_menu ~accel_modi:[`MOD1] ~accel_group For the problem of the file submenu, I don't know. Apparently you cannot add accelerator to a menubar, only to real menus, but why? It doesn't work either with `CONTROL. Cheers, Jacques Garrigue