Date: Wed, 22 Mar 2006 22:07:23 +1100 From: Erik de Castro Lopo To: lablgtk at math.nagoya-u.ac.jp Subject: Re: Box packing Message-Id: <20060322220723.67935a2f.erikd at mega-nerd.com> In-Reply-To: <17441.11479.188490.759314 at karryall.dnsalias.org> References: <20060322192654.172c7ea3.ocaml-erikd at mega-nerd.com> <20060322211822.7cc2e774.ocaml-erikd@mega-nerd.com> <17441.11479.188490.759314@karryall.dnsalias.org> Organization: Erik Conspiracy Secret Labs x-gpg-fingerprint: 7357 1E85 C19F 4281 D8C9 7AA8 6CA4 1A77 43B8 D6C8 x-gpg-key: 43B8D6C8 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Content-Length: 891 Olivier Andrieu wrote: > Right: > > - don't use #add for packing in boxes, you can't control the options: > #add happens to use expand:true and fill:true, you usually don't want > that for a menubar. Use #pack instead. > > - use the GBin.scrolled_window for adding scrollbars, it takes care of > all the packing, connecting, etc. of your widget > > Updated code in attachment. Brilliant Oliver. Much appreciated. I suppose that this goes to reinforce what I always thought about GTK+; its too complicated and flexible to make things that should be easy as easy as possible. Anyway, I can now get back to trying to get something actually done :-). Cheers, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Neither noise nor information is predictable." -- Ray Kurzweil