aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gtkglobals.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-12-29 20:10:12 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-12-29 20:10:12 +0000
commit8162d65615239222d3c22f684ce121d2b39f9039 (patch)
treec6fa5d6ff97fee388a3f2f0efd5ccccce1abe957 /gtk/gtkglobals.h
parentdcd0869b373bcdc2c6a85243035b69c558f472da (diff)
Changed the protocol tree widget from a GtkTree to a GtkCTree. The two reasons
I did this: First, Havoc Pennington, in "GTK+/Gnome Application Development", in Appendix seciton A.3.88, recommends using GtkCTree instead of GtkTree because GtkCtree is faster, and GtkTree has limitation on its total row height: since it must fit inside a GdkWindow, it is limited to 32,768 pixels of height. GtkTree is more flexible with regards to the types of widgets that can be placed in the tree, but since we deal only with text, that doesn't matter, at least for now. Secondly, a GtkTree doesn't allow arrow-key navigation (at least as far as I could tell). It always bothered me that the up and down arrow keys worked in the packet list and in the hex dump, but no in the protocol tree. GtkCTree does allow arrow-key navigation. In fact, GtkCTree is a subclass of GtkCList (the packet list widget), so they behave a lot alike. I went ahead and fixed the selection bar which has been bothering Richard for a long time now. :) In the GUI preferences dialogue, you can now set both the packet list selection bar and the protocol tree selection bar to either "browse" or "select" mode. "browse" mode is what you're used to: the arrow keys move an outline of the selection bar, but do not change the selection. "select" mode does change the selection when the arrow keys are pressed. The default behavior is set to "select", which seems more natural for a first-time user. svn path=/trunk/; revision=1393
Diffstat (limited to 'gtk/gtkglobals.h')
-rw-r--r--gtk/gtkglobals.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkglobals.h b/gtk/gtkglobals.h
index cc6417a072..6326009fb1 100644
--- a/gtk/gtkglobals.h
+++ b/gtk/gtkglobals.h
@@ -1,7 +1,7 @@
/* gtkglobals.h
* GTK-related Global defines, etc.
*
- * $Id: gtkglobals.h,v 1.3 1999/12/16 06:20:15 gram Exp $
+ * $Id: gtkglobals.h,v 1.4 1999/12/29 20:10:09 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -37,5 +37,7 @@ extern GdkFont *m_r_font, *m_b_font;
extern GtkStyle *item_style;
void set_scrollbar_placement(int); /* 1=right, 0=left */
+void set_plist_sel_browse(gboolean);
+void set_ptree_sel_browse(gboolean);
#endif