wireshark/gtk
Guy Harris c7fd1b2b13 Add a routine to be used to put up alert boxes for invalid display
filter expressions; use that in a number of places, so we use the same
alert box.  (More work is needed to figure out the right way to handle
some other "dfilter_compile()" failures.)

Use the error message from the display filter as the primary error, as
that's the message that tells you what the underlying problem is.  (The
GNOME HIG says "In most situations the user should only need the primary
text to make a quick decision", so the primary text should tell you
what's wrong with the filter, not just that it's invalid.  If there are
messages from the display filter code that don't give enough
information, or are a bit cryptic, such as "Unexpected end of filter
string," those should be fixed in the display filter code.)

Improve the error used if an empty filter is used for "find frame".

svn path=/trunk/; revision=10025
2004-02-11 00:55:28 +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 Move the list of headers to "Makefile.am" (it's not used by 2004-01-22 20:31:44 +00:00
Makefile.common Slight formatting change 2004-01-22 23:09:55 +00:00
Makefile.nmake added new Makefile.common just like in root, 2004-01-22 18:08:58 +00:00
STATUS.gtk2 In gtk2 code : 2002-11-15 22:21:15 +00:00
ansi_a_stat.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
ansi_map_stat.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
bootp_stat.c Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +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 Add some comments about the types of alert boxes you get with the 2004-02-04 01:10:37 +00:00
capture_dlg.h every GUI action, which will erease a currently unsaved capture file, 2004-01-29 23:11:38 +00:00
capture_info_dlg.c implemented dlg_button_row_new to get a standard function for 2004-01-21 21:19:34 +00:00
capture_prefs.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 minor changes 2004-02-09 18:25:48 +00:00
color_dlg.h Update to endpoint talkers, 2003-10-07 10:07:47 +00:00
color_filters.c Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22: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 Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22: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 replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
column_prefs.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
compat_macros.h cleanup of new "question dialogs", 2004-01-31 12:13:23 +00:00
dcerpc_stat.c Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +00:00
decode_as_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
decode_as_dlg.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
dfilter_expr_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
dfilter_expr_dlg.h Removed trailing whitespaces from .h and .c files using the 2002-08-28 21:04:11 +00:00
dlg_utils.c cleanup of new "question dialogs", 2004-01-31 12:13:23 +00:00
dlg_utils.h implemented dlg_button_row_new to get a standard function for 2004-01-21 21:19:34 +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 replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +00:00
file_dlg.c Add a routine to be used to put up alert boxes for invalid display 2004-02-11 00:55:28 +00:00
file_dlg.h Implemented rudimentary Drag and Drop support. 2004-01-31 18:32:37 +00:00
filter_prefs.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
filter_prefs.h add syntax check and an "Add Expression" button to the filter toolbar 2004-01-25 15:10:36 +00:00
find_dlg.c Add a routine to be used to put up alert boxes for invalid display 2004-02-11 00:55:28 +00:00
find_dlg.h Forgot to update a prototype in previous patch 2003-10-07 09:50:41 +00:00
follow_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +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 replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
gtk_stat_util.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 moved window geometry values from prefs to recent, 2004-02-01 20:28:11 +00:00
gui_prefs.h new "Font" preferences page instead of a font dialog in "User Interface" 2004-01-17 00:26:22 +00:00
h225_counter.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
h225_ras_srt.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
help_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
help_dlg.h adding a function to the help dialog, showing a specific topic (context help), 2004-01-25 21:27:16 +00:00
http_stat.c Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +00:00
io_stat.c Add a routine to be used to put up alert boxes for invalid display 2004-02-11 00:55:28 +00:00
isup_stat.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +00:00
main.c Add a routine to be used to put up alert boxes for invalid display 2004-02-11 00:55:28 +00:00
main.h added some more info to the statusbar (filesize, packet count, ..), 2004-02-03 00:16:59 +00:00
menu.c The menu item for changing the state of name resolution for 2004-02-04 20:46:20 +00:00
menu.h moved window geometry values from prefs to recent, 2004-02-01 20:28:11 +00:00
mgcp_stat.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
packet_list.h added some menuitems "View->Show" including show/hide of all main widgets, 2004-01-19 00:42:12 +00:00
packet_win.c added some menuitems "View->Show" including show/hide of all main widgets, 2004-01-19 00:42:12 +00:00
packet_win.h Removed all gtk calls in file.c : 2002-09-21 11:36:30 +00:00
plugins_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
prefs_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 change layout, as dialog was a bit tall, 2004-01-31 20:31:20 +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 stock buttons whereever possible, 2004-01-21 03:54:32 +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 avoid problems when strings becoming too large, 2004-02-01 13:12:10 +00:00
proto_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
proto_draw.h Make "{byte,tree}_view_select()" return "gboolean", not "gint", as they 2004-01-27 20:36:48 +00:00
proto_hier_stats_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
proto_hier_stats_dlg.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
recent.c moved window geometry values from prefs to recent, 2004-02-01 20:28:11 +00:00
recent.h moved window geometry values from prefs to recent, 2004-02-01 20:28:11 +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 Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +00:00
rtp_analysis.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
rtp_analysis.h From Lars Ruoff: rewritten RTP analysis module. 2003-09-24 07:48:12 +00:00
rtp_stream.c Add to the _rtp_info structure a "info_all_data_present" boolean, which 2004-01-31 09:48:26 +00:00
rtp_stream.h From Lars Ruoff: 2004-01-26 19:16:30 +00:00
rtp_stream_dlg.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 Add some comments about the types of alert boxes you get with the 2004-02-04 01:10:37 +00:00
smb_stat.c Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +00:00
stream_prefs.c bugfix: use correct size of global value 2004-01-16 11:53:40 +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 Include <string.h> to declare "strlen()". 2004-02-02 22:51:30 +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 replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +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 implemented dlg_button_row_new to get a standard function for 2004-01-21 21:19:34 +00:00
tap_dfilter_dlg.h From Lars Roland: 2003-12-19 23:41:55 +00:00
tcp_graph.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
tcp_graph.h Include cleanups in gtk and gtk2: 2002-09-05 18:48:52 +00:00
toolbar.c bugfix: init the toolbar's Save icons correctly 2004-02-09 18:32:41 +00:00
toolbar.h code cleanup and added some more 2004-01-20 02:21:17 +00:00
ui_util.c replaced every appearance of gtk_scrolled_window_new() with 2004-02-06 19:19:12 +00:00
ui_util.h Merge gtk and gtk2 directories. 2002-11-03 17:38:45 +00:00
wsp_stat.c Pass ESD_BTN_OK rather than NULL as a second argument to 2004-01-31 03:22:42 +00:00