Re: can't get height during expose-event
- From: Havoc Pennington <hp redhat com>
- To: Klaehn t-online de (Joachim Klähn)
- Cc: gtk-list gnome org
- Subject: Re: can't get height during expose-event
- Date: 12 Mar 2002 15:49:07 -0500
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.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]