Thanks to David information I've found the way to do:
- the right widget *is not* the drawing area but the viewport. The
drawing area is not resized (down) but the viewport is. Using the
size_allocate event and the "GdkRectangle" information, everything could
be managed.
Thanks to all
Philippe
Axel Simon a écrit :
On Thu, 2006-02-09 at 15:14 +0100, Philippe CHAUVAT wrote:
Hello Yeti,
IIUC you are looking for "size-allocate"; "size-request" is
emitted when widget is asked for preferred size, but
"size-allocate" when it's told the actual allocation.
When I follow those steps:
- maximize the window: size_request and size_allocate are both called
- then reduce the window: none of them is called.
I think you're looking for the configure-event which is called each time
the window changes. Make sure you set GDK_STRUCTURE_MASK with
gtk_widget_add_events().
Axel.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list