Date: Mon, 7 Mar 2005 18:29:21 +0000 Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: Set properties on widgets - how? Message-ID: <20050307182921.GA19719 at furbychan.cocan.org> References: <20050306225923.GA24625 at furbychan.cocan.org> <20050306232632.GA27784 at furbychan.cocan.org> <20050307.150646.74741015.oandrieu at nerim.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050307.150646.74741015.oandrieu at nerim.net> From: Richard Jones On Mon, Mar 07, 2005 at 03:06:46PM +0100, Olivier Andrieu wrote: > > Richard Jones [Sun, 6 Mar 2005]: > > +----------------------------------------------- table cell ------+ > > |+---------------------- entry box ---+ | > > || | | > > || | | > > || | | > > |+------------------------------------+ | > > +-----------------------------------------------------------------+ > > > > Is it possible to do this? > > You could try wrapping your entry in a GBin.alignment widget : that > way you'll be able to request a width for the alignment. I looked into this in some more detail today and found another solution (it was suggested on a Gtk mailing list). Not particularly elegant, but it works: +----------------------------------------------- table cell ------+ |+---------------------------------------------------- hbox -----+| ||+---------------------- entry box ---+ +----------- label ---+ || ||| | | | || ||| | | | || ||| | | | || ||| | | | || ||+------------------------------------+ +---------------------+ || |+---------------------------------------------------- hbox -----+| +-----------------------------------------------------------------+ The label is empty and has ~expand:true so it uses up all the remaining space in the hbox. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com