Commit Graph

1655 Commits

Author SHA1 Message Date
Guy Harris dd2b4bd393 "gtk_file_selection_set_filename()" doesn't work with a GtkFileChooser,
and "gtk_file_chooser_set_filename()" requires an absolute path, so ""
isn't valid.  Get rid of the "gtk_file_selection_set_filename()" call in
"file_selection_new()".

Put in a comment asking why we're using
"gtk_file_selection_set_filename()" at all.

svn path=/trunk/; revision=11095
2004-06-03 21:17:06 +00:00
Ulf Lamping 763d96e8de enable chm file generation for doxygen,
move chm filename setting to module specific config file

svn path=/trunk/; revision=11091
2004-06-03 14:57:23 +00:00
Ulf Lamping 03f8df8a9a add details for doxygen
svn path=/trunk/; revision=11090
2004-06-03 14:54:26 +00:00
Guy Harris 7928433795 Make the definition of "register_tap_menu_item()" match its declaration.
svn path=/trunk/; revision=11079
2004-06-03 02:14:50 +00:00
Guy Harris 2f6fd458d4 Fix a typo.
svn path=/trunk/; revision=11078
2004-06-03 02:14:14 +00:00
Ulf Lamping d775bed598 add details for doxygen
svn path=/trunk/; revision=11077
2004-06-02 22:13:04 +00:00
Ulf Lamping eacfa53105 add details for doxygen
svn path=/trunk/; revision=11076
2004-06-02 20:14:51 +00:00
Ulf Lamping d643814e7e add details for doxygen
svn path=/trunk/; revision=11074
2004-06-02 18:44:10 +00:00
Ulf Lamping 92ddb18b8c move "extern GtkWidget *main_display_filter_widget" from
various stats files to gtkglobals.h

svn path=/trunk/; revision=11073
2004-06-02 07:12:11 +00:00
Guy Harris 9260d709ec Get rid of the #if 0'ed out "rtp_payload_type_vals[]" table - we should
be using the one from libethereal.

svn path=/trunk/; revision=11072
2004-06-02 07:01:04 +00:00
Ulf Lamping 191e09cea4 fix a doxygen comment
svn path=/trunk/; revision=11070
2004-06-02 06:44:40 +00:00
Guy Harris d3b788f247 Make the definition of "add_hostlist_table_data()" match its
declaration.

Give the address and port arguments to "add_hostlist_table_data()"
appropriate names and Doxygen comments (they're not a source address and
port, they're just an address and port), and do the same for the address
and port members of a "hostlist_talker_t".

Get rid of extra unnecessary variables in "add_hostlist_table_data()".

Clean up indentation.

svn path=/trunk/; revision=11066
2004-06-01 23:00:24 +00:00
Ulf Lamping 66f18e8c57 bugfix: don't double define rtp_payload_type_vals
svn path=/trunk/; revision=11065
2004-06-01 22:12:37 +00:00
Ulf Lamping 09c030170a minor bugfix from previous check in
svn path=/trunk/; revision=11064
2004-06-01 22:00:22 +00:00
Ulf Lamping 1f27d91439 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11062
2004-06-01 21:56:04 +00:00
Guy Harris 8a37f21551 Make the definition of "add_ett_table_data()" match its declaration.
svn path=/trunk/; revision=11059
2004-06-01 21:29:50 +00:00
Ulf Lamping 4a32d21c22 minor bugfix from previous check in
svn path=/trunk/; revision=11058
2004-06-01 20:37:09 +00:00
Ulf Lamping a8db4e10a8 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11057
2004-06-01 20:28:05 +00:00
Ulf Lamping 14bf83c340 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11052
2004-06-01 17:33:37 +00:00
Guy Harris a467bac215 Eliminate a no-longer-used routine.
svn path=/trunk/; revision=11050
2004-06-01 01:01:31 +00:00
Ulf Lamping 8816b7e3c7 add details for doxygen
svn path=/trunk/; revision=11046
2004-05-31 15:47:34 +00:00
Ulf Lamping d5dec17fba add details for doxygen
svn path=/trunk/; revision=11045
2004-05-31 13:42:58 +00:00
Ulf Lamping c5196c4a76 split doxygen.cfg into common Ethereal things and module specifics
svn path=/trunk/; revision=11044
2004-05-31 13:42:17 +00:00
Ulf Lamping dde0636711 bugfix: don't try to destroy a dialog twice
svn path=/trunk/; revision=11043
2004-05-31 13:35:49 +00:00
Ulf Lamping 95f1ce8d4b directly use the file selection dialog instead of using an additional custom dialog
svn path=/trunk/; revision=11042
2004-05-31 12:06:28 +00:00
Ulf Lamping eb60b3e063 some more dialog redesign and code cleanup
svn path=/trunk/; revision=11041
2004-05-31 11:22:58 +00:00
Ulf Lamping 3804c8ae9a interface options preference dialog: remove confusing second interface clist,
fix a bug making garbage of user supplied interface description

svn path=/trunk/; revision=11039
2004-05-31 09:23:14 +00:00
Guy Harris d6d7816485 The "key" argument to "write_recent_geom()" is required (as it's called
through a pointer), but isn't used - mark it as unused.

svn path=/trunk/; revision=11036
2004-05-31 02:42:39 +00:00
Ulf Lamping 68c730e54d save window position/size/maximized state into recent file
(only help dialog for now)

svn path=/trunk/; revision=11032
2004-05-30 11:54:37 +00:00
Ulf Lamping 504edf02ec enable postcript printing if selected in prefs,
correctly remove temporary file on close dialog

svn path=/trunk/; revision=11026
2004-05-27 23:09:09 +00:00
Ulf Lamping e57142b214 bugfixes: fixed printing on win32,
and convert none printable characters, so printing will work on binary output as well
(like in the GUI output)

svn path=/trunk/; revision=11025
2004-05-27 21:55:59 +00:00
Ulf Lamping 778158c965 win_printer is gboolean, not an int
svn path=/trunk/; revision=11024
2004-05-27 21:52:07 +00:00
Guy Harris 257f4b8c80 Tag the "has_child" argument to "prefs_tree_page_add()" as unused when
building with GTK+ 2.x or later, as it's only needed and only used for
1.2[.x].

svn path=/trunk/; revision=11022
2004-05-27 21:42:54 +00:00
Ulf Lamping 8d121bfb92 use gtk_window_set_default_size() instead of WIDGET_SET_SIZE() for the dialogs,
as WIDGET_SET_SIZE() will prevent the user from shrinking the dialog,
and gtk_window_set_default_size() will not

svn path=/trunk/; revision=11021
2004-05-27 19:59:50 +00:00
Guy Harris 6f8e9eeafe Get rid of an unused variable.
Mark as unused a required argument that's unused.

svn path=/trunk/; revision=11020
2004-05-27 18:12:58 +00:00
Ulf Lamping b7efb77688 added a small comment
svn path=/trunk/; revision=11019
2004-05-27 17:26:46 +00:00
Ulf Lamping 071d9bcef0 bugfix: don't try to destroy a window, when it's already being destroyed
svn path=/trunk/; revision=11018
2004-05-27 17:08:50 +00:00
Ulf Lamping 54fe7e9e93 a lot of code cleanup
svn path=/trunk/; revision=11017
2004-05-27 16:50:16 +00:00
Ulf Lamping e22528662a bugfix: don't try to destroy a window, when it's already being destroyed
svn path=/trunk/; revision=11016
2004-05-27 16:48:36 +00:00
Ulf Lamping 7bc663239f added some tooltips
svn path=/trunk/; revision=11015
2004-05-27 16:43:01 +00:00
Ulf Lamping f69aa84636 Don't point to the manpage for the list of authors, it's in the about dialog now
svn path=/trunk/; revision=11014
2004-05-27 16:41:33 +00:00
Guy Harris bf55bfd7eb Don't compile in "follow_save_as_destroy_cb()" for GTK+ 2.4 and later,
as it's not used.

svn path=/trunk/; revision=11011
2004-05-26 21:23:20 +00:00
Jörg Mayer 1822ad1e78 Change C++ style comments
svn path=/trunk/; revision=11009
2004-05-26 11:37:36 +00:00
Guy Harris 9b6feaee20 Get rid of some declarations of routines that no longer exist.
Fix up some declarations of other routines to match the definitions of
those routines.

svn path=/trunk/; revision=11004
2004-05-26 04:21:49 +00:00
Ulf Lamping 7d37fc9d23 more code cleanup from dialog things:
changed window_xy (dialog) function calling in a lot of gtk files
cleanup of file selection code
cleanup in dlg_utils/file_dlg/ui_util
Please report any problems!!!

svn path=/trunk/; revision=11003
2004-05-26 03:49:24 +00:00
Guy Harris 3aaf65db46 Don't capitalize "Filter" in "Display Filter" in the "Find" dialog box,
just as we don't capitalize "value" in "Hex value" in the same set of
radio buttons.

svn path=/trunk/; revision=11002
2004-05-26 02:33:37 +00:00
Ulf Lamping b131c02ba6 dlg_destroy_cb() is static
svn path=/trunk/; revision=10989
2004-05-24 17:41:26 +00:00
Guy Harris 0a535b3a60 Even with GTK+ 2.x the arguments to "dlg_destroy_cb()" aren't used.
svn path=/trunk/; revision=10988
2004-05-24 17:32:12 +00:00
Guy Harris 09509c28d9 Include <string.h> to declare "strlen()".
svn path=/trunk/; revision=10985
2004-05-24 09:00:52 +00:00
Guy Harris 911bad80f0 Have two strings in an enum_val_t - one that's a short string that is
convenient to put into a command line (no capital letters, no spaces to
require quotes), and one that's a detailed description for use in the
UI.  Allow either of them in the preferences file or "-o" option; use
the detailed description in the UI, and also use it when writing the
preferences out, so that the preference will be readable by older
versions of Ethereal (assuming the preference existed in that version).

Update "README.developer" to give more detail about an enum_val_t (and
to put the _t in), and to give a more detailed description of the
"radio_buttons" argument to "prefs_register_enum_preference()".

svn path=/trunk/; revision=10982
2004-05-24 02:25:21 +00:00
Guy Harris a396513ad8 "dlg_destroy_cb()" doesn't use its arguments when built with GTK+
1.2[.x], so add _U_ in that case.

svn path=/trunk/; revision=10980
2004-05-24 01:58:06 +00:00
Ulf Lamping cc68368037 use new functions in window API (ui_util.h),
use window_new instead of dlg_window_new for the statistics windows
(as these are no dialog windows)
do some code cleanup

svn path=/trunk/; revision=10979
2004-05-23 23:24:07 +00:00
Ulf Lamping 01c236864a next step to save the size and postition of the dialogs (using a hashtable)
move the get/set window size functionality from main to ui_util,
add some functions to handle windows/dialogs.

changed help and about dialog to suit the current window API

svn path=/trunk/; revision=10974
2004-05-23 17:37:36 +00:00
Ulf Lamping 461c0d59cd add some comments about using WIDGET_SET_SIZE() macro
svn path=/trunk/; revision=10973
2004-05-23 15:03:09 +00:00
Ulf Lamping d6eeb0936d going to have a standard behaviour of the dialogs
(including remebering of the dialog size in recent file).
for a first step, I replaced all window_new() calls from dialogs
into dlg_window_new() ones, and removed all gtk_window_set_position
calls, this should be done in a more generalized way

svn path=/trunk/; revision=10964
2004-05-22 19:56:19 +00:00
Guy Harris 9d45162794 GTK+ 1.2[.x] doesn't handle UTF-8 text, so do the "Authors" tab only
with GTK+ 1.3 and later.

If we're doing the "Authors" tab, include "text_page.h" to declare
"text_page_new()".

svn path=/trunk/; revision=10954
2004-05-22 07:32:11 +00:00
Guy Harris c20c6ca58c Include "cvsversion.h" so we report the version correctly for builds
from CVS.

svn path=/trunk/; revision=10952
2004-05-22 04:46:13 +00:00
Guy Harris ade058df51 Declare "text_page_new()" in a "gtk/text_page.h" header, rather than
embedding a declaration in "gtk/about_dlg.c".

Do the Authors page in the About dialog on UN*X as well as on Windows.

svn path=/trunk/; revision=10951
2004-05-22 04:25:57 +00:00
Guy Harris 88d2d10fb4 Don't put a newline at the end of the compiled-with version information
- we don't put it at the end of the run-time version information.

Add newlines into formats used with that information where appropriate
(the "About" dialog box already had a newline in the format).

svn path=/trunk/; revision=10950
2004-05-22 04:15:01 +00:00
Ulf Lamping f6e2b28e9d WIN32 only: add an "Authors" notebook tab, to show the content of
the AUTHORS-SHORT file

svn path=/trunk/; revision=10946
2004-05-21 17:35:43 +00:00
Ulf Lamping c58455e882 code cleanup (e.g. removed unused function parameters),
added new about page, showing the authors file (but still commented out)

svn path=/trunk/; revision=10942
2004-05-21 08:55:07 +00:00
Guy Harris 466ffc8977 Now that the "About" dialog box's code is in "gtk/about_dlg.c", move the
"create an About dialog" function's declaration to "gtk/about_dlg.h".

svn path=/trunk/; revision=10941
2004-05-21 08:44:45 +00:00
Guy Harris ebbebf1705 GCC warns about zero-length format strings, presumably either because
not all *printf routines don't handle them or because there's no
advantage to using one rather than just copying a null string to the
target (the length-checking done by "snprintf"-style routines is useful
for a null string only if the target is zero-length, which it isn't in
this case).

Clean up indentation.

svn path=/trunk/; revision=10940
2004-05-21 06:39:25 +00:00
Guy Harris 82051275a7 Include <string.h> to declare "strdup()".
svn path=/trunk/; revision=10937
2004-05-21 00:38:45 +00:00
Ulf Lamping 8c86ef340a split helper text page function into a generic and a help specific part,
so other files can use this functionality too

svn path=/trunk/; revision=10936
2004-05-21 00:27:56 +00:00
Ulf Lamping 65792fe9ae gtk_window_present() new dialog windows, to be sure they get on top
svn path=/trunk/; revision=10935
2004-05-21 00:25:04 +00:00
Guy Harris 6e014216a9 Tag unused parameters with _U_ to squelch GCC compiler warnings (they're
GTK+ callbacks so we don't get to change the calling sequence).

svn path=/trunk/; revision=10934
2004-05-21 00:18:46 +00:00
Ulf Lamping 83dfc924cd complete new layout of the summary dialog
svn path=/trunk/; revision=10933
2004-05-20 23:01:53 +00:00
Ulf Lamping a33b2f4b0b simple_list_new(): hide title row, if titles == NULL
svn path=/trunk/; revision=10932
2004-05-20 22:57:21 +00:00
Ulf Lamping 5719e84c96 beautify the "About Ethereal" page, put plugin list into the dialog
svn path=/trunk/; revision=10930
2004-05-20 18:23:38 +00:00
Ulf Lamping 15ca5af040 as it's difficult to create a list widget for both supported GTK versions,
I've started to implement a simple list to hide the complexity

svn path=/trunk/; revision=10929
2004-05-20 18:18:12 +00:00
Ulf Lamping 957ebcf71d separate dir functions from the plugin init,
put this and some other dirs in the about dialog

svn path=/trunk/; revision=10928
2004-05-20 13:48:25 +00:00
Ulf Lamping 49f0a67385 call gtk_window_present() only on GTK2 and above
svn path=/trunk/; revision=10926
2004-05-20 12:47:28 +00:00
Ulf Lamping ad85db871f moved the about dialog from main.c to it's own new about_dlg.c,
added a notebook tab with some directory infos (still incomplete and ugly)
cleaned up #includes in main.c (hoping this didn't break the build on unix)

svn path=/trunk/; revision=10925
2004-05-20 12:01:13 +00:00
Ulf Lamping d7202f699e added a depend to ethereal-tap-register.c,
so adding a gtk-tap will regenerate this file

svn path=/trunk/; revision=10924
2004-05-20 11:53:52 +00:00
Ulf Lamping 3e28c4726d update menu check items, if name resolution prefs changed
svn path=/trunk/; revision=10922
2004-05-20 10:37:41 +00:00
Ulf Lamping 0082592429 workaround for GTK2 bug: bring main window back to front,
when a dialog is closed

svn path=/trunk/; revision=10921
2004-05-19 22:17:08 +00:00
Ulf Lamping 8fea0f1db2 this is a hack, to workaround a bug in GTK2.x!
when changing the font size, even refilling of the corresponding
gtk_text_buffer doesn't seem to trigger an update.
The only workaround is to freshly select the frame, which will remove any
existing notebook tabs and "restart" the whole byte view again.

svn path=/trunk/; revision=10915
2004-05-18 00:05:12 +00:00
Ulf Lamping 9ade33284d GTK2 only: catch window state event, and call display_queued_messages()
if window not iconified any longer.
Queue up simple_dialog messages, if window *is* iconified

svn path=/trunk/; revision=10914
2004-05-17 21:15:28 +00:00
Ronnie Sahlberg 374135cb4a In rpc programs statistics, change RTT (RoundTripTime) to SRT
(ServiceResponseTime) since that is a more appropriate name for these stats.

svn path=/trunk/; revision=10913
2004-05-17 20:06:32 +00:00
Ulf Lamping 82ca4cc6b5 don't show simple_dialogs, if main window iconified (minimized),
this would lead to an unresponsive program.
Simply discard the messages, as we don't have a way to queue and show this
message if the main window is becoming "visible" again.

svn path=/trunk/; revision=10910
2004-05-16 18:42:55 +00:00
Ulf Lamping fbe2e42bb9 remove FI_LINK again,
as this info can be derived from the presence of the FT_FRAMENUM field

svn path=/trunk/; revision=10900
2004-05-15 00:41:27 +00:00
Ulf Lamping 9bd912b22b add support to link from specially marked fields to related packets,
a doubleclick will follow the link (GTK1 is working now too)

svn path=/trunk/; revision=10898
2004-05-14 18:02:38 +00:00
Ulf Lamping 1314808bd5 add support to link from specially marked fields to related packets,
a doubleclick will follow the link

svn path=/trunk/; revision=10892
2004-05-14 15:55:37 +00:00
Ulf Lamping e1fef4b5ca Win32 only: Preference setting to open a console window, one of:
never (default), automatic (like before), always

svn path=/trunk/; revision=10870
2004-05-13 15:28:02 +00:00
Ulf Lamping ad495101de fixed httpstat_reset, so reloading a capture file won't increase statistic values more and more
svn path=/trunk/; revision=10866
2004-05-13 12:19:24 +00:00
Guy Harris 15af0f656f From Lars Roland: add support for building a libethereal.dll with MSVC:
add a config.nmake option to control whether to build
	libethereal.dll or not;

	remove "./wiretap" from PATH to prevent problems due to
	wrongly-loaded files;

	build dissector.lib with MSVC;

	move "print.c" and "ps.c" to the dissector helpers, as "print.c"
	imports variables from packet-frame.c and packet-data.c, which
	are in libethereal;

	move "g711.c" out of the dissector helpers, as they're used only
	by Ethereal in a tap, not in Tethereal or in any dissector;

	add a .def file for libethereal;

	arrange to declare global variables exported from libethereal
	with "__declspec(dllimport)" when building programs that import
	those variables;

	update the NSIS installer.

Make the "configure" script define ETH_VAR_IMPORT as "extern".

svn path=/trunk/; revision=10834
2004-05-09 10:03:41 +00:00
Ulf Lamping 09962ebb64 make notebook tabs scrollable, if not all fits into the pane,
enable a popup menu on the notebook tabs, with the tab labels

svn path=/trunk/; revision=10828
2004-05-09 07:01:07 +00:00
Ulf Lamping bd96071d8c rename context menu items:
Match -> Apply as Filter
Prepare -> Prepare a Filter
and prepended a ... at appropriate submenu items

svn path=/trunk/; revision=10814
2004-05-07 12:15:24 +00:00
Ulf Lamping 5d950ffaf4 replace info field "gboolean request" by "guint8 ptype",
so the packet type can be better detected

svn path=/trunk/; revision=10812
2004-05-07 11:25:15 +00:00
Ulf Lamping a7f4c971c5 removed obsolete comments
svn path=/trunk/; revision=10810
2004-05-07 08:12:33 +00:00
Ulf Lamping 2085e656e8 various context menu related changes
svn path=/trunk/; revision=10804
2004-05-05 20:12:50 +00:00
Guy Harris b42f088ae5 Note that hiding panes in the paned widgets doesn't do what we want with
GTK+ 1.2[.x], although it does so with GTK+ 2.x.

svn path=/trunk/; revision=10801
2004-05-05 08:49:24 +00:00
Guy Harris acb752726d Use an enum when initializing "prefs.gui_layout_type".
Add an entry to that enum at the end and use that to generate the value
of LAYOUT_QTY.

svn path=/trunk/; revision=10800
2004-05-05 07:31:05 +00:00
Guy Harris 70e4f7ff87 Use "main_widgets_show_or_hide()" to control the visibility of all the
main window widgets, rather than requiring a relayout if the visibility
of the main toolbar, filter toolbar, or statusbar is changed.

Clean up indentation.

svn path=/trunk/; revision=10796
2004-05-04 21:08:03 +00:00
Guy Harris 76574b554b If all we're doing is changing the visibility of a pane, we don't have
to re-lay-out the main window, we just need to change the visibility of
the appropriate widgets - that reduces the amount of drawing done,
speeding things up a little and reducing flicker.

svn path=/trunk/; revision=10795
2004-05-04 20:49:33 +00:00
Guy Harris 6ae8786e94 Display "main_second_pane" if, and only if, both widgets in it are
displayed; otherwise, if you hide both of them (e.g., hiding the packet
details and packet data panes in the default layout), "main_second_pane"
remains but as a gray blob, rather than having the remaining pane take
over the entire window.

svn path=/trunk/; revision=10794
2004-05-04 20:40:08 +00:00
Guy Harris 3e331f08f0 Put the coloring rules back under View.
svn path=/trunk/; revision=10793
2004-05-04 20:04:26 +00:00
Guy Harris a5cc83af87 The GNOME HIG calls the View menu item for the status bar "Statusbar",
not "Status Bar".

svn path=/trunk/; revision=10782
2004-05-03 23:48:00 +00:00
Guy Harris 13a424d7bf Move "Coloring Rules" from "View" to "Edit" - you're editing the set of
coloring rules Ethereal uses (yes, those views affect the way the
packets are displayed, but that also applies to at least some the
preferences, which are in Edit->Preferences).

Get rid of the "Show" menu under "View", moving the items up to the main
"View" menu, as per the GNOME HIG.  Give some of them accelerators, and
change the accelerators for some other "View" items to avoid collisions.

svn path=/trunk/; revision=10780
2004-05-03 23:34:27 +00:00
Ulf Lamping 870b3b1caf add name resolution to both endpoint and conversation lists
svn path=/trunk/; revision=10778
2004-05-03 22:15:22 +00:00
Ulf Lamping 314328d453 build a endpoints (aka hostlist) dialog,
which shows all kinds of endpoints in a notebook

svn path=/trunk/; revision=10773
2004-05-02 21:16:09 +00:00
Ulf Lamping 256982cb6f slightly changed to prevent naming conflict with hostlist_table.c
svn path=/trunk/; revision=10772
2004-05-02 21:10:20 +00:00
Ulf Lamping fa9a7f064f build a conversation (aka endpoint_talkers) dialog,
which shows all kinds of conversations in a notebook

svn path=/trunk/; revision=10771
2004-05-02 17:25:10 +00:00
Ulf Lamping 07e8972f61 after retapping, immediately redraw table to avoid
annoying redraw even on "static" capture files

svn path=/trunk/; revision=10770
2004-05-02 15:23:42 +00:00
Ulf Lamping 32b38be04d move function xpm_to_widget() from layout_prefs to ui_util,
as this can be useful not only in layout_prefs

svn path=/trunk/; revision=10768
2004-05-02 08:54:32 +00:00
Olivier Biot ec6f31bced The display filter engine can return an error message that is not safe
when using GTK2 code for rendering the error. In order to correctly
render the error message, it must be XML escaped.

TODO: track down the remaining places where this XML escaping is
      required, and fix it there too (not sure if they exist though).

svn path=/trunk/; revision=10764
2004-05-01 22:55:22 +00:00
Ulf Lamping 52a04a6f71 bugfix: remove all elements on "tree reset", don't keep the first entry in the list
svn path=/trunk/; revision=10757
2004-05-01 19:24:44 +00:00
Ulf Lamping 2c52329681 GTK2: expand all tree elements when opening dialog
svn path=/trunk/; revision=10756
2004-05-01 18:40:20 +00:00
Olivier Biot 9ed2910c1f From Richard Urwin: ensure that the initial colour is appropriate in all
cases. The colouring rules are also available now when no packets have been
captured or loaded from file.

svn path=/trunk/; revision=10754
2004-05-01 17:22:09 +00:00
Ulf Lamping d9118dc089 add PROTO_ITEM_SET_HIDDEN() and PROTO_ITEM_SET_GENERATED(),
this sets flags for later rendering of the field data

svn path=/trunk/; revision=10752
2004-05-01 15:15:08 +00:00
Guy Harris e2ae85388d GCC warning removed. (ANSI C says it's "implementation-defined" what
integral type an enum corresponds to; I guess GCC says "unsigned int"
and MSVC says "int".)

svn path=/trunk/; revision=10745
2004-04-30 21:32:42 +00:00
Ulf Lamping e0d13b61c2 removed warnings of GTK1 compilation
svn path=/trunk/; revision=10739
2004-04-30 06:30:13 +00:00
Ulf Lamping 87f79212c7 MVSC warning removed
svn path=/trunk/; revision=10737
2004-04-30 05:25:52 +00:00
Guy Harris 83bf0c8719 The layout types and pane types don't depend on GTK+, so move their
definitions to "prefs.h".

Use them, rather than (incorrect) raw numerical values, when
initializing the preferences.

svn path=/trunk/; revision=10736
2004-04-30 00:40:45 +00:00
Guy Harris 9831d86922 Squelch some compiler warnings.
Clean up white space.

svn path=/trunk/; revision=10735
2004-04-30 00:22:46 +00:00
Ulf Lamping 414b631700 added selection of different main window pane layouts,
also added some preferences and a new preference page for this

svn path=/trunk/; revision=10729
2004-04-29 17:03:27 +00:00
Ulf Lamping 1cd1c93214 fixed a typo
svn path=/trunk/; revision=10727
2004-04-29 16:35:15 +00:00
Guy Harris f38a9edcc9 Note that a custom widget might be the right way to speed up the
construction of the hex dump pane (so we don't need a progress bar(!)
while it's being filled in), and might have some other UI advantages as
well.

svn path=/trunk/; revision=10723
2004-04-28 20:56:43 +00:00
Guy Harris 9aa9177401 Change the punctuation in one tooltip (I think "select the desired one"
would be an independent clause, so it should be separate from the other
clause with a semicolon).

Note that, in that tooltip, in some cases "link-layer types" would be
appropriate and in others "link-layer header types" might be more
appropriate.

svn path=/trunk/; revision=10722
2004-04-28 20:47:43 +00:00
Gilbert Ramirez faa3b28970 Minor wording changes in tooltips.
svn path=/trunk/; revision=10721
2004-04-28 19:13:15 +00:00
Ulf Lamping 4ba94c6ebb added tooltips for various input fields
svn path=/trunk/; revision=10720
2004-04-28 18:39:46 +00:00
Ulf Lamping 727b63bd8c Freely adjustable status line separations.
svn path=/trunk/; revision=10715
2004-04-27 19:16:11 +00:00
Ulf Lamping f59f209d4f save the position of the main window panes in the recent file,
and restore their position when program is started again (GTK2 only)

svn path=/trunk/; revision=10706
2004-04-25 23:45:12 +00:00
Ulf Lamping 0d74ec909c removed some labels
svn path=/trunk/; revision=10705
2004-04-25 22:34:06 +00:00
Ulf Lamping d40c7940f0 changed the export dialog menu item names (added some descriptions)
svn path=/trunk/; revision=10702
2004-04-25 22:14:17 +00:00
Guy Harris 047c8af10a Squelch a compiler warning.
svn path=/trunk/; revision=10700
2004-04-25 21:46:19 +00:00
Ulf Lamping 014052caf9 created new "export" dialogs for the current export file formats
svn path=/trunk/; revision=10694
2004-04-25 16:04:13 +00:00
Ulf Lamping 895375603d put all required data into the print_args,
instead of confusing seperation of data

svn path=/trunk/; revision=10692
2004-04-25 12:04:08 +00:00
Ulf Lamping afecdb8461 changed the print dialog, so it will keep the user settings after reopening the dialog
and some code cleanup

svn path=/trunk/; revision=10685
2004-04-25 08:01:06 +00:00
Ulf Lamping 1531315c18 some code cleanup of the printing system
svn path=/trunk/; revision=10682
2004-04-24 23:13:46 +00:00
Ulf Lamping 018535b82f added a progress dialog box, while processing packet details,
activating packet details notebook pages, to avoid desegmenting GUI confusion

svn path=/trunk/; revision=10674
2004-04-23 19:43:06 +00:00
Guy Harris 0566f389ae Mark some parameters as unused (the GTK+ signal calling sequence
requires that they be present).

svn path=/trunk/; revision=10671
2004-04-23 05:16:21 +00:00
Guy Harris 8774b55cbb Get rid of static forward declaration of "toggle_captured_cb()", as it's
no longer defined here.

svn path=/trunk/; revision=10669
2004-04-23 03:22:10 +00:00
Gerald Combs 0ef83dcfa5 Add gsm_map_stat.h and mtp3_stat.h to the distribution.
svn path=/trunk/; revision=10667
2004-04-23 02:00:13 +00:00
Ulf Lamping 50533286e2 oops, forgotten to test with GTK1...
svn path=/trunk/; revision=10666
2004-04-22 21:40:48 +00:00
Ulf Lamping 3b86a98d53 seperated common packet range code from the save and the print dialog,
and put it into new range_utils files. This will avoid:
a) duplicate code in save and print dialog and
b) yet another code duplication for future dialogs (export, ...)

svn path=/trunk/; revision=10665
2004-04-22 21:31:09 +00:00
Anders Broman 44907a0d53 From Martin Mathieson
add 2 hidden display filters for SIP - namely:
(1)  sip.error (for all responses with code >= 300)
(2)  sip.resend (for all packets that appear to have been retransmitted). A
field showing a count of these is shown in the SIP stats window.

svn path=/trunk/; revision=10662
2004-04-22 20:09:41 +00:00
Ulf Lamping 51f987e04f added some options and enhancements to the print output:
-ps: added formatting hints for ghostscript, so pdf conversion will be much better
-ps: print a thin line at the top and bottom of each page
-ps/text: add an option to start a new page for every packet (formfeed)

svn path=/trunk/; revision=10660
2004-04-22 17:03:21 +00:00
Guy Harris 086e2c3548 From Michael Lum:
ANSI and GSM MAP stats enhancements and cleanups;

	enhanced parameter dissection related to SS for GSM A-interface
	and MAP;

	minor GSM SMS fix;

	GSM SS enhancements for parameter dissection;

	MTP3 statistics tap.

svn path=/trunk/; revision=10657
2004-04-21 17:57:31 +00:00
Guy Harris c6aeb05249 From Michael Lum:
ANSI and GSM MAP stats enhancements and cleanups;

	enhanced parameter dissection related to SS for GSM A-interface
	and MAP;

	minor GSM SMS fix;

	GSM SS enhancements for parameter dissection;

	MTP3 statistics tap.

svn path=/trunk/; revision=10655
2004-04-21 05:53:59 +00:00
Olivier Biot f1c30d72c8 Part 2 of Ulf's print update.
svn path=/trunk/; revision=10654
2004-04-21 00:48:22 +00:00
Ulf Lamping f4564cf6aa added PSML output to the printing dialog
svn path=/trunk/; revision=10628
2004-04-17 11:50:14 +00:00
Guy Harris e6f2831d43 Confirmation dialogs should be marked as such.
svn path=/trunk/; revision=10622
2004-04-17 01:12:47 +00:00
Guy Harris d4bb41b15d Failure to get the list of interfaces should be reported as an error.
svn path=/trunk/; revision=10621
2004-04-17 01:10:09 +00:00
Guy Harris 5fe1168180 Report problems due to the user specifying something we can't handle as
errors, not warnings.

svn path=/trunk/; revision=10618
2004-04-17 01:01:22 +00:00
Guy Harris 5d9b301783 Report errors in opening various configuration files at the time the
failure occurs; now that "simple_dialog()" queues up messages if we
don't yet have the main window, those messages will be queued up until
then.

Move the point at which we pop up those queued messages after the
"process all pending GUI events" is done, so that those messages are
properly displayed on top of the main window.

svn path=/trunk/; revision=10617
2004-04-16 23:57:54 +00:00
Guy Harris d209115ba3 Add a "report_failure()" routine to allow dissectors to report arbitrary
errors to the user.  Use that, rather than "g_warning()", in the
Diameter dissector to report errors reading the dictionary.

Make the format argument to "simple_dialog()" a "const" pointer.

Fix up the read-error message in Tethereal to end with a newline.

If a simple dialog is requested before the main window or the
capture-control window is popped up, queue it up and pop the queued
messages up once the main or capture-control window is displayed.

svn path=/trunk/; revision=10616
2004-04-16 23:17:13 +00:00
Guy Harris 00a057b79f Make "new_color_filter()" take the background and foreground colors, as
GdkColors, as arguments.

svn path=/trunk/; revision=10613
2004-04-16 19:36:36 +00:00
Guy Harris e20b794c0e You have to initialize a GtkColor structure before passing it to
"get_color()" - otherwise, GDK will allocate a color from the colormap
to match whatever random values happen to be there.

svn path=/trunk/; revision=10612
2004-04-16 19:05:05 +00:00