Re: About Gtk::Bin?



Gtk::Alignment is what i use for such cases.

On Sun, Dec 14, 2008 at 2:15 PM, Armin Burgmeier <armin arbur net> wrote:
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.


_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



--
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
[Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]


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