Message-ID: <45EE7AE4.5080703 at rftp.com> Date: Wed, 07 Mar 2007 00:42:12 -0800 From: Robert Roessler MIME-Version: 1.0 To: caml-list at inria.fr CC: LablGTK List Subject: Re: [Caml-list] Fixed GMenu? References: In-Reply-To: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Length: 968 Ewen Maclean wrote: > I am currently adding a GMenu.menu_bar to a vbox within a window. The > problem is that when I resize the window the menu bar also resizes > proportionately. Is there a way of fixing the height so that it doesn't > resize when the window resizes? > > Many thanks in advance I do this a little differently - and don't have your problem. I use add_ui_from_string on a "UI manager" instance (from GAction.ui_manager ()), since building up a menu bar and dropdowns seemed easier this way. Then I build up an hbox with the resulting menu widget and a couple of other controls and pack *that* into the vbox, followed by the rest of my window contents and status bar widget. In any case, the undesirable menu bar resizing does not occur for me. Finally, you might check out the LablGTK mailing list (there is one) in the cc list, as they are a little more focused on things LablGTK. Robert Roessler roessler@rftp.com http://www.rftp.com