caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Fixed GMenu?
@ 2007-03-06 23:48 Ewen Maclean
  2007-03-07  8:42 ` [Caml-list] " Robert Roessler
  2007-03-07  9:45 ` Vu Ngoc San
  0 siblings, 2 replies; 3+ messages in thread
From: Ewen Maclean @ 2007-03-06 23:48 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

Hello,

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

Ewen

[-- Attachment #2: Type: text/html, Size: 310 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Fixed GMenu?
  2007-03-06 23:48 Fixed GMenu? Ewen Maclean
@ 2007-03-07  8:42 ` Robert Roessler
  2007-03-07  9:45 ` Vu Ngoc San
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Roessler @ 2007-03-07  8:42 UTC (permalink / raw)
  To: caml-list; +Cc: LablGTK List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Fixed GMenu?
  2007-03-06 23:48 Fixed GMenu? Ewen Maclean
  2007-03-07  8:42 ` [Caml-list] " Robert Roessler
@ 2007-03-07  9:45 ` Vu Ngoc San
  1 sibling, 0 replies; 3+ messages in thread
From: Vu Ngoc San @ 2007-03-07  9:45 UTC (permalink / raw)
  To: Ewen Maclean; +Cc: caml-list

I suspect the following:

use

  let menubar = GMenu.menu_bar ~packing:vbox#pack () in (*.........*)

instead
  of .... #add

San


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-07  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-06 23:48 Fixed GMenu? Ewen Maclean
2007-03-07  8:42 ` [Caml-list] " Robert Roessler
2007-03-07  9:45 ` Vu Ngoc San

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).