diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-02 23:10:12 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-02 23:10:12 +0000 |
commit | 540f56499354402291fc3ae4e2c276fb874def6a (patch) | |
tree | 1776d21c5cbf19ab2f67611bcb5a6f47374c23ec /gtk/gui_prefs.c | |
parent | 22e8d3d18feb09e46f9be3729214be2f90304be2 (diff) | |
download | wireshark-540f56499354402291fc3ae4e2c276fb874def6a.tar.gz wireshark-540f56499354402291fc3ae4e2c276fb874def6a.tar.bz2 wireshark-540f56499354402291fc3ae4e2c276fb874def6a.zip |
Calculate the height and width of m_r_font globally, since various
routines need it.
When a user clicks on a hex digit or on the corresponding character
(the "text dump" portion) in the hex dump, find the field in the
proto_tree that the byte corresponds to, expand the GtkCTree so that
the field is viewable, select the field, and center it vertically.
LanAlyzer has this feature, and I've missed it in Ethereal.
svn path=/trunk/; revision=3096
Diffstat (limited to 'gtk/gui_prefs.c')
-rw-r--r-- | gtk/gui_prefs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gui_prefs.c b/gtk/gui_prefs.c index be8dba6ba4..a4367401e1 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.24 2000/11/21 23:54:09 guy Exp $ + * $Id: gui_prefs.c,v 1.25 2001/03/02 23:10:12 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -455,8 +455,7 @@ gui_prefs_apply(GtkWidget *w) set_ptree_font_all(new_r_font); old_r_font = m_r_font; old_b_font = m_b_font; - m_r_font = new_r_font; - m_b_font = new_b_font; + set_fonts(new_r_font, new_b_font); g_free(bold_font_name); } |