Ethereal-dev: Re: [Ethereal-dev] Bug in Ethereal: Closing Read Filter Window fails

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Mon, 14 Mar 2005 23:08:05 +0100
Hirsch, Christian wrote:

Hi Ethereal-Experts,

I think I found a bug which wasn't closed by the last release 0.10.10
My OS is Fedora Core 2.

File --> Open --> Filter:
The Window "Ethereal: Read Filter" opens.
But you can't choice a predefiend Filter or just Close the window.
It hangs.
After having a look at this, it's really ugly...

The main problem is that the GtkFileChooser dialog (we use since GTK 2.4) requires to use gtk_dialog_run(), as some widgets of that dialog (e.g. the Ok button) can no longer be accessed directly.

Unfortunately gtk_dialog_run takes control over "all" events (seems to have it's own event loop), so we can open the filter dialog when the "Filter:" button was pressed, but that dialog won't receive any events, which is causing the problem described.

I don't know any convenient solution :-(

We could use the GtkFileSelection for all GTK versions again, drop support for the Filter dialog at this place, ....

I don't know what to do here, suggestions?

Regards, ULFL