aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_prefs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-11 06:43:18 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-11 06:43:18 +0000
commite592fa4a6bdf6342a790f488596c73d2332c9d27 (patch)
treea4c3bd3440bb613b3211596c26a246298adedeb9 /gtk/gui_prefs.c
parentfc53c2b7b3784688b264475fe70cce3a597abe95 (diff)
Have routines to create GtkCTrees, set their line and expander style
based on the user's UI preferences, and add them to a list of GtkCTrees. Use those routines to create all GtkCTrees. Have a routine to update the preferences for all of those GtkCTrees. Call that routine whenever the preferences change. Label the line and expander style preferences as "Tree line style" and "Tree expander style", as they no longer apply only to protocol trees. Move the routines to maintain a list of scrolled windows, and to update scrollbar placement for scrolled windows, to "ui_util.c". svn path=/trunk/; revision=4520
Diffstat (limited to 'gtk/gui_prefs.c')
-rw-r--r--gtk/gui_prefs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gui_prefs.c b/gtk/gui_prefs.c
index ac34e11638..4da7659fa7 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.28 2002/01/10 07:43:39 guy Exp $
+ * $Id: gui_prefs.c,v 1.29 2002/01/11 06:43:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -172,14 +172,14 @@ gui_prefs_show(void)
"Protocol tree mouse behavior:", selection_mode_vals,
prefs.gui_ptree_sel_browse);
- /* Proto tree line style */
+ /* Tree line style */
create_option_menu(main_vb, PTREE_LINE_STYLE_KEY, main_tb, 3,
- "Protocol tree line style:", line_style_vals,
+ "Tree line style:", line_style_vals,
prefs.gui_ptree_line_style);
- /* Proto tree expander style */
+ /* Tree expander style */
create_option_menu(main_vb, PTREE_EXPANDER_STYLE_KEY, main_tb, 4,
- "Protocol tree expander style:", expander_style_vals,
+ "Tree expander style:", expander_style_vals,
prefs.gui_ptree_expander_style);
/* Hex Dump highlight style */
@@ -517,8 +517,8 @@ gui_prefs_apply(GtkWidget *w)
set_scrollbar_placement_all(prefs.gui_scrollbar_on_right);
set_plist_sel_browse(prefs.gui_plist_sel_browse);
set_ptree_sel_browse_all(prefs.gui_ptree_sel_browse);
- set_ptree_line_style_all(prefs.gui_ptree_line_style);
- set_ptree_expander_style_all(prefs.gui_ptree_expander_style);
+ set_ctree_styles_all(prefs.gui_ptree_line_style,
+ prefs.gui_ptree_expander_style);
if (colors_changed)
update_marked_frames();