caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Robert Roessler <roessler@rftp.com>
To: caml-list@inria.fr
Cc: LablGTK List <lablgtk@math.nagoya-u.ac.jp>
Subject: Re: [Caml-list] Fixed GMenu?
Date: Wed, 07 Mar 2007 00:42:12 -0800	[thread overview]
Message-ID: <45EE7AE4.5080703@rftp.com> (raw)
In-Reply-To: <d0fbb16b0703061548i1999f959vaf750c988a94ca45@mail.gmail.com>

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


  reply	other threads:[~2007-03-07  8:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06 23:48 Ewen Maclean
2007-03-07  8:42 ` Robert Roessler [this message]
2007-03-07  9:45 ` [Caml-list] " Vu Ngoc San

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45EE7AE4.5080703@rftp.com \
    --to=roessler@rftp.com \
    --cc=caml-list@inria.fr \
    --cc=lablgtk@math.nagoya-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).