diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-23 20:13:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-23 20:13:23 +0000 |
commit | 52faded8d88cfbbf7ad6ef3f10b522d8727434a2 (patch) | |
tree | 973b39f78b48fb1dbece42d9f8617cdb3a309575 /gtk | |
parent | 32e5a4bdbca28f9ac6e498525018272fa2e516bf (diff) |
If we call "font_apply()", we don't need to call
"redraw_hex_dump_all()".
svn path=/trunk/; revision=9815
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gui_prefs.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk/gui_prefs.c b/gtk/gui_prefs.c index 3e63613264..46aaf7c1cf 100644 --- a/gtk/gui_prefs.c +++ b/gtk/gui_prefs.c @@ -1,7 +1,7 @@ /* gui_prefs.c * Dialog box for GUI preferences * - * $Id: gui_prefs.c,v 1.58 2004/01/23 01:10:24 ulfl Exp $ + * $Id: gui_prefs.c,v 1.59 2004/01/23 20:13:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -457,14 +457,16 @@ void gui_prefs_apply(GtkWidget *w _U_) { - if (font_changed) { - font_apply(); + if (font_changed) { + /* This redraws the hex dump windows. */ + font_apply(); + } else { + /* Redraw the hex dump windows, in case the + highlight style changed. + XXX - do it only if the highlight style *did* change. */ + redraw_hex_dump_all(); } - /* Redraw the hex dump windows, in case the - highlight style changed. */ - redraw_hex_dump_all(); - /* Redraw the help window(s). */ supported_redraw(); help_redraw(); |