1999-10-20 22:36:05 +00:00
|
|
|
/* gtkglobals.h
|
|
|
|
* GTK-related Global defines, etc.
|
|
|
|
*
|
2000-03-02 07:05:57 +00:00
|
|
|
* $Id: gtkglobals.h,v 1.7 2000/03/02 07:05:55 guy Exp $
|
1999-10-20 22:36:05 +00:00
|
|
|
*
|
|
|
|
* Ethereal - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@zing.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTKGLOBALS_H__
|
|
|
|
#define __GTKGLOBALS_H__
|
|
|
|
|
|
|
|
#ifndef __GTK_H__
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#endif
|
|
|
|
|
1999-12-09 07:19:20 +00:00
|
|
|
extern GtkWidget *top_level, *file_sel, *packet_list, *tree_view,
|
|
|
|
*byte_view, *prog_bar, *info_bar;
|
1999-10-20 22:36:05 +00:00
|
|
|
extern GdkFont *m_r_font, *m_b_font;
|
|
|
|
|
|
|
|
extern GtkStyle *item_style;
|
|
|
|
|
2000-02-29 06:24:41 +00:00
|
|
|
void set_scrollbar_placement_scrollw(GtkWidget *, int); /* 0=left, 1=right */
|
|
|
|
void set_scrollbar_placement_all(int); /* 1=right, 0=left */
|
2000-03-02 07:05:57 +00:00
|
|
|
void remember_scrolled_window(GtkWidget *);
|
|
|
|
void forget_scrolled_window(GtkWidget *);
|
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
1999-12-29 20:10:12 +00:00
|
|
|
void set_plist_sel_browse(gboolean);
|
2000-02-29 06:24:41 +00:00
|
|
|
void set_ptree_sel_browse(GtkWidget *, gboolean);
|
|
|
|
void set_ptree_sel_browse_all(gboolean);
|
|
|
|
void set_ptree_line_style(GtkWidget *, gint style);
|
|
|
|
void set_ptree_line_style_all(gint style);
|
|
|
|
void set_ptree_expander_style(GtkWidget *, gint style);
|
|
|
|
void set_ptree_expander_style_all(gint style);
|
1999-12-16 06:20:18 +00:00
|
|
|
|
1999-10-20 22:36:05 +00:00
|
|
|
#endif
|