diff options
author | Olivier Abad <oabad@noos.fr> | 2002-09-21 11:36:30 +0000 |
---|---|---|
committer | Olivier Abad <oabad@noos.fr> | 2002-09-21 11:36:30 +0000 |
commit | d72aca0b7ec946e137da3d04418ea6f4a4dc77d8 (patch) | |
tree | 0662da2707b2b10450d3dd11b484e2887c32ab10 /ui_util.h | |
parent | 820af9e2f22e0a84417fde57b7ef1d4c537a8a19 (diff) |
Removed all gtk calls in file.c :
- created a few packet_list_xxx functions (ui_util.h gtk/packet_list.c
gtk2/packet_list.c) ;
- removed almost all "gtk/xxx" and "gtk2/xxx" includes in file.c
The only remaining includes are related to color filters. We have to
make color_filter_t GUI independent by replacing GdkColor with color_t.
I'll work on this later.
svn path=/trunk/; revision=6311
Diffstat (limited to 'ui_util.h')
-rw-r--r-- | ui_util.h | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* ui_util.h * Definitions for UI utility routines * - * $Id: ui_util.h,v 1.10 2002/08/28 21:00:41 jmayer Exp $ + * $Id: ui_util.h,v 1.11 2002/09/21 11:36:25 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -33,6 +33,33 @@ extern "C" { /* Set the name of the top-level window and its icon. */ void set_main_window_name(gchar *); +/* packet list related functions */ +void packet_list_clear(void); +void packet_list_freeze(void); +void packet_list_thaw(void); +void packet_list_select_row(gint); +void packet_list_set_column_auto_resize(gint, gboolean); +void packet_list_set_column_resizeable(gint, gboolean); +void packet_list_set_column_width(gint, gint); +void packet_list_moveto_end(void); +gint packet_list_append(gchar *text[], gpointer data); +void packet_list_set_colors(gint, GdkColor *, GdkColor *); +gint packet_list_find_row_from_data(gpointer); +void packet_list_set_text(gint, gint, const gchar *); +void packet_list_set_cls_time_width(gint); +gpointer packet_list_get_row_data(gint); +void packet_list_set_selected_row(gint); + +/* create byte views in the main window */ +void add_main_byte_views(epan_dissect_t *edt); +/* display the protocol tree in the main window */ +void main_proto_tree_draw(proto_tree *protocol_tree); + +void clear_tree_and_hex_views(void); + +/* Destroy all popup packet windows. */ +void destroy_packet_wins(void); + #ifdef __cplusplus } #endif /* __cplusplus */ |