Commit Graph

1510 Commits

Author SHA1 Message Date
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