Re: can't get height during expose-event

Klaehn t-online de (Joachim Klähn) writes:
> trying out example 1 of section GtkDrawinArea of GTK2.0.0 Reference
> Manual (sample code at the end of the mail) I got some trouble.
> I'm using GTK2.0.0
> The sample draws a filled circle in a window.
> Changing the width of the window changes the circle's diameter to.
> Changing the height of the window works but the circle doesn't
> change his diameter.
> widget->allocation.height remains at predefined value.
> Any idea how to get the correct height ?

You are packing the area into a vbox with expand = FALSE fill = FALSE
which means the area won't expand to fill available vertical space.


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