Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal file.c file.h prefs-int.h prefs.c prefs.h
guy 2000/07/08 22:29:34 CDT
Modified files:
. file.c file.h prefs-int.h prefs.c prefs.h
tethereal.c
Log:
Turn the code of "colorize_packet()" into a static routine that is given
a word to use in the progress dialog, and a flag indicating whether the
display filter is to be reevaluated or not, and:
have "colorize_packet()" call that routine with "Colorizing" and
FALSE as those arguments;
have the filtering code call that routine with "Filtering" and
TRUE as those arguments;
add an exported routine to call that routine with "Reprocessing"
and TRUE as those arguments, to use to re-generate the packet
list and to re-filter the packets if a protocol preference has
been changed.
Keep track of whether preferences are changed from their initial value
by a preferences file or a command-line option, or from their previous
value by the "Preferences" dialog box; have "prefs_apply_all()" only
call the "apply" callback for a module if they have.
Call "prefs_apply_all()" after the command-line arguments have been
parsed and after "OK" has been clicked in the "Preferences" dialog box,
to notify modules of preference changes if they've registered a callback
for that.
After "OK" has been clicked in the "Preferences" dialog box, if any
preferences have changed, call the reprocessing routine, as the summary
line for some frames and/or the current display filter's value when
applied to some frames may have changed as a result of a preference
change. Do the same after "OK" or "Apply" has been clicked in the
"Display Options" dialog box (as it controls a protocol preferences
item.
Revision Changes Path
1.197 +74 -35 ethereal/file.c
1.71 +2 -1 ethereal/file.h
1.2 +2 -1 ethereal/prefs-int.h
1.32 +34 -10 ethereal/prefs.c
1.17 +5 -2 ethereal/prefs.h
1.35 +6 -1 ethereal/tethereal.c