Date: Wed, 04 May 2005 07:47:06 +0900 (JST) Message-Id: <20050504.074706.126138452.garrigue at math.nagoya-u.ac.jp> To: andrieu at ijm.jussieu.fr Cc: robertr at rftp.com, lablgtk at math.nagoya-u.ac.jp Subject: Re: menu item accelerators? From: Jacques Garrigue In-Reply-To: <20050503.162629.74750000.oandrieu at nerim.net> References: <4273F618.4020802 at rftp.com> <20050503.162629.74750000.oandrieu@nerim.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Olivier Andrieu > > Robert Roessler [Sat, 30 Apr 2005]: > > Or should one build menus from the ground up? This works fine, but > > seems voluminous and will likely lead to higher maintenance effort. > > The GMenu.factory class (GtkItemFactory) is a convenience class for > creating menus IIRC. GMenu.factory is actually unrelated to GtkItemFactory. It's intent was to provide a well-typed approach to the easy construction of menus, which the string-based GtkItemFactory doesn't. If you look at examples, like editor2.ml, you will see that the GMenu.factory approach does not require too much effort. Jacques