Re: About Gtk::Bin?



On Sun, 2008-12-14 at 13:30 +0100, Simon Fuhrmann wrote:
> Hi Robert,
> 
> yes, I changed the code a bit, but with no affect. There seems to be a
> bug with Gtk::Bin or a reason I don't know. Here is a simplest-possible
> testcase that confirms that it does not work (at least for me and Zhu):

GtkBin does not handle size requisition or allocation. You'll need to do
this yourself by overriding the on_size_request and on_size_allocate
virtual functions.

Alternatively, you can derive from a container which handles this
already, such as GtkFrame, maybe setting the shadow type to SHADOW_NONE
to remove the visible border around it.




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