Commit Graph

55 Commits

Author SHA1 Message Date
Tim Potter e26a5af8c2 Ignore Makefile{,.in}
svn path=/trunk/; revision=6608
2002-11-11 05:44:25 +00:00
Olivier Abad 05ef1fc475 Merge gtk and gtk2 directories.
svn path=/trunk/; revision=6552
2002-11-03 17:38:45 +00:00
Olivier Abad cbe515ceee GtkCList to GtkTreeView conversion in color_dlg.c
svn path=/trunk/; revision=6514
2002-10-27 19:32:25 +00:00
Guy Harris 72d59f0596 The versions of UCD SNMP that we now support all install
<ucd-snmp/version.h>, so get rid of the stuff to check for its presence
and handle its absence.

svn path=/trunk/; revision=6503
2002-10-25 03:13:11 +00:00
Guy Harris f94df3780a Add the DCERPCSTAT stuff.
svn path=/trunk/; revision=6500
2002-10-25 01:10:07 +00:00
Guy Harris 35c1970720 From Ronnie Sahlberg: Ethereal support for DCERPCSTAT.
svn path=/trunk/; revision=6499
2002-10-25 01:08:49 +00:00
Guy Harris f54f6a1a0a At least according to the UNIX 98 spec, you need to include <unistd.h>
to declare "getopt()" and the variables it uses; tethereal.c already
includes it, but gtk/main.c and gtk2/main.c, which also use "getopt()",
don't - make them do so.

svn path=/trunk/; revision=6497
2002-10-25 00:29:12 +00:00
Guy Harris ae1ebc09da Don't include the header file to get the SNMP version unless we're
building with an SNMP library.

If we have Net-SNMP, include <net-snmp/version.h>, not
<ucd-snmp/version.h>.

Don't include any of the SNMP headers unless HAVE_SOME_SNMP is defined.

Include <net-snmp/config_api.h> if we have Net-SNMP, to declare
"read_premib_configs()" and "read_configs()".

Supply the include directories for Net-SNMP in the Makefile.nmake for
GTK 1.2 and GTK 2.

svn path=/trunk/; revision=6493
2002-10-24 07:08:26 +00:00
Guy Harris 3266b0bb14 From Ronnie Sahlberg: make the tap listeners for gtk and gtk2 redissect
the packet list immediately when the tap is started.

svn path=/trunk/; revision=6488
2002-10-23 23:17:26 +00:00
Guy Harris 6d8d731412 From Ronnie Sahlberg: pass a pointer to the epan_dissect_t for a packet
to taps.

svn path=/trunk/; revision=6487
2002-10-23 23:12:38 +00:00
Guy Harris cc8a765d8e From Wes Hardaker:
Define HAVE_SOME_SNMP if either HAVE_UCD_SNMP or HAVE_NET_SNMP
	is defined, and use HAVE_SOME_SNMP, rather than HAVE_UCD_SNMP,
	in most places when testing whether we have an SNMP library or
	not.

	Be more selective when including Net-SNMP header files.

Fix up {gtk,gtk2}/main.c to do the same SNMP stuff that tethereal.c
does - including the MIB stuff that gtk/main.c was doing but gtk2/main.c
wasn't doing.

Fix the copyright date in gtk/main.c.

svn path=/trunk/; revision=6483
2002-10-23 18:24:09 +00:00
Jörg Mayer 687e8d11ba Add (back) some #include <string.h>
svn path=/trunk/; revision=6397
2002-10-10 02:57:13 +00:00
Olivier Abad 4b5fa096fa From Ulf Lamping : patch to run the gtk2 port on win32.
- gettimeofday changed into glib's g_get_current_time (to be able to
  compile)
- disabled multithreading (doesn't seem to work on win32) and used
  gtk_timeout_add() as in gtk1.2 to keep tap extensions updating.

svn path=/trunk/; revision=6347
2002-09-28 09:29:49 +00:00
Olivier Abad 44618beae3 From Ulf Lamping: Prettyfied Colorization dialog.
This dialog has not been ported to gtk2 yet (see gtk2/STATUS), so it's
just the gtk1 code.

svn path=/trunk/; revision=6346
2002-09-28 09:19:12 +00:00
Ronnie Sahlberg c0b84c028f Update tethereal to put the filter string in the statistics table for RPC_STAT.
Update gtk and gtk2 versions of RPC_STAT to allow a filter string to be specified on both the command line as well as the GUI.

Update the documentation for ethereal to reflect this.

svn path=/trunk/; revision=6343
2002-09-27 11:07:16 +00:00
Olivier Abad 1b89d48835 Change to color filters :
- moved color_filter_t in color.h
- change color_filter_t to use color_t instead of GdkColor

This changed allowed to remove the last gtk includes in file.c. It is
now completely free of any gtk related code.

svn path=/trunk/; revision=6324
2002-09-23 19:09:52 +00:00
Jörg Mayer 4472ece255 Add packet_list.obj
svn path=/trunk/; revision=6320
2002-09-23 15:00:39 +00:00
Gerald Combs 7d7c2e075e From Graeme Hewson:
In my recent patches to set and use a default directory, I neglected
  to set the directory when the user enters a file name directly into the
  "Capture Options" and "Print" dialogs instead of using the file dialog.
  This set of patches corrects this.

svn path=/trunk/; revision=6318
2002-09-22 17:52:38 +00:00
Olivier Abad d72aca0b7e Removed all gtk calls in file.c :
- created a few packet_list_xxx functions (ui_util.h gtk/packet_list.c
  gtk2/packet_list.c) ;
- removed almost all "gtk/xxx" and "gtk2/xxx" includes in file.c

The only remaining includes are related to color filters. We have to
make color_filter_t GUI independent by replacing GdkColor with color_t.
I'll work on this later.

svn path=/trunk/; revision=6311
2002-09-21 11:36:30 +00:00
Olivier Abad 9226809ef4 - add a new GUI preference in the gtk2 port. It allows to use
alternating colors in all TreeView widgets (see
  gtk_tree_view_set_rules_hint()).

- remove unused preferences in the gtk2 port (tree_expander_style and
  tree_line_style).

svn path=/trunk/; revision=6296
2002-09-14 10:07:40 +00:00
Olivier Abad 706ba0dba5 GtkList to GtkTreeView conversion.
svn path=/trunk/; revision=6261
2002-09-10 20:54:14 +00:00
Olivier Abad bc9c7d7fe7 Add a reference to gtk2 docs which recommends replacing gtk_signal_xxx
functions with their g_signal_xxx equivalent.

svn path=/trunk/; revision=6260
2002-09-10 20:53:26 +00:00
Olivier Abad 9a69e5c6c8 replace gtk_signal_emit_by_name() with g_signal_emit_by_name()
svn path=/trunk/; revision=6259
2002-09-10 20:49:07 +00:00
Olivier Abad d7214d8193 Call gtk_tree_model_get() only if gtk_tree_selection_get_selected()
returns TRUE (i.e. get data from the selected row only if something has
been selected).

svn path=/trunk/; revision=6258
2002-09-10 19:39:00 +00:00
Guy Harris 1d5b83b842 Add "/I$(ZLIB_DIR)" to the list of "/I" flags in the top-level directory
and the "gtk" and "gtk2" directories, so that we find "zlib.h", as we
now define "HAVE_ZLIB" in the top-level "config.h.win32" and thus try to
include "zlib.h" on Windows.

svn path=/trunk/; revision=6246
2002-09-10 10:08:41 +00:00
Guy Harris 5e8ecbaf46 From Graeme Hewson:
Currently Ethereal sets and uses a default directory for reading
	and writing, but only in some places.  This set of patches extends
	the setting of the default directory to the -w option as well as
	the -r option, and causes all file dialogs to use and set the
	default consistently.  (I haven't changed the
	Preferences/Printing/File dialog, though, as that's a special
	case.)

	There's also a fix for a bug where Ethereal was issuing the
	message "Ring buffer requested, but capture isn't being saved to
	a permanent file" even though a file was specified with -w.

There also appear to be some other cleanups in his patch.

svn path=/trunk/; revision=6238
2002-09-09 20:39:01 +00:00
Jörg Mayer 49425de396 Add/fix cvs id tags
svn path=/trunk/; revision=6237
2002-09-09 20:32:32 +00:00
Guy Harris 7283f9b347 Put back missing include of <stdio.h>.
Fix the RCS ID.

svn path=/trunk/; revision=6235
2002-09-09 20:16:12 +00:00
Guy Harris c949d23143 Explain the GTK+ developers' thinking about detecting fixed-width fonts
and about making some tree view item behaviors settable by applications.

svn path=/trunk/; revision=6227
2002-09-08 01:20:02 +00:00
Olivier Abad f4f1c891dc GtkCList to GtkTreeView conversion.
svn path=/trunk/; revision=6222
2002-09-07 21:21:56 +00:00
Olivier Abad 51b942e186 Add missing gtk_tree_path_free()
svn path=/trunk/; revision=6221
2002-09-07 21:21:14 +00:00
Olivier Abad eea71f4b6d Strings copied from a TreeModel must be freed after usage.
svn path=/trunk/; revision=6220
2002-09-07 18:35:16 +00:00
Jörg Mayer 6872097e8f Add back stdio.h
svn path=/trunk/; revision=6218
2002-09-07 14:56:57 +00:00
Olivier Abad 1cfc7d562c GtkList to GtkTreeView conversion.
svn path=/trunk/; revision=6217
2002-09-07 10:48:07 +00:00
Ronnie Sahlberg 5b2510fb8e Tap system supprot for Gtk1 and both rpc_stat and rpc_progs
Gtk1 is still single threaded so if the tap extensions need to do something
time consuming or cpu intensive, then the main application will suffer.

It is better than nothing.

svn path=/trunk/; revision=6215
2002-09-07 10:02:36 +00:00
Ronnie Sahlberg e0ccffe293 remove old files we have renamed to proper names
svn path=/trunk/; revision=6213
2002-09-07 09:29:46 +00:00
Ronnie Sahlberg 244b20d868 Change naming for rpcstat and rpcprogs
svn path=/trunk/; revision=6212
2002-09-07 09:28:05 +00:00
Jörg Mayer 2e0595ad63 Add back more string.h includes
svn path=/trunk/; revision=6205
2002-09-07 00:02:24 +00:00
Ronnie Sahlberg 4bf8ffa040 Patch from Oliver Abad to reduce CPU used by the redraw thread. Use g_sleep()
instead of a crude busy-wait loop.

svn path=/trunk/; revision=6203
2002-09-06 22:53:19 +00:00
Ronnie Sahlberg 429b24827b From Vassilii Khachaturov, cleanup of redundant code.
svn path=/trunk/; revision=6202
2002-09-06 22:45:44 +00:00
Ronnie Sahlberg a8fd6b2fae Moved two other functions from gtk2-rpc[stat|progs].c into main.c so it
will be easier to reuse these functions on non-threaded gtk1-ethereal.

svn path=/trunk/; revision=6196
2002-09-06 13:24:45 +00:00
Ronnie Sahlberg 694eba5dbd Gtk2 port of RPCPROGS
svn path=/trunk/; revision=6195
2002-09-06 10:14:14 +00:00
Ronnie Sahlberg 6ccf93089e Gtk2 port of RPCPROGS statistics
svn path=/trunk/; revision=6194
2002-09-06 10:13:17 +00:00
Ronnie Sahlberg e318b2ff8a Moved access of the mutex protecting the critical region into gtk2/main.c
so that it would be possible to share an unmodified gtk2-rpcstat.c with
any future gtk1-ethereal support for the tap system.

Anyone reading this cvs entry:
Perhaps someone could just try to add a draw_all_listeners() to the place in
file.c where it has finished reading or rescanning all packets.
That might work though it wouldnt update in semi-real time but would
be simple and better than nothing.

svn path=/trunk/; revision=6193
2002-09-06 08:58:20 +00:00
Jörg Mayer e4a2e2cefe Include cleanups in gtk and gtk2:
Remove unneded includes
Add include wrappers where missing

svn path=/trunk/; revision=6191
2002-09-05 18:48:52 +00:00
Ronnie Sahlberg a26f9d5107 Added a mutex to protect a critical region in Gtk2 where the list can be
modified while the draw thread is walking it.

Changed the cmdline switch to -z so the same one can be used both for
ethereal and tethereal.

Updated man pages to reflect the RPCSTAT feature.

(Try this with Tools/Statistics/ONC-RPC/RTT and load a capture containing
onc-rpc. )

svn path=/trunk/; revision=6189
2002-09-05 06:46:38 +00:00
Ronnie Sahlberg b08f943ac6 Enable rpcstat in the gtk2 gui
svn path=/trunk/; revision=6184
2002-09-04 22:19:42 +00:00
Ronnie Sahlberg 77e51f9b1c Functions for the gtk2 based version of rpcstat
svn path=/trunk/; revision=6183
2002-09-04 22:18:12 +00:00
Olivier Abad da5d4a70f9 New file describing the status of the GTK+ 2.0 port.
svn path=/trunk/; revision=6168
2002-09-02 16:22:31 +00:00
Olivier Abad 38ff21ecac Fix accelarators/mnemonics in dialogs containing radio or check buttons.
The GTK+ v2 documentation says accelarators should only be used with
menus. For text entries or buttons, we must use mnemonics.

Replace dlg_check_button_new_with_label_with_mnemonic() and
dlg_radio_button_new_with_label_with_mnemonic() with
gtk_check_button_new_with_mnemonic() and
gtk_radio_button_new_with_mnemonic()

For radio buttons, gtk_radio_button_group is deprecated. Use
gtk_radio_button_new_with_mnemonic_from_widget() to create a new button
in an existing group.

svn path=/trunk/; revision=6165
2002-09-01 09:46:54 +00:00