Message-ID: <43A1E075.8090109 at rftp.com> Date: Thu, 15 Dec 2005 13:30:29 -0800 From: Robert Roessler Organization: Robert's High-performance Software MIME-Version: 1.0 To: LablGTK List Subject: Re: Question about class ui_manager? References: <43A165E2.1020806 at rftp.com> <20051215.225622.95506504.garrigue at math.nagoya-u.ac.jp> In-Reply-To: <20051215.225622.95506504.garrigue at math.nagoya-u.ac.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jacques Garrigue wrote: > From: Robert Roessler > >> I am trying to use the method "add_ui" in the ui_manager class to add >> a separator element. >> >> It looks to me like the "name" parameter should be handled like the >> action parameter - they both should be of type "string option", >> allowing the name to not be present as is already allowed by the action. > > In the documentation, action can be NULL, but nothing is said about > name. > If you look the source code, you will see that the function starts > with: > g_return_if_fail (name != NULL); > > So clearly you have to pass a meaningful name... So either this particular part of the API is not able to properly add separator elements to the ui (which seems unlikely - `SEPARATOR is an allowed value for type), or there is some "magic" string value I need to use in this case? BTW, are you referring to the GTK source code, or to your binding? The "add_ui" binding has an ML_7() immediately followed by an ML_bc7() - I know these are C macros "generating" your interface for you, but this is more cryptic...make that condensed than usual. ;) Robert Roessler robertr@rftp.com http://www.rftp.com