ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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: Gerald Combs <gerald@xxxxxxxxxxxx>
Date: Mon, 14 Mar 2005 16:38:14 -0600
Ulf Lamping wrote:

> 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?

I'd argue that we should use GetOpenFileName() instead of
GtkFileChooser() under Windows, similar to what we're doing with the
print dialog.  This doesn't help other platforms, however.