Re: how to keep top window from shrinking



Peter Jay Salzman <p dirac org> writes:
> The top level window has a nice default size, EXCEPT when I pack the
> MenuBar into the MainVBox.
> 
> Once MenuBar goes into MainVBox, the main window shrinks to the size of
> the word "File".
> 
> Is this standard behavior?  I know I can force the issue, but I'm
> curious if this behavior is because I'm doing something wrong.
> 

Empty windows are 200x200 or something just to avoid being 0x0. 
Once you put widgets in the window, the window will default to the
minimum size of those widgets. Call gtk_window_set_default_size
(window, 200, 200) if you want the 200x200 back.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]