Re: Resize Event
- From: Philippe CHAUVAT <p chauvat migratech fr>
- To: Axel Simon <A Simon kent ac uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Resize Event
- Date: Thu, 09 Feb 2006 15:35:42 +0100
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]