Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk filter_prefs.c filter_prefs.h prefs_dlg.
guy 1999/09/10 01:53:39 CDT
Modified files:
gtk filter_prefs.c filter_prefs.h prefs_dlg.c
print_prefs.c print_prefs.h
Log:
We need to catch a "window delete" event for the preferences dialog box
- that event happens if, say, you nuke the dialog box from a window
manager - and call "delete" routines for each of the preferences tabs,
so that, for preferences tabs that include list widgets, we can set a
flag on the preferences tab widget telling the selection callback for
the list widget that the buttons it would normally set the sensitivity
of, based on whether any row in the list is selected or not, have Joined
the Choir Invisible, and therefore that we shouldn't change their
sensitivity because GTK+ will whine at us if we do, just as is the case
if we press the "OK" or "Cancel" button (which also cause the window to
go away).
Can we just do this in the "window delete" handler? I.e., does that get
called if we explicitly destroy the widget? Or should we catch a
"destroy" event instead?
(There must be a better way to do this....)
Revision Changes Path
1.4 +8 -2 ethereal/gtk/filter_prefs.c
1.3 +2 -1 ethereal/gtk/filter_prefs.h
1.2 +18 -7 ethereal/gtk/prefs_dlg.c
1.4 +25 -16 ethereal/gtk/print_prefs.c
1.3 +3 -2 ethereal/gtk/print_prefs.h