diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-09-08 10:59:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-09-08 10:59:21 +0000 |
commit | e91341e3c3687a2f369cc882f6d2c5d26873eda5 (patch) | |
tree | a48d6d3526472e06b5aba914253cdab9560d9916 /gtk/packet_win.c | |
parent | 0caf526d01cde66d5cffe6b228b12e0675c02d7c (diff) | |
download | wireshark-e91341e3c3687a2f369cc882f6d2c5d26873eda5.tar.gz wireshark-e91341e3c3687a2f369cc882f6d2c5d26873eda5.tar.bz2 wireshark-e91341e3c3687a2f369cc882f6d2c5d26873eda5.zip |
Redraw:
the text in all "Follow TCP Stream" windows;
the text in the help window if we have one up;
all hex dump windows;
when GUI preference changes are to be applied, so that font changes and
"Follow TCP Stream" color changes show up.
Update both the Roman and bold font when the font is changed.
Don't decrement the reference counts on the old Roman and bold fonts
until that's all done.
svn path=/trunk/; revision=2401
Diffstat (limited to 'gtk/packet_win.c')
-rw-r--r-- | gtk/packet_win.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/gtk/packet_win.c b/gtk/packet_win.c index 8fd9fb5872..48084fe3cd 100644 --- a/gtk/packet_win.c +++ b/gtk/packet_win.c @@ -3,7 +3,7 @@ * * Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com> * - * $Id: packet_win.c,v 1.13 2000/09/08 09:50:06 guy Exp $ + * $Id: packet_win.c,v 1.14 2000/09/08 10:59:18 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -196,8 +196,7 @@ create_new_window ( char *Title, gint tv_size, gint bv_size){ /* draw the protocol tree & print hex data */ proto_tree_draw(DataPtr->protocol_tree, tree_view); packet_hex_print( GTK_TEXT(byte_view), DataPtr->pd, - DataPtr->cap_len, -1, -1, DataPtr->encoding, - prefs.gui_hex_dump_highlight_style); + DataPtr->cap_len, -1, -1, DataPtr->encoding); DataPtr->finfo_selected = NULL; gtk_widget_show(main_w); @@ -232,7 +231,7 @@ new_tree_view_select_row_cb(GtkCTree *ctree, GList *node, gint column, packet_hex_print(GTK_TEXT(DataPtr->byte_view), DataPtr->pd, DataPtr->cap_len, finfo->start, finfo->length, - DataPtr->encoding, prefs.gui_hex_dump_highlight_style); + DataPtr->encoding); } @@ -248,8 +247,7 @@ new_tree_view_unselect_row_cb(GtkCTree *ctree, GList *node, gint column, DataPtr->finfo_selected = NULL; packet_hex_print(GTK_TEXT(DataPtr->byte_view), DataPtr->pd, - DataPtr->cap_len, -1, -1, DataPtr->encoding, - prefs.gui_hex_dump_highlight_style); + DataPtr->cap_len, -1, -1, DataPtr->encoding); } /* Functions called from elsewhere to act on all popup packet windows. */ @@ -272,17 +270,16 @@ destroy_packet_wins(void) } static void -set_hex_dump_highlight_style_cb(gpointer data, gpointer user_data) +redraw_hex_dump_cb(gpointer data, gpointer user_data) { struct PacketWinData *DataPtr = (struct PacketWinData *)data; - set_hex_dump_highlight_style(DataPtr->byte_view, - DataPtr->finfo_selected, *(gint *)user_data); + redraw_hex_dump(DataPtr->byte_view, DataPtr->finfo_selected); } -/* Set the hex dump highlight style of all the popup packet windows. */ +/* Redraw the hex dump part of all the popup packet windows. */ void -set_hex_dump_highlight_style_packet_wins(gboolean style) +redraw_hex_dump_packet_wins(void) { - g_list_foreach(detail_windows, set_hex_dump_highlight_style_cb, &style); + g_list_foreach(detail_windows, redraw_hex_dump_cb, NULL); } |