Commit Graph

1510 Commits

Author SHA1 Message Date
Gerald Combs 7df5992344 Make the color preferences popup menu shrink to its natural size instead
of filling in its entire table cell.

svn path=/trunk/; revision=10359
2004-03-11 00:22:41 +00:00
Guy Harris 9feb374670 Don't refer to "auto_scroll_live" if HAVE_LIBPCAP isn't defined - and
put the definition of it back under HAVE_LIBPCAP and don't add an extra
declaration in "file.h", as there's no longer code that needs to refer
to it if HAVE_LIBPCAP isn't defined.

svn path=/trunk/; revision=10350
2004-03-08 23:45:25 +00:00
Ronnie Sahlberg aaedc080ea update to iostat make it automagically make sure the field is part of the filter string
svn path=/trunk/; revision=10342
2004-03-08 07:47:14 +00:00
Ulf Lamping 1d2c14be66 fixed a bug GTK_WIDGET_VISIBLE -> GTK_WIDGET_SENSITIVE,
added some (not yet finished) work

svn path=/trunk/; revision=10340
2004-03-07 18:18:43 +00:00
Ulf Lamping b3dc79413e some code cleanup
svn path=/trunk/; revision=10335
2004-03-06 15:55:18 +00:00
Ulf Lamping dcadae3583 replaced show/hide by sensitive/insensitive to see all fields everytime
svn path=/trunk/; revision=10334
2004-03-06 11:16:19 +00:00
Ulf Lamping 787205836c using a table for layout of stop capture fields,
added limitations corresponding to the maximum filesize (2GB)

svn path=/trunk/; revision=10333
2004-03-06 11:10:14 +00:00
Ulf Lamping e39aff29f9 using a table for layout of multi files fields, do some code cleanup
svn path=/trunk/; revision=10328
2004-03-06 06:50:34 +00:00
Ulf Lamping 6c04a837fc using a gtk_table instead of hbox'es for "multiple files" fields
svn path=/trunk/; revision=10306
2004-03-04 22:24:47 +00:00
Ulf Lamping 672ec45f9e capture dialog limits now with units.
no gint "wrap around" tests implemented yet

svn path=/trunk/; revision=10304
2004-03-04 21:27:55 +00:00
Ulf Lamping cb5a386901 fixed differences between capture GUI frontend and backend
svn path=/trunk/; revision=10303
2004-03-04 19:31:21 +00:00
Ulf Lamping ecf2665992 implemented capture dialog 3rd (+x) proposal
svn path=/trunk/; revision=10279
2004-03-02 22:07:23 +00:00
Ulf Lamping 6a977f13d9 replaced all seperate gtk_widget_show() by a single gtk_widget_show_all() call
svn path=/trunk/; revision=10278
2004-03-02 19:13:33 +00:00
Ulf Lamping 38f076a301 improved resizability
svn path=/trunk/; revision=10267
2004-02-29 10:41:03 +00:00
Ulf Lamping 99c72920c1 redesign of the whole dialog
svn path=/trunk/; revision=10261
2004-02-28 22:07:33 +00:00
Guy Harris d9a9be352c Default to not using the ring buffer (as the default number of files is
1 file, i.e. the simple "just keep capturing until told to stop" mode,
you can't use a ring buffer).

svn path=/trunk/; revision=10259
2004-02-28 21:55:13 +00:00
Ulf Lamping b151b6d215 Capturing: "Number of files" switches between normal and multiple mode,
"Use ring buffer" switches between multiple single run and real ring buffer

svn path=/trunk/; revision=10257
2004-02-28 16:21:11 +00:00
Ulf Lamping ea333f7219 removed "magically" label switching of "Stop capture after x kilobyte(s)" field,
put it into seperate fields.

svn path=/trunk/; revision=10256
2004-02-28 13:06:23 +00:00
Guy Harris a234eb8b91 Yes, you do have to free the display filter after compiling it,
otherwise you leak memory.

svn path=/trunk/; revision=10254
2004-02-28 04:21:49 +00:00
Guy Harris 4215bfee6b The string in the Find Frame dialog box isn't necessarily a display
filter string; check its syntax appropriately for the type of search
we're doing when colorizing it.

Searching for an empty text string is a pointless exercise; report that
as an error.

svn path=/trunk/; revision=10253
2004-02-28 04:18:47 +00:00
Ulf Lamping c9ea03f55a added dfilter string syntax check to various places
svn path=/trunk/; revision=10252
2004-02-27 19:07:20 +00:00
Ronnie Sahlberg c1a0db6cba cosmetic update to tcp graphs.
Put both capture filename and
 x.x.x.x:x -> y.y.y.y:y
describing the tcp session we are currently graphing in the menu text
of the window.

svn path=/trunk/; revision=10249
2004-02-27 10:03:48 +00:00
Guy Harris 164c3ea936 Get rid of a debugging printf.
svn path=/trunk/; revision=10238
2004-02-25 21:05:09 +00:00
Ulf Lamping 05eb677c39 Seperated the "Go" menu, corresponding to:
http://developer.gnome.org/projects/gup/hig/1.0/menus.html#menu-standard-go

svn path=/trunk/; revision=10237
2004-02-25 17:44:50 +00:00
Ulf Lamping 9251b808b2 changed some labels
svn path=/trunk/; revision=10231
2004-02-25 00:16:28 +00:00
Ulf Lamping d288ae929e minor redesign of the dialog
svn path=/trunk/; revision=10230
2004-02-24 23:25:28 +00:00
Ulf Lamping 8d463d620f changed some label texts
svn path=/trunk/; revision=10225
2004-02-24 18:39:13 +00:00
Ulf Lamping 5f3007bcb6 fixed some GTK2 stock items keyboard shortcuts
svn path=/trunk/; revision=10223
2004-02-24 17:59:57 +00:00
Ulf Lamping 3a7a9a1713 fixed some menu item capitalization and keyboard shortcuts
svn path=/trunk/; revision=10222
2004-02-24 17:57:52 +00:00
Ulf Lamping d30d0edf20 added a "Close" button to the dialog
svn path=/trunk/; revision=10221
2004-02-24 17:53:40 +00:00
Guy Harris 544818d97d Small cleanup - the for loop was left over from earlier code that kept
searching backwards for a backslash until it found one followed by
"Device\", and no longer looped.

svn path=/trunk/; revision=10217
2004-02-24 05:52:30 +00:00
Gerald Combs 15e982a749 In get_if_name(), return immediately once we've found our interface name
under Windows.

svn path=/trunk/; revision=10213
2004-02-24 02:19:16 +00:00
Guy Harris e0fae3ea78 Sigh. On Windows OT, device names don't have "\Device\" in front of
them, so we can't look for "\Device\" as the beginning of the interface
name.  Instead, on Windows, scan backwards for a colon and then skip the
colon and any subsequent blanks.  (I don't *think* interface names have
colons in them in Windows, even on NT 5.x with the GUID crapola in the
name.)

svn path=/trunk/; revision=10210
2004-02-23 23:13:36 +00:00
Guy Harris 6064ef84c2 Add a "force" argument to "filter_packets()" and
"main_filter_packets()", to force the filtering to be done even if the
filter is the same as the current one; this is necessary in order to
make sure "Follow TCP Stream" gets the packets processed even if you're
filtering the stream that's currently filtered in.

svn path=/trunk/; revision=10209
2004-02-23 22:48:52 +00:00
Ulf Lamping 25510cf209 changed title and menu registering to "IO Graphs"
and changed some of the labels to be more intuitive

svn path=/trunk/; revision=10207
2004-02-23 22:26:07 +00:00
Ulf Lamping 5d0bcd0197 minor change
svn path=/trunk/; revision=10206
2004-02-23 22:23:46 +00:00
Ulf Lamping 09f8a69e4c Changed all items to "Endpoint List" and get rid of the "Host List" group.
called "IO stats" now "Throughput Graph" as this might be somewhat more descriptive IMHO.
Same applies to the "TCP Stream Analysis" -> "TCP Stream Graphs"

svn path=/trunk/; revision=10203
2004-02-23 20:28:31 +00:00
Ulf Lamping ed6148660b statistics menu redesigned, now looking more like the former menu,
items now again grouped by function, not by ISO layer

svn path=/trunk/; revision=10202
2004-02-23 19:19:39 +00:00
Gerald Combs fc60101a9f Move cvsversion.h from BUILT_INCLUDES to BUILT_SOURCES. This tells automake
to create cvsversion.h before any "all" or "check" targets are built.

Clean up a few CVS version strings that I missed last week.

svn path=/trunk/; revision=10199
2004-02-23 16:12:52 +00:00
Guy Harris ab788d2688 Make the tap names for host statistics use "hosts" instead of "conv",
and make the tap names for endpoint statistics use "endpoints" instead
of "conv".

Similarly, make the titles for their windows say "Hosts" or "Endpoints"
rather than "Conversations".

svn path=/trunk/; revision=10195
2004-02-23 05:35:47 +00:00
Guy Harris d42181e7a1 Put in a comment noting a problem with dialog boxes popped up before the
main window is popped up.

svn path=/trunk/; revision=10193
2004-02-23 00:05:50 +00:00
Ulf Lamping 2710d14158 change menu item names from "Host List" to "Endpoint List"
svn path=/trunk/; revision=10191
2004-02-22 23:42:51 +00:00
Ulf Lamping 928e5e916b some changes to the dialog layout and added some tooltips
svn path=/trunk/; revision=10189
2004-02-22 23:39:07 +00:00
Ulf Lamping 4ccf2c4ea2 minor bugfix
svn path=/trunk/; revision=10188
2004-02-22 23:31:36 +00:00
Guy Harris 48531970f3 Squelch a compiler warning.
Get rid of C++ comments.

Clean up indentation.

svn path=/trunk/; revision=10186
2004-02-22 22:42:17 +00:00
Ulf Lamping 62d083525e statistics menu structure proposal:
renamed "Watch Protocol" to "Statistics",
Made two new toplevel menu items "Transport" and "Application"

svn path=/trunk/; revision=10183
2004-02-22 21:35:58 +00:00
Ulf Lamping 9e6a900146 tcp_graph.h is no longer needed, as the tap mechanism is now used
svn path=/trunk/; revision=10182
2004-02-22 19:48:10 +00:00
Ulf Lamping bf37168084 WIDGET_SET_SIZE(-2) is asserted by current GTK2 libs, so don't use it
svn path=/trunk/; revision=10181
2004-02-22 18:58:35 +00:00
Ulf Lamping cdebea69ce Redesigned the menu structure of the former statistics stuff,
now sorted by ISO-layer, than alphabetically (now longer by functionality).
Seperated the tap registering from the actual menu making stuff,
so the seperate step of registering the tap and the menu is no longer needed.
Removed all things related to this double registering.

svn path=/trunk/; revision=10180
2004-02-22 18:47:04 +00:00
Ulf Lamping e6f75392c3 added a help button
svn path=/trunk/; revision=10174
2004-02-21 22:54:50 +00:00
Ulf Lamping a27d63b95b new somewhat improved layout of the capture options dialog
svn path=/trunk/; revision=10172
2004-02-21 22:28:59 +00:00
Ulf Lamping 2509c20b61 quit_after_cap should be a gboolean, not an int, and it should be initialized
svn path=/trunk/; revision=10169
2004-02-21 13:40:06 +00:00
Ulf Lamping ba50469654 rework of capture.c: better seperation of sync and capture pipe by using
explicit names and seperated functionality of do_capture(),
but no functional change!

svn path=/trunk/; revision=10168
2004-02-21 12:58:42 +00:00
Guy Harris 5321ccb6c6 Revert to the previous scheme, wherein we always save the geometry
information - there's really no reason not to do so (it turned out not
to be the cause of the problem I saw wherein recent versions of Ethereal
were popping up the main window in an inconvenient place - the problem
wasn't that it was remembering the inconvenient place, it's something
else).

svn path=/trunk/; revision=10147
2004-02-20 23:04:50 +00:00
Gerald Combs 18d3d9ee71 Don't clobber the concurrent DNS resolution flag each time we start a
capture.

svn path=/trunk/; revision=10145
2004-02-20 22:56:00 +00:00
Guy Harris dbd422ecc4 Give it an RCS ID.
svn path=/trunk/; revision=10144
2004-02-20 22:38:44 +00:00
Gerald Combs 058dbba4b9 Add support for a "version.conf" file in the main directory which can
be used to adjust version preferences.  It understands two configuration
directives: "enable", which can be 0 or 1, and "format", which can be any
strftime()-compatible string, e.g. "V12-powered on %A %Y-%m-%d %H:%M:%S".

If no configuration file is present, the configuration defaults to

enable: 1
format: CVS %Y%m%d%H%M%S

svn path=/trunk/; revision=10139
2004-02-20 20:36:14 +00:00
Ulf Lamping 0a6078c1a2 win32 only: when adding to the recent file list, prevent duplicates by:
a) convert all slashes to backslashes b) do an insensitive filename compare

svn path=/trunk/; revision=10138
2004-02-20 18:43:59 +00:00
Ulf Lamping 6b03887732 minor bugfix from recent check in
svn path=/trunk/; revision=10137
2004-02-20 18:37:00 +00:00
Ulf Lamping ec03b28e12 bugfix: resizing (values from recent) must be done, before the
top_level window is shown, otherwise it has no effect!

svn path=/trunk/; revision=10136
2004-02-20 17:43:50 +00:00
Ulf Lamping fed61823c6 win32 drag-n-drop: corrected handling of UNC filenames "\\host\share\dir..."
svn path=/trunk/; revision=10135
2004-02-20 17:36:37 +00:00
Ulf Lamping b083ba1ed4 bugfix for export selected data: win32 needs O_BINARY flag for open call,
otherwise it will do text mode translations (CRNL things) which isn't desired here

svn path=/trunk/; revision=10134
2004-02-20 17:31:00 +00:00
Guy Harris e333d94262 FN_{SRC,DST}_ADDRESS and FN_{SRC,DST}_PORT aren't used - get rid of
them.

Add support for "Find Frame" and "Colorize Host Traffic" menus, similar
to what the endpoint table has.

svn path=/trunk/; revision=10121
2004-02-20 09:27:24 +00:00
Guy Harris 9c7c10744a From Ian Schorr: taps to keep statistics of traffic by host.
svn path=/trunk/; revision=10120
2004-02-20 09:09:12 +00:00
Guy Harris 98a225ac08 Don't save the geometry items unless the user asked to have them saved.
svn path=/trunk/; revision=10114
2004-02-19 10:48:28 +00:00
Ulf Lamping 8588506f32 added missing distribution files
svn path=/trunk/; revision=10110
2004-02-19 08:24:44 +00:00
Jörg Mayer 2c3b454c70 Warning fixes:
gsm_map_stat.c: comparison is always false due to limited
		  range of data type
  both: get rid of a "discards qualifier" warning

svn path=/trunk/; revision=10081
2004-02-18 04:11:42 +00:00
Ulf Lamping d50cbeb79a bugfix: use last_open_dir for the recent file,
instead of the somewhat duplicated value in the recent struct

svn path=/trunk/; revision=10077
2004-02-17 14:49:11 +00:00
Ulf Lamping c01339acd3 bugfix: don't write the recent files list in the wrong order to the recent file
svn path=/trunk/; revision=10073
2004-02-16 19:00:09 +00:00
Guy Harris 75acdcbba0 As noted by Pavel Kankovsky, the "Resolve Name" menu items should be
available if *any* forms of name resolution aren't enabled.  (Well,
actually, it should probably affect only the item the mouse was over
when you selected it, and should be available if name resolution for
that type of name isn't enabled, but....)

svn path=/trunk/; revision=10056
2004-02-13 01:09:52 +00:00
Guy Harris a1667bf2c0 The Help window should be a separate top-level window, not a dialog
subordinate to the main window - it's a separate top-level window in
W2K, Mac OS X, and, I think, both GNOME and KDE.

svn path=/trunk/; revision=10055
2004-02-13 00:56:30 +00:00
Guy Harris 36ece5a17a Add a "window_new()" routine that creates a window of a given type, sets
the title, and arranges to set the icon for it.  Use that instead of
"gtk_window_new()" and separate calls to set the title and arrange to
set the icon.

Regularize #includes a bit.

Clean up white space.

svn path=/trunk/; revision=10054
2004-02-13 00:53:37 +00:00
Guy Harris 5f27347dfa Create only one "Plugins" window per process.
svn path=/trunk/; revision=10053
2004-02-13 00:00:56 +00:00
Guy Harris c5b4dad036 Create only one "About Ethereal" window per process.
svn path=/trunk/; revision=10052
2004-02-13 00:00:25 +00:00
Guy Harris 90cf9a6b7b The HIG's and/or GUI toolkit documentation for:
Mac OS X

	GNOME

	Qt

	KDE

	Windows

all indicate that {message,alert} boxes are modal, at least for the
window to which they apply.  (Presumably the idea is that not forcing
the user to pay attention to the alert box, and allowing more than one
alert box to be up for a given window, causes more problems than not
letting the user do stuff to that window in order to figure out what the
underlying problem is or figure out what to do to fix it - the message
should be sufficient, in most if not all cases, to let you know what the
problem is.)

Make "simple_dialog()" unconditionally make the alert box modal, and get
rid of ESD_TYPE_MODAL.  XXX - we need to make it possible to make an
alert box modal for a given window, rather than just the top-level
window.

svn path=/trunk/; revision=10051
2004-02-12 22:24:28 +00:00
Guy Harris f99bb93e55 Cast "char" values to "guchar" before passing them to <ctype.h> macros,
so that characters with the 8th bit set don't get sign-extended and
cause the macros not to return the right answer.

svn path=/trunk/; revision=10036
2004-02-11 09:19:54 +00:00
Guy Harris 6b1a0bf430 Most taps that now include "tap_menu.h" no longer need to include
<stdio.h> to define FILE; get rid of the include.

svn path=/trunk/; revision=10034
2004-02-11 04:28:49 +00:00
Guy Harris 9aa32731b9 From Michael Lum: add tap for GSM MAP message statistics.
svn path=/trunk/; revision=10032
2004-02-11 04:19:03 +00:00
Guy Harris 8e4a1c1cc6 Move the declaration of "register_tap_menu_item()" into a new
"tap_menu.h" file, and have the Ethereal taps include that rather than
"menu.h", so we don't have to worry about making sure we've included
<stdio.h> to define FILE, etc. just because some "menu.h" functions
require it.

svn path=/trunk/; revision=10031
2004-02-11 04:17:05 +00:00
Guy Harris 2e4e229739 Get rid of the "Question" alert box type - rename it to "Confirmation",
as that seems to be the name used in the GNOME HIG, at least.  Make it
use the Warning icon (that's what the GNOME HIG says - and it's also
what's used for the equivalent on Windows), and use it for the "Save
current capture?" alert boxes.

svn path=/trunk/; revision=10030
2004-02-11 03:55:48 +00:00
Guy Harris 34349cedcc Give alert boxes an empty title on UN*X and a title of "Ethereal" on
Win32, to match the GNOME HIG on UN*X and the Win32 HIG on Windows (or,
at least, to approximate the Win32 HIG on Windows).

svn path=/trunk/; revision=10029
2004-02-11 03:40:17 +00:00
Guy Harris 3a4e71a724 Add "write_failure_alert_box()" to put up an alert box for a failed
attempt to write to a file (or close a file opened for writing).

Get rid of no-longer-needed #includes of <epan/filesystem.h>.

svn path=/trunk/; revision=10027
2004-02-11 01:37:13 +00:00
Guy Harris 727b913bbd Add an "open_failure_alert_box()" routine to pop up an alert box for a
failed attempt to open/create a file.

Fix one call to pass the right value for the "for_writing" flag.

svn path=/trunk/; revision=10026
2004-02-11 01:23:25 +00:00
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
Ulf Lamping 1b9bef2743 bugfix: init the toolbar's Save icons correctly
svn path=/trunk/; revision=10016
2004-02-09 18:32:41 +00:00
Ulf Lamping 1f15fc7bdc minor changes
svn path=/trunk/; revision=10015
2004-02-09 18:25:48 +00:00
Ulf Lamping 5297f06717 replaced every appearance of gtk_scrolled_window_new() with
scrolled_window_new().
added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to
scrolled_window_new()
added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN)
to every place needed

svn path=/trunk/; revision=9999
2004-02-06 19:19:12 +00:00
Jörg Mayer 348c83db8c Fix a few warnings
svn path=/trunk/; revision=9997
2004-02-06 14:59:52 +00:00
Guy Harris 046ec36540 The menu item for changing the state of name resolution for
network-layer addresses should call the callback for network name
resolution, not MAC name resolution.

svn path=/trunk/; revision=9980
2004-02-04 20:46:20 +00:00
Guy Harris 372e6b2da0 Add some comments about the types of alert boxes you get with the
simple_dialog routines (which are really just message box/alert box
routines).

Add some macros for combinations of buttons (corresponding to
combinations that some GUI toolkits, which only support some
combinations, allow).

svn path=/trunk/; revision=9977
2004-02-04 01:10:37 +00:00
Ulf Lamping 1d2c791ab6 enhanced some dialog messages,
close capture file when user told so

svn path=/trunk/; revision=9965
2004-02-03 17:59:01 +00:00
Ulf Lamping 3f2f2929eb added some more info to the statusbar (filesize, packet count, ..),
fixed a minor bug in the cfile handling (file length in summary dialog)

svn path=/trunk/; revision=9961
2004-02-03 00:16:59 +00:00
Guy Harris 12e944262d Include <string.h> to declare "strlen()".
svn path=/trunk/; revision=9959
2004-02-02 22:51:30 +00:00
Guy Harris 7b5e98bf8e Mark the "widget" argument to "main_load_window_geometry()" as unused
when building for GTK+ 1.2[.x].

svn path=/trunk/; revision=9955
2004-02-01 22:43:34 +00:00
Ulf Lamping d11080a09f moved window geometry values from prefs to recent,
added new pref / recent setting: "maximized main window",
which will save, if the main window is maximized or not,
this will take effect on GTK version 2 only, but is saved nonetheless

svn path=/trunk/; revision=9949
2004-02-01 20:28:11 +00:00
Ulf Lamping 5ed2dfc130 replace "RTT Graph" by "Round Trip Time Graph" as this is more descriptive
svn path=/trunk/; revision=9948
2004-02-01 15:36:15 +00:00
Ulf Lamping b1141c97d1 beautified the dialog a bit
svn path=/trunk/; revision=9947
2004-02-01 15:33:08 +00:00
Ulf Lamping 44f10048da avoid very large dialogs, when display filters becoming too large,
especially true when working with TCP stream filtering

svn path=/trunk/; revision=9946
2004-02-01 13:13:33 +00:00
Ulf Lamping 3b688a8aaf avoid problems when strings becoming too large,
especially true when working with TCP stream filtering

svn path=/trunk/; revision=9945
2004-02-01 13:12:10 +00:00
Ulf Lamping db13141aab DND: also unescape URI characters (e.g. %20 -> ' ')
svn path=/trunk/; revision=9940
2004-02-01 10:01:19 +00:00
Guy Harris e1e17ea8b2 Konqueror, in KDE 3.0, appears to drop file names of the form
"file:/foo/bar/...", so that only the "file:" should be stripped off.

Note that we should probably look for "file:" followed by an arbitrary
number of "/"s, and, at least on UNIX, strip off all but the last of
those "/"s.

svn path=/trunk/; revision=9932
2004-02-01 02:59:20 +00:00
Ulf Lamping d3bd405201 change layout, as dialog was a bit tall,
improved resizability

svn path=/trunk/; revision=9927
2004-01-31 20:31:20 +00:00
Ulf Lamping 5b38a022e4 Implemented rudimentary Drag and Drop support.
svn path=/trunk/; revision=9926
2004-01-31 18:32:37 +00:00
Ulf Lamping 3c763c4fb6 fixed some sensitivity things in the context menues
svn path=/trunk/; revision=9925
2004-01-31 14:23:53 +00:00
Ulf Lamping 124d4e8c90 minor change in dialog text
svn path=/trunk/; revision=9924
2004-01-31 14:16:43 +00:00
Ulf Lamping acd562ac91 gtk_label_set_selectable() is only available from GTK version 2
svn path=/trunk/; revision=9923
2004-01-31 12:49:54 +00:00
Ulf Lamping d244cd82f5 cleanup of new "question dialogs",
using GTK2 primary/secondary message text from GNOME HIG for simple_dialogs,
added a "question dialog" for the coloring rules "Clear" button

svn path=/trunk/; revision=9921
2004-01-31 12:13:23 +00:00
Guy Harris d4857dc706 Add to the _rtp_info structure a "info_all_data_present" boolean, which
is TRUE if all the RTP raw data is present in the tvbuff and FALSE
otherwise.  If it's not all present, also set "info_data_len" to 0 and
"info_data" to NULL.

In the RTP Analysis "Save Payload..." operation, check the
"info_all_data_present" flag and fail if it's not set, and use
"rtpinfo->info_data" and "rtpinfo->info_payload_offset" to get at the
payload, rather than using "cfile.pd", as the latter doesn't necessarily
refer to the current frame data.

Note that the RTP Streams save operation should also check the
"info_all_data_present" flag.

svn path=/trunk/; revision=9920
2004-01-31 09:48:26 +00:00
Guy Harris c3d41534ff If comparing any field other than the frame number, if both field values
are the same, compare the frame number, so that the sort order doesn't
depend on how packets happened to be sorted previously (i.e., so that if
you sort on a given column in a given direction, the sort order is
always the same).

svn path=/trunk/; revision=9918
2004-01-31 04:26:23 +00:00
Guy Harris f914e6e9e7 Fix the spelling of "cumulative" (and variables whose names derive from
that spelling).

svn path=/trunk/; revision=9917
2004-01-31 04:10:05 +00:00
Guy Harris 1980fa5dbf Pass ESD_BTN_OK rather than NULL as a second argument to
"simple_dialog()"; NULL might be #defined to be a pointer expression on
some platforms, causing compiler warnings (and, on platforms where a
null pointer doesn't have all its bits 0, possibly causing misbehavior,
although I don't think there are any such platforms on which Ethereal
runs).

Don't allow 0 as button mask argument to "simple_dialog()".

Squelch a compiler warning.

Report fatal problems as errors, not warnings.

Report file I/O errors with "file_open_error_message()".

Report file write errors (including those reported by "close()", e.g.
some errors writing to an NFS server) when saving raw packet data to a
file.

svn path=/trunk/; revision=9915
2004-01-31 03:22:42 +00:00
Ulf Lamping 25edd1c53e renamed ESD_TYPE_CRIT to ESD_TYPE_ERROR to
better reflect the real error text

svn path=/trunk/; revision=9913
2004-01-31 02:25:46 +00:00
Ulf Lamping 70fa1b55ff using GTK2 stock icons for dialogs instead of Ethereal specific ones
svn path=/trunk/; revision=9911
2004-01-31 01:28:11 +00:00
Ulf Lamping d3316d2834 slightly higher polling rate, to detect stop condition from capture task
svn path=/trunk/; revision=9909
2004-01-30 06:43:16 +00:00
Ulf Lamping 3c76ec1aa2 every GUI action, which will erease a currently unsaved capture file,
will now raise a dialog "Save xy before z?" with Yes/No/Cancel buttons.

svn path=/trunk/; revision=9908
2004-01-29 23:11:38 +00:00
Ulf Lamping 419837e531 added "Yes" and "No" buttons to the simple_dialog,
added a callback method, to be called if a button was pressed

svn path=/trunk/; revision=9907
2004-01-29 23:07:17 +00:00
Ulf Lamping e66b849e23 added GTK_STOCK_YES and GTK_STOCK_NO to the dlg_button_row
svn path=/trunk/; revision=9906
2004-01-29 22:37:45 +00:00
Guy Harris d2e4e9ecc9 Fix a comment.
svn path=/trunk/; revision=9897
2004-01-28 10:37:14 +00:00
Guy Harris a92d9edf0f Clean up the comparison code a bit.
svn path=/trunk/; revision=9896
2004-01-28 10:19:36 +00:00
Guy Harris a66012b68c For columns whose data comes from the frame_data structure for a packet,
sort the columns based on that data, rather than on the raw text of the
column - that's probably faster, and also doesn't get rudely surprised
by "atof()" being locale-dependent.

svn path=/trunk/; revision=9895
2004-01-28 09:53:09 +00:00
Guy Harris a06e94af42 "gtk/main.c" no longer has any code to manage the packet list, so it no
longer needs to define the "column_arrows" structure.

svn path=/trunk/; revision=9894
2004-01-28 09:10:50 +00:00
Ulf Lamping bd0c381cfd "Export Selected Packet Bytes" -> change all appearances to this text,
don't show up this dialog if no data *is* selected (didn't find an easy way
to control sensitivity of the menus by some mechanism :-(

svn path=/trunk/; revision=9891
2004-01-27 20:58:19 +00:00
Guy Harris b179725c39 Make "{byte,tree}_view_select()" return "gboolean", not "gint", as they
return TRUE or FALSE as a success/failure indication.

svn path=/trunk/; revision=9890
2004-01-27 20:36:48 +00:00
Ulf Lamping aa34344c3c always select the current item under cursor, before showing up the
corresponding context menu (right mouse click)

svn path=/trunk/; revision=9887
2004-01-27 19:46:52 +00:00
Olivier Biot 6dd857b59c From Lars Ruoff:
- use create_tempfile() to create the temporary files (causes temp files to be
  created at the same location as other Ethereal temp files). Changed temp
  filenames to "ether_rtp_dXXXXXX", where d is the stream direction.
- fixed a bug with temp files not being removed

svn path=/trunk/; revision=9886
2004-01-27 18:05:32 +00:00
Guy Harris 70e3d8a097 Add a detail-pane context menu item for "Export As Raw Packet Data", so
you can select something and export it without shoving the rodent up to
the menu bar.

svn path=/trunk/; revision=9883
2004-01-27 05:05:58 +00:00
Guy Harris 5633166fbe Newlines in filter strings are a Bad Idea, as they don't display well in
the title or contents of the filtering progress bar window and don't
work very well in files such as "recent" or "dfilters".

svn path=/trunk/; revision=9869
2004-01-26 22:34:55 +00:00
Olivier Biot a165b0d6be Add support for the "matches" operator if HAVE_LIBPCRE is defined.
svn path=/trunk/; revision=9865
2004-01-26 21:02:36 +00:00
Olivier Biot 3b1f5f17b3 From Lars Ruoff:
- made streams list sortable by column
- added a button "Find Reverse" that finds the reverse stream to the
  selected forward stream. (If different reverse streams available,
  pushing the button repeatedly will cycle through all of them,
  one after the other.)
- tidied up lots of superflous code.

Also get rid of a const pointer cast warning, and remove the _U_ attribute
from rtpstream_reset().

svn path=/trunk/; revision=9863
2004-01-26 19:16:30 +00:00
Ulf Lamping 359fb7d5f6 added a tooltip to explain the behaviour of the syntax check in the filter string
svn path=/trunk/; revision=9862
2004-01-26 18:51:04 +00:00
Ulf Lamping c1a7c24df3 added a tooltip to explain the behaviour of the syntax check in the filter toolbar
svn path=/trunk/; revision=9861
2004-01-26 18:40:44 +00:00
Ulf Lamping 276930f3f9 slightly changed the menuitem names in View->Show->Packet xy
svn path=/trunk/; revision=9860
2004-01-26 18:35:56 +00:00
Guy Harris d9a836175f On Windows OT, interface names *can* have spaces in them; to find the
interface name, look forward in the interface string for "\Device\", not
backwards for a space, on Windows.  (Continue to look backwards for a
space on UNIX; names don't start with "\Device\", or even "/dev/", and
don't have spaces in them on any UNIX-flavored OS I know of.)

svn path=/trunk/; revision=9859
2004-01-26 09:05:59 +00:00
Guy Harris d20e50f996 Get rid of an unused variable.
svn path=/trunk/; revision=9854
2004-01-25 22:21:01 +00:00
Guy Harris e608fdfda3 In "main_filter_packets()", use the "cf" argument rather than always
passing "&cfile" to "filter_packets()".

Mark the "w" argument to "filter_activate_cb()" as unused.

svn path=/trunk/; revision=9853
2004-01-25 22:20:21 +00:00
Guy Harris d6cd61061e Have the Wiretap open, read, and seek-and-read routines return, in
addition to an error code, an error info string, for
WTAP_ERR_UNSUPPORTED, WTAP_ERR_UNSUPPORTED_ENCAP, and
WTAP_ERR_BAD_RECORD errors.  Replace the error messages logged with
"g_message()" for those errors with g_strdup()ed or g_strdup_printf()ed
strings returned as the error info string, and change the callers of
those routines to, for those errors, put the info string into the
printed message or alert box for the error.

Add messages for cases where those errors were returned without printing
an additional message.

Nobody uses the error code from "cf_read()" - "cf_read()" puts up the
alert box itself for failures; get rid of the error code, so it just
returns a success/failure indication.

Rename "file_read_error_message()" to "cf_read_error_message()", as it
handles read errors from Wiretap, and have it take an error info string
as an argument.  (That handles a lot of the work of putting the info
string into the error message.)

Make some variables in "ascend-grammar.y" static.

Check the return value of "erf_read_header()" in "erf_seek_read()".

Get rid of an unused #define in "i4btrace.c".

svn path=/trunk/; revision=9852
2004-01-25 21:55:17 +00:00
Ulf Lamping 34bddb3c1a adding a function to the help dialog, showing a specific topic (context help),
beautifying the placement of the help button in the button_row,
using the context help for the filter dialog

svn path=/trunk/; revision=9851
2004-01-25 21:27:16 +00:00
Ulf Lamping c890e29a99 apply automatically generated filters strings to the recent dropdown list,
e.g. when applying a "Follow TCP stream",
fix a bug in the recent function, discarding the newest entries when
saving a full list (now discarding the oldest).

svn path=/trunk/; revision=9849
2004-01-25 18:51:26 +00:00
Ulf Lamping b023bf8c7d fix some filter dialog things
svn path=/trunk/; revision=9848
2004-01-25 18:39:55 +00:00
Ulf Lamping 24eb4363ef add syntax check and an "Add Expression" button to the filter toolbar
svn path=/trunk/; revision=9839
2004-01-25 15:10:36 +00:00
Ulf Lamping f7dbf0f940 added/changed some tooltips
svn path=/trunk/; revision=9838
2004-01-25 13:47:09 +00:00
Ulf Lamping ad7bc1e358 changed the behaviour of the edit buttons to make more sense,
removed the no longer needed "Edit and "Copy" buttons,
do a lot of code cleanup

svn path=/trunk/; revision=9837
2004-01-25 12:25:57 +00:00
Ulf Lamping 74d16224c4 make resized prefs_dlg look better
svn path=/trunk/; revision=9836
2004-01-25 12:22:20 +00:00
Ulf Lamping 7f0f64c272 minor GTK2 layout change
svn path=/trunk/; revision=9835
2004-01-25 12:10:27 +00:00
Guy Harris a0528c5f82 Report open errors when saving the contents of an RTP stream. Check for
and report write errors as well.

svn path=/trunk/; revision=9833
2004-01-25 02:24:44 +00:00
Guy Harris 557d5430af Check for write errors when writing CSV data as well.
Check for write errors when opening the CSV file to write the reverse
data information.

For some reason (perhaps having to do with the sort indicators in
titles, the column titles don't show up in the GtkCList structure, so
they don't get printed; just directly use the table of column titles.

svn path=/trunk/; revision=9832
2004-01-25 02:14:05 +00:00
Guy Harris 10552e3169 Check whether the "fopen()" that creates a CSV file fails and, if so,
report the error and don't dismiss the file selection dialog box.

svn path=/trunk/; revision=9831
2004-01-25 01:58:58 +00:00
Guy Harris a2c53bff75 Don't have "follow_print_text()" display the error message, leave that
up to its caller.

Show errors as such, not as warnings, and show the right error message
for failures to open/create output files.

svn path=/trunk/; revision=9830
2004-01-25 01:53:24 +00:00
Guy Harris 7502ac216a There's no need to keep a "FILE *" for the file being printed to in a
"capture_file" structure.  Keep it locally, instead.

Check for errors when printing packets.

Report failure to open a print destination and failure to write to a
print destination differently.

Don't have the "print preamble" and "print final" routines return
success/failure indications - revert to the old scheme where they
didn't, and have the callers use "ferror()" to check for errors.

Report write errors when printing dissections in Tethereal.

Report print errors as errors, not warnings.

svn path=/trunk/; revision=9828
2004-01-25 00:58:13 +00:00
Guy Harris 65f18bb833 As with "file_write_error_message()", so with
"file_close_error_message()" - but just use "file_write_error_message()"
for UNIX-style errors, under the assumption that a close will only fail
because a buffer-flushing write fails or because "close()" itself fails
when, for example, pushing unsynced NFS client-side writes out over the
wire.

Make several routines in "print.c" return success/failure indications.

Check for write errors when printing "Follow TCP Stream" stuff or saving
it to a file.

svn path=/trunk/; revision=9825
2004-01-24 10:53:25 +00:00
Guy Harris d8d91ff347 As with "cf_open_error_message()"/"file_open_error_message()", so with
"cf_write_error_message()"/"file_write_error_message()".

Use "file_open_error_message()" instead of "cf_open_error_message()" in
some places we missed in the previous checkin.

Catch ENOSPC and EDQUOT in "file_open_error_message()".

Use "file_open_error_message()" rather than "file_write_error_message()"
to report errors when creating the file to which we're saving the
"Follow TCP Stream" data.

svn path=/trunk/; revision=9823
2004-01-24 02:01:44 +00:00
Guy Harris 88535b9a99 From Lars Ruoff (who also contributed the previous change; my apologies
to both Larses):

	- Comfort noise (CN) packets and packets following them
	  immediately are excluded from maximum delay calculation (as
	  well as marked packets are)
	- Payload changes between CN and regular packets are ignored.
	- Added a "Marker missing?" status warning for packets following
	  CN that don't have the marker bit set (cf. RFC1890 4.1)
	- Changed status "Ok" to "[ Ok ]", so that when sorting by status
	  column, all non-Oks are grouped together.
	- Minor GUI updates: reduced size of box, borders, spacing,
	  changed highlight colors.

svn path=/trunk/; revision=9819
2004-01-24 01:15:24 +00:00
Guy Harris 89c529db8e Have "font_apply()" return an indication as to whether it succeeded or
failed and, if it failed, how it failed.  Have it leave up to its caller
the job of reporting that it couldn't load the requested font; have its
callers do that, and have them set the zoom level on failure so that we
have a zoom level that is at least more likely to work.  Make the alert
boxes for "font_apply()" failures be error boxes, not warning boxes.

svn path=/trunk/; revision=9818
2004-01-24 01:02:54 +00:00
Guy Harris 89edd94cb3 Do the font loading code as two larger sections of code, one for GTK+
1.2[.x] and one for GTK+ 2.x, rather than as one section peppered with
#ifdefs.

svn path=/trunk/; revision=9817
2004-01-23 21:22:18 +00:00
Guy Harris b64241c4a6 Include the AddStyleName information in the zoomed font name.
svn path=/trunk/; revision=9816
2004-01-23 20:34:11 +00:00
Guy Harris 52faded8d8 If we call "font_apply()", we don't need to call
"redraw_hex_dump_all()".

svn path=/trunk/; revision=9815
2004-01-23 20:13:23 +00:00
Guy Harris 32e5a4bdbc If the zoom factor is zero, don't construct a new font name - the
supplied font name is correct.  That lets us handle fonts whose size we
can't change because this is GTK+ 1.2[.x] and the name isn't an XLFD
name so we don't know where the size is.

In "font_zoom()", remove some code from the GTK+ 1.2[.x] vs. GTK+ 2.x
#ifdefs.

Fix the comment for "font_zoom()".

Get rid of a no-longer-used "simple_dialog()" argument.

svn path=/trunk/; revision=9814
2004-01-23 20:11:59 +00:00
Guy Harris d10d0f20f2 Clean up indentation.
Make "font_zoom()" static - it's not used outside gtk/main.c.

Use "g_strdup()" rather than "strdup()", as we use "g_free()" to free
the result.

Put in a little more information when "font_zoom()" fails due to the
font name not being an XLFD font name, and don't continue if it fails.

Don't continue if the attempt to load the fonts fails, either.

svn path=/trunk/; revision=9813
2004-01-23 19:53:10 +00:00
Ulf Lamping 4adcdaf4e9 fixed various things in "View" menu
svn path=/trunk/; revision=9809
2004-01-23 16:10:09 +00:00
Ulf Lamping b9cf9aeb0b added a comment
svn path=/trunk/; revision=9808
2004-01-23 16:08:38 +00:00
Ulf Lamping 6551f25ee9 fix assert, when failed loading zoomed font,
prepare possibility to put filter toolbar just below the main toolbar

svn path=/trunk/; revision=9807
2004-01-23 16:07:37 +00:00
Guy Harris f54a741b3b Improve some comments.
svn path=/trunk/; revision=9798
2004-01-23 02:09:18 +00:00
Ulf Lamping 70e45ae806 gtk_font_selection_set_filter doesn't work when run before appending
the font selection widget to the notebook.

svn path=/trunk/; revision=9795
2004-01-23 01:12:46 +00:00
Ulf Lamping 6861d6351a code cleanup
svn path=/trunk/; revision=9794
2004-01-23 01:10:24 +00:00
Ulf Lamping bedcdae5e3 make some of the new menuitems insensitive,
if no capture file/data is available

svn path=/trunk/; revision=9792
2004-01-23 00:43:29 +00:00
Guy Harris 7f727e9119 From Lars Roland:
- "Refresh" button is back again.  Everything should work fine now
	  with multiple windows on the same streams.
	- made packet list sortable by column.
	- show a warning when user chooses "RTP Streams/Analyze"
	  without having a RTP packet selected instead of displaying the
	  streams box.
	- minor GUI updates, renamed button "Next" to "Next non-Ok" for
	  more clarity.

svn path=/trunk/; revision=9788
2004-01-23 00:29:52 +00:00
Jörg Mayer 872b3d7bcd Slight formatting change
Reorder lists alphabetically

svn path=/trunk/; revision=9786
2004-01-22 23:09:55 +00:00
Guy Harris e51338c5bb Fix the RCS ID.
svn path=/trunk/; revision=9785
2004-01-22 21:32:54 +00:00
Guy Harris 7b4e42978b We can't save "child_process" as a HANDLE on UNIX - save it as an "int",
and cast it in the "GetExitCodeProcess()" call (rather than converting
it when assigning it).

svn path=/trunk/; revision=9784
2004-01-22 20:47:37 +00:00
Guy Harris 89e496d1ab Fix a typo.
svn path=/trunk/; revision=9781
2004-01-22 20:33:21 +00:00
Guy Harris cfdb7ee9c6 Move the list of headers to "Makefile.am" (it's not used by
"Makefile.nmake"), and rename it to "noinst_HEADERS", as that's what
automake requires.

svn path=/trunk/; revision=9780
2004-01-22 20:31:44 +00:00
Ulf Lamping a0f78e3b8f moved GTK specific parts from capture.c to ui_util.c,
implemented Win32 "Capture Stop" when using
"update list of packets in realtime" while capturing

svn path=/trunk/; revision=9777
2004-01-22 18:13:57 +00:00
Ulf Lamping f799c98aa5 added new Makefile.common just like in root,
including sources common in Makefile.am and Makefile.nmake

svn path=/trunk/; revision=9776
2004-01-22 18:08:58 +00:00
Ulf Lamping 503a830e48 The progressbar had a parameter to specify the text of the Cancel/Stop button.
As this will always be a Cancel of a running operation, this parameter was removed.
This makes us also able to use a stock button for this.

svn path=/trunk/; revision=9774
2004-01-21 22:00:28 +00:00
Ulf Lamping 76d25fca7d this dialog isn't used any longer.
All setting moved to direct menuitems under View

svn path=/trunk/; revision=9773
2004-01-21 21:56:12 +00:00
Ulf Lamping 8e2a930023 implemented dlg_button_row_new to get a standard function for
layouting the dialog buttons, and use it where appropriate.
This will help us with the GTK1/2 conflict on button layouts and
will also result in a more consistent look of the dialogs at all.

svn path=/trunk/; revision=9771
2004-01-21 21:19:34 +00:00
Ulf Lamping d4b591b7dd display_opts.c / .h no longer needed, all items moved to menuitems
svn path=/trunk/; revision=9770
2004-01-21 19:21:28 +00:00
Olivier Abad 7728b2c563 gtk_font_selection_set_font_name doesn't work when run before appending
the font selection widget to the notebook (at least in GTK2).

svn path=/trunk/; revision=9769
2004-01-21 12:19:19 +00:00
Guy Harris e338b18e4f Don't include some xpm's when built with GTK+ 1.2[.x] - the icons they
define aren't used with 1.2[.x].

svn path=/trunk/; revision=9768
2004-01-21 09:02:09 +00:00
Guy Harris 9c9fd17906 Squelch some compiler warnings.
"font_point_size_l" is a "long", so use "strtol()" to set it (note that
even "strtoul()", for some not-entirely-obvious reason, accepts numbers
starting with a "-" as input - ANSI C requires it!).

svn path=/trunk/; revision=9767
2004-01-21 09:00:48 +00:00
Ulf Lamping 1584a12114 moved remaining display options dialog settings to menuitems,
to get rid of the options dialog completely
still need to think, how the whole thing should work with these settings

svn path=/trunk/; revision=9765
2004-01-21 06:41:03 +00:00
Ulf Lamping 514f438bc7 redesign of capture/display filter dialog.
didn't change the behaviour of the edit buttons,
although they should be changed

svn path=/trunk/; revision=9764
2004-01-21 05:35:42 +00:00
Ulf Lamping e3dd2f5472 use stock buttons whereever possible,
added some ethereal specific stock icons

svn path=/trunk/; revision=9763
2004-01-21 03:54:32 +00:00
Ulf Lamping 76910636e0 don't try to set font size <= 0
svn path=/trunk/; revision=9762
2004-01-21 03:02:19 +00:00
Guy Harris fe71c130e7 "Go To {First,Last} Packet" don't pop up dialog boxes, they Just Do It -
don't give their menu items a "...", as that's for menu items that pop
up dialog boxes to ask you for more information.

Give them menu accelerators that don't clash with other accelerators.

svn path=/trunk/; revision=9760
2004-01-20 21:20:29 +00:00
Ulf Lamping b21d225252 prevented GTK-warning, as the column index was too high
svn path=/trunk/; revision=9756
2004-01-20 19:33:23 +00:00
Ulf Lamping 1108d88e29 commented out refresh_bt, as it's currently unused
svn path=/trunk/; revision=9755
2004-01-20 19:31:46 +00:00
Ulf Lamping ef57df088f a.) saving GTK1 and GTK2 fontnames in different preference setting, to prevent problems when switching between GTK1 and GTK2 ethereal versions
b.) added new feature "Edit->Go To First Packet" "Edit->Go To Last Packet" with corresponding menu and toolbar items
c.) added new feature "View->Zoom In" / "View->Zoom Out" / View->Normal Size" with corresponding menu and toolbar items
This feature will act as a "size offset" to the current fontsize, so that the packet list/tree view/... will have a larger/smaller font size.
The value is stored inside the recent file.
d.) Win32 only: Try to get the win32 system font and fontsize at program startup and show the menus/dialogs and such with the same font and fontsize like other win32 windows.
This makes the program make a *lot* more feel like a normal win32 program.

svn path=/trunk/; revision=9753
2004-01-20 18:47:25 +00:00
Guy Harris 618c0e5e8b Get rid of declaration of no-longer-extant routine.
svn path=/trunk/; revision=9750
2004-01-20 02:36:04 +00:00
Guy Harris 290edaadd4 Put in missing GTK_STOCK_STOP #define for GTK+ 1.2[.x].
svn path=/trunk/; revision=9749
2004-01-20 02:35:31 +00:00
Ulf Lamping 1b852172e2 minor tooltip changes
svn path=/trunk/; revision=9748
2004-01-20 02:26:00 +00:00
Ulf Lamping ef9d4ada2d code cleanup and added some more
application specific stock items in toolbar.c,
use them where appropriate

svn path=/trunk/; revision=9747
2004-01-20 02:21:17 +00:00
Guy Harris e28a53d402 DCE RPC statistics are maintained only by major version, not by major
and minor version.

svn path=/trunk/; revision=9743
2004-01-19 23:43:29 +00:00
Olivier Biot bc8d20be32 From Lars Ruoff: temporarily comment out the code for the "refresh" button;
register and unregister the tap listener in a thread-safe manner.

svn path=/trunk/; revision=9742
2004-01-19 23:35:32 +00:00
Guy Harris d4ab584f0f Move "ts_type_text" out of "epan/timestamp.h into "gtk/recent.c", as
it's only used in the latter; that avoids lots of warnings about
"ts_type_text" being defined but not used in other source files that
include "epan/timestamp.h".  (If it's going to be used in more than one
file, make it non-static and declare it "extern" in "epan/timestamp.h".)

Define TS_NOT_SET as ((ts_type)-1), and use that when initializing
"timestamp_type" in Ethereal and when checking to see whether
"timestamp_type" was set, to avoid signed vs. unsigned comparison
warnings.

Clean up indentation.

svn path=/trunk/; revision=9740
2004-01-19 23:03:20 +00:00
Guy Harris 439159f73d Make the signatures of "dcerpcstat_reset()", "dcerpcstat_packet()", and
"dcerpcstat_draw()" match what "register_tap_listener()" expects, to
squelch warnings.

svn path=/trunk/; revision=9739
2004-01-19 23:00:12 +00:00
Jörg Mayer db29a705cb Trivial signed/unsigned warning fixes
svn path=/trunk/; revision=9732
2004-01-19 18:23:01 +00:00
Jörg Mayer da5f6f9472 The current year is 2004
svn path=/trunk/; revision=9731
2004-01-19 18:21:18 +00:00
Ulf Lamping 0353c5823f move timestamp format options from "View->Options" dialog into
menuitems under "View->Time Display Format".
renamed timestamp enum items e.g. from ABSOLUTE to TS_ABSOLUTE,
to prevent conflicting definitions with MSVC

svn path=/trunk/; revision=9729
2004-01-19 03:46:43 +00:00
Guy Harris 7909c22d49 Include <string.h> to declare "strcasecmp()".
svn path=/trunk/; revision=9727
2004-01-19 01:00:58 +00:00