wireshark/gtk
Guy Harris 982a4976c7 Add a routine "io_stat_reset()" to reset an io_stat_t; have
"gtk_iostat_reset()" call it, and have calls to
"gtk_iostat_reset(&io->graphs[0])" just call "io_stat_reset(io)".

Add a routine "io_stat_draw()" to draw an io_stat_t; have
"gtk_iostat_draw()" call it, and have calls to
"gtk_iostat_draw(&io->graphs[0])" just call "io_stat_draw(io)".

Add a routine "io_stat_redraw()" to set the "needs_redraw" flag on an
io_stat_t and call "io_stat_draw()" on it, in order to force a redraw.
Use that in place of set flag/io_stat_draw pairs.

Add a routine "enable_graph()" to set an io_stat_graph_t's display flag
to TRUE and register a tap listener for it, and add a routine
"disable_graph()" to, if an io_stat_graph_t's display flag is set, clear
it, remove its tap listener, and turn its display button off.  Use
"disable_graph()" to disable graphs, rather than just turning the
display flag off, so that we ensure that the invariant "tap listener
present iff graph enabled" is preserved - the code to destroy an io-stat
window only removes tap listeners for enabled graphs, so it depends on
that invariant being preserved.

Check the validity of a display filter by compiling it, not by going
through the whole sequence of registering a tap listener.

svn path=/trunk/; revision=9656
2004-01-13 21:04:52 +00:00
..
.cvsignore Add "ethereal-tap-register.c" to the gtk ".cvsignore" file, as it's a 2002-11-06 23:41:21 +00:00
Makefile.am Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
Makefile.nmake Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
STATUS.gtk2 In gtk2 code : 2002-11-15 22:21:15 +00:00
ansi_a_stat.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
ansi_map_stat.c #if 0 out test that causes an always false warning 2004-01-11 10:02:39 +00:00
bootp_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00
capture_combo_utils.c removed some MSVC warnings (moved pcap.h before glib.h) 2003-12-21 12:19:39 +00:00
capture_combo_utils.h Have "get_interface_list()" return a list of "if_info_t" structures 2003-09-10 05:35:26 +00:00
capture_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
capture_dlg.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
capture_info_dlg.c removed some MSVC warnings (level 3) 2004-01-05 18:11:28 +00:00
capture_prefs.c using button compatibility macros 2004-01-10 16:27:43 +00:00
capture_prefs.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
color_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
color_dlg.h Update to endpoint talkers, 2003-10-07 10:07:47 +00:00
color_filters.c Part 2 of the "unmarking a packet matching a color filter does not apply 2004-01-09 20:20:42 +00:00
color_filters.h Export "remove_color_filter()", as it's used in "color_dlg.c". 2004-01-09 20:39:26 +00:00
color_utils.c Change to color filters : 2002-09-23 19:09:52 +00:00
color_utils.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
colors.c Separate the routines to allocate colors from the routines to handle 2003-01-08 01:59:42 +00:00
colors.h Separate the routines to allocate colors from the routines to handle 2003-01-08 01:59:42 +00:00
column_prefs.c using button compatibility macros 2004-01-10 16:27:43 +00:00
column_prefs.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
compat_macros.h using button compatibility macros 2004-01-10 16:27:43 +00:00
dcerpc_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00
decode_as_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
decode_as_dlg.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
dfilter_expr_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
dfilter_expr_dlg.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
display_opts.c using button compatibility macros 2004-01-10 16:27:43 +00:00
display_opts.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
dlg_utils.c save dialog with "Captured" and "Displayed" buttons in packet range 2004-01-07 00:10:52 +00:00
dlg_utils.h save dialog with "Captured" and "Displayed" buttons in packet range 2004-01-07 00:10:52 +00:00
endpoint_talkers_eth.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
endpoint_talkers_fc.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
endpoint_talkers_fddi.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
endpoint_talkers_ip.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
endpoint_talkers_ipx.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
endpoint_talkers_table.c From Ronnie Sahlberg: when the user selects a filter from the popup 2003-12-16 05:04:11 +00:00
endpoint_talkers_table.h Update to endpoint talkers. move lots of duplicated code into teh helper endpoint_talkers_table.c 2003-09-04 23:11:03 +00:00
endpoint_talkers_tcpip.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
endpoint_talkers_tr.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
endpoint_talkers_udpip.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
ethclist.c Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
ethclist.h Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
fc_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00
file_dlg.c close the Save (As) dialog, when the capture file is closed 2004-01-10 17:29:26 +00:00
file_dlg.h "select_file_cb()" only needs a title, not a "construct_args_t" - 2003-12-01 02:01:56 +00:00
filter_prefs.c using button compatibility macros 2004-01-10 16:27:43 +00:00
filter_prefs.h Move the code that associates buttons with filter dialogs, and vice 2003-01-15 05:58:50 +00:00
find_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
find_dlg.h Forgot to update a prototype in previous patch 2003-10-07 09:50:41 +00:00
follow_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
follow_dlg.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
goto_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
goto_dlg.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
gsm_a_stat.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
gtk_stat_util.c From Lars Roland: 2003-08-21 17:48:04 +00:00
gtk_stat_util.h From Lars Roland: 2003-08-21 17:48:04 +00:00
gtkglobals.h Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
gui_prefs.c using button compatibility macros 2004-01-10 16:27:43 +00:00
gui_prefs.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
h225_counter.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
h225_ras_srt.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
help_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
help_dlg.h Update my email address in various places since my old one no longer works 2003-01-26 19:35:31 +00:00
http_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00
io_stat.c Add a routine "io_stat_reset()" to reset an io_stat_t; have 2004-01-13 21:04:52 +00:00
isup_stat.c #if 0 out test that causes an always false warning 2004-01-11 10:02:39 +00:00
keys.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
ldap_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00
main.c Rename DISSECTOR_HELPER_{SRC,OBJECTS} to 2004-01-11 22:17:43 +00:00
main.h Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
menu.c Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
menu.h From Lars Roland: have common code to handle display filter dialogs in 2003-12-17 22:13:08 +00:00
mgcp_stat.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
nameres_prefs.c Add two preferences to control ADNS, one to enable/disable it and one to 2003-07-22 03:14:31 +00:00
nameres_prefs.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
packet_list.c Include <string.h> to declare "strcmp()". 2004-01-09 20:36:47 +00:00
packet_list.h Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify it 2004-01-09 08:36:23 +00:00
packet_win.c Use gtk1/gtk2 compatibility macros to reduce #ifdefs. 2002-11-11 15:39:06 +00:00
packet_win.h Removed all gtk calls in file.c : 2002-09-21 11:36:30 +00:00
plugins_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
prefs_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
prefs_dlg.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
print_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
print_mswin.c added some print dialog flags, to disable some unsupported print features 2003-11-11 13:59:53 +00:00
print_mswin.h Add/fix cvs id tags 2002-09-09 20:32:32 +00:00
print_prefs.c Use gtk1/gtk2 compatibility macros to reduce #ifdefs. 2002-11-11 15:39:06 +00:00
print_prefs.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
progress_dlg.c removed some MSVC warnings (level 3) 2004-01-05 18:11:28 +00:00
proto_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
proto_dlg.h Update my email address in various places since my old one no longer works 2003-01-26 19:35:31 +00:00
proto_draw.c using button compatibility macros 2004-01-10 16:35:10 +00:00
proto_draw.h Merge gtk and gtk2 directories. 2002-11-03 17:38:45 +00:00
proto_hier_stats_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
proto_hier_stats_dlg.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
rpc_progs.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
rpc_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00
rtp_analysis.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
rtp_analysis.h From Lars Ruoff: rewritten RTP analysis module. 2003-09-24 07:48:12 +00:00
rtp_stream.c From Lars Ruoff: use the pointer to the RTP payload, rather than 2003-11-21 19:24:00 +00:00
rtp_stream.h From Lars Roland: 2003-11-20 23:34:31 +00:00
rtp_stream_dlg.c Make Analyze/Statistics have an accelerator of Alt+A S and move 2004-01-03 18:05:57 +00:00
rtp_stream_dlg.h From Lars Ruoff: rewritten RTP analysis module. 2003-09-24 07:48:12 +00:00
service_response_time_table.c In GTK+ 2.x, "gtk_entry_get_text()" returns a "const gchar *"; assign 2003-12-04 00:45:39 +00:00
service_response_time_table.h Add a popup to the ServicveResponseTime tables where the user can select 2003-09-05 10:26:44 +00:00
simple_dialog.c using button compatibility macros 2004-01-10 16:27:43 +00:00
smb_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00
stream_prefs.c In gtk2 code, replace gdk_string_width() with the "Pango" way of 2003-02-17 07:50:49 +00:00
stream_prefs.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
summary_dlg.c If we don't have any packets, or don't have any filtered packets, don't 2003-12-21 22:32:07 +00:00
summary_dlg.h No work need be done when a summary dialog box is destroyed, or when the 2000-04-01 09:16:49 +00:00
supported_protos_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
supported_protos_dlg.h seperated "supported protocols and protocol fields" dialog, coming from help_dlg.c/.h 2003-11-18 23:56:45 +00:00
tap_dfilter_dlg.c using button compatibility macros 2004-01-10 16:27:43 +00:00
tap_dfilter_dlg.h From Lars Roland: 2003-12-19 23:41:55 +00:00
tcp_graph.c Make the variable into which values from 2004-01-13 08:25:00 +00:00
tcp_graph.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
toolbar.c add a "Save As" button to the toolbar, 2004-01-10 17:10:06 +00:00
toolbar.h handlebar removed, 2003-11-15 11:44:10 +00:00
ui_util.c Use gtk1/gtk2 compatibility macros to reduce #ifdefs. 2002-11-11 15:39:06 +00:00
ui_util.h Merge gtk and gtk2 directories. 2002-11-03 17:38:45 +00:00
wsp_stat.c using button compatibility macros 2004-01-10 16:27:43 +00:00