Re: Resize Event

2006-02-09 Thread Tor Lillqvist
Philippe CHAUVAT writes: > 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. (You have verified that it works as you expect against X11 (Linux or some other Unix), I assume?) Might well be a bu

Re: Resize Event

2006-02-09 Thread Philippe CHAUVAT
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 Philipp

Re: Resize Event

2006-02-09 Thread Axel Simon
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 th

Re: Resize Event

2006-02-09 Thread Philippe CHAUVAT
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 w

Re: Resize Event

2006-02-09 Thread David Necas (Yeti)
On Thu, Feb 09, 2006 at 02:51:02PM +0100, Philippe CHAUVAT wrote: > I wrote a program (Win32, VC++, Gtk2.8.10rc1, GLADE) which is describe > like the following tree: > - Window > - Vbox > - ScrolledWindow > - Viewport > - DrawingArea with GL support (gtk_widget_set_gl_capabilit