diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-01-11 06:43:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-01-11 06:43:18 +0000 |
commit | e592fa4a6bdf6342a790f488596c73d2332c9d27 (patch) | |
tree | a4c3bd3440bb613b3211596c26a246298adedeb9 /gtk/dfilter_expr_dlg.c | |
parent | fc53c2b7b3784688b264475fe70cce3a597abe95 (diff) | |
download | wireshark-e592fa4a6bdf6342a790f488596c73d2332c9d27.tar.gz |
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/dfilter_expr_dlg.c')
-rw-r--r-- | gtk/dfilter_expr_dlg.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/dfilter_expr_dlg.c b/gtk/dfilter_expr_dlg.c index cf38308883..921dd0d495 100644 --- a/gtk/dfilter_expr_dlg.c +++ b/gtk/dfilter_expr_dlg.c @@ -4,10 +4,10 @@ * expression, testing a particular field; display the tree of fields * and the relations and values with which it can be compared. * - * Copyright 2000, Jeffrey C. Foster<jfoste@woodward.com> and + * Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com> and * Guy Harris <guy@alum.mit.edu> * - * $Id: dfilter_expr_dlg.c,v 1.23 2001/08/21 06:39:18 guy Exp $ + * $Id: dfilter_expr_dlg.c,v 1.24 2002/01/11 06:43:17 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -57,9 +57,7 @@ # include "snprintf.h" #endif -#include "prefs.h" #include "globals.h" -#include "gtkglobals.h" #include "main.h" #include "ui_util.h" #include "simple_dialog.h" @@ -974,8 +972,7 @@ dfilter_expr_dlg_new(GtkWidget *filter_te) gtk_box_pack_start(GTK_BOX(col1_vb), tree_scrolled_win, FALSE, FALSE, 0); gtk_widget_show(tree_scrolled_win); - tree = gtk_ctree_new(1, 0); - gtk_ctree_set_line_style(GTK_CTREE(tree), GTK_CTREE_LINES_NONE); + tree = ctree_new(1, 0); gtk_signal_connect(GTK_OBJECT(tree), "tree-select-row", GTK_SIGNAL_FUNC(field_select_row_cb), tree); gtk_container_add(GTK_CONTAINER(tree_scrolled_win), tree); |