Ethereal-dev: Re: [Ethereal-dev] GTK2 window resize bug with cygwin

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 31 Oct 2003 19:05:07 -0800

On Oct 31, 2003, at 7:06 AM, Biot Olivier wrote:

When I compile Ethereal (cvs snapshot from some days ago) with GTK2 under cygwin, the executable does not refresh its window if I resize it, resulting in either a big grey border to the right and at the bottom if I increase the window size, or in a cropped image if I decrease the window size. WhenI exit Ethereal and restart it, then the previous size is correctly displayed, but
I still have the same resizing issues.

Ethereal now captures "configure" events on the top-level window, and the handler for that event gets the geometry for the window and updates the in-memory geometry information.

The handler was returning TRUE, which would have stopped the further propagation of that event. I've checked in a change to make it return FALSE, which doesn't seem to have broken anything, at least with GTK1 on X11. See if changing "main_window_configure_event_cb()" to return FALSE fixes it (that's what my change did).