From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 1DCA0BC69 for ; Wed, 7 Mar 2007 09:42:46 +0100 (CET) Received: from smtp114.sbc.mail.mud.yahoo.com (smtp114.sbc.mail.mud.yahoo.com [68.142.198.213]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l278giDq029015 for ; Wed, 7 Mar 2007 09:42:45 +0100 Received: (qmail 79138 invoked from network); 7 Mar 2007 08:42:43 -0000 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@69.230.225.24 with plain) by smtp114.sbc.mail.mud.yahoo.com with SMTP; 7 Mar 2007 08:42:43 -0000 X-YMail-OSG: SC5j2TAVM1l87S88mlTqIFaR.w1Wdj4KHB6mGKoTL7yZ4lJttn5IW1PfW5TcgjdUe_smqx_v_t2R8CleEWvFq98WgSNYHZ0w1Kep0sa07vc.OmafmNlurSk._VBm95KE1rjr0CsSoSmkUKQ- Message-ID: <45EE7AE4.5080703@rftp.com> Date: Wed, 07 Mar 2007 00:42:12 -0800 From: Robert Roessler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070305 Mnenhy/0.7.4.0 SeaMonkey/1.5a MIME-Version: 1.0 To: caml-list@inria.fr Cc: LablGTK List Subject: Re: [Caml-list] Fixed GMenu? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 45EE7B04.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; gmenu:01 gmenu:01 vbox:01 hbox:01 vbox:01 lablgtk:01 lablgtk:01 height:98 wrote:01 caml-list:01 widget:02 widget:02 string:02 problem:05 problem:05 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