aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2002-11-11"gtk_quit_add_destroy()" takes a "GtkObject *" as its second argument inGuy Harris1-2/+2
both GTK+ 1.2[.x] and 2.x, so put the "GTK_OBJECT()" cast back in to squelch a compiler warning. svn path=/trunk/; revision=6612
2002-11-11Put in some missing macros needed for recent changes.Guy Harris1-4/+22
svn path=/trunk/; revision=6611
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad24-1381/+582
svn path=/trunk/; revision=6610
2002-11-11Replace gtk_rpcprogs_init with gtk_rpcprogs_cb in the gtk2 menu entry.Olivier Abad1-2/+2
svn path=/trunk/; revision=6609
2002-11-10Add tethereal's tap objects to Makefile.nmake's "clean" target.Gerald Combs1-19/+1
Instead of setting MIBDIRS in tethereal.c and gtk/main.c, set it in packet-snmp.c. svn path=/trunk/; revision=6606
2002-11-10When opening tap windows, we don't need to search the tap_list again. ItOlivier Abad1-9/+4
has been done when processing the -z command line option. svn path=/trunk/; revision=6602
2002-11-10- use gtk1/gtk2 compatibility macros to reduce #ifdefsOlivier Abad1-126/+57
- when processing tap extensions command line options, wait until the main window has been created before opening the tap window, to avoid lots of GTK warnings. svn path=/trunk/; revision=6601
2002-11-10Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad5-467/+161
svn path=/trunk/; revision=6600
2002-11-09Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad2-177/+59
svn path=/trunk/; revision=6597
2002-11-09Helper macros fro gtk1.2/gtk2 compatibility.Olivier Abad4-824/+330
It should reduce the number of #ifdefs in gtk source code. svn path=/trunk/; revision=6596
2002-11-07From Jason House: add the rule to make "ethereal-tap-register.c".Guy Harris1-5/+10
Make that rule work correctly, by making "ETHEREAL_TAP_SRC" refer to the *source* files, making "ETHEREAL_TAP_OBJECTS" be the *object* files (as generated from the list of source files), and adding "ETHEREAL_TAP_OBJECTS" rather than "ETHEREAL_TAP_SRC" to the list of objects to link. svn path=/trunk/; revision=6574
2002-11-07Fix the message printed when making "ethereal-tap-register.c".Guy Harris1-2/+2
svn path=/trunk/; revision=6573
2002-11-06Add "ethereal-tap-register.c" to the gtk ".cvsignore" file, as it's aGuy Harris1-0/+1
generated file. svn path=/trunk/; revision=6571
2002-11-06First step in creating an API to register TAPs for use with ethereal instead ↵Ronnie Sahlberg10-112/+166
of hardcoding them in main.c/menu.c This adds functions to register the command line arguments to use the API in the same way as is done for tethereal. Later it may be extended to also register the GUI/Menu entry point to ethereal using this api but that iwll be later since the changes required to menu.c are not as intrusive as the main.c command line parsing ones were. Some of the latest changes (before this checkin) has made ethereal to produce lots of GTK errors when starting up the extension windows. They were there before this checking but will be investigated. svn path=/trunk/; revision=6566
2002-11-03Merge gtk and gtk2 directories.Olivier Abad38-3387/+8289
svn path=/trunk/; revision=6552
2002-10-25The versions of UCD SNMP that we now support all installGuy Harris1-13/+7
<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-25From Ronnie Sahlberg: Ethereal support for DCERPCSTAT.Guy Harris6-5/+655
svn path=/trunk/; revision=6499
2002-10-25At least according to the UNIX 98 spec, you need to include <unistd.h>Guy Harris1-1/+5
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-24Don't include the header file to get the SNMP version unless we'reGuy Harris2-3/+14
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-23From Ronnie Sahlberg: make the tap listeners for gtk and gtk2 redissectGuy Harris2-3/+6
the packet list immediately when the tap is started. svn path=/trunk/; revision=6488
2002-10-23From Ronnie Sahlberg: pass a pointer to the epan_dissect_t for a packetGuy Harris2-4/+4
to taps. svn path=/trunk/; revision=6487
2002-10-23From Wes Hardaker:Guy Harris1-9/+19
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-10Add (back) some #include <string.h>Jörg Mayer3-3/+6
svn path=/trunk/; revision=6394
2002-10-09Add a missing #include <string.h>Jörg Mayer1-1/+2
svn path=/trunk/; revision=6390
2002-10-09Link to libsnmp under Win32.Gerald Combs1-3/+21
In gtk/main.c and tethereal.c set MIBDIRS to <get_program_path()>\snmp\mibs so that we can drop the MIB files there, instead of the default c:\usr\... path. Add NET_SNMP_DIR to config.nmake and modify Makefile.nmake to adjust CFLAGs, ethereal_LIBS and tethereal_LIBS accordingly. Define HAVE_UCD_SNMP in config.h.win32. I tested this by creating c:\program files\ethereal\snmp\mibs and dropping in the MIB files that come with Net-SNMP. Ethereal resolved system.sysDescr.0 to "iso.3.6.1.2.1.1.1.0" under Windows. Under Linux it resolved to "SNMPv2-MIB::sysDescr.0". Ethereal.nsi still needs to be updated. A compiled version of the Net-SNMP library can be found at http://www.ethereal.com/distribution/win32/development/ svn path=/trunk/; revision=6385
2002-09-27Update tethereal to put the filter string in the statistics table for RPC_STAT.Ronnie Sahlberg3-18/+58
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-26From Ulf Lamping: Prettyfied Colorization dialogRonnie Sahlberg1-138/+214
svn path=/trunk/; revision=6335
2002-09-23Change to color filters :Olivier Abad6-44/+47
- 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-23Add packet_list.obj to Makefile.nmake - spotted by Ulf LampingJörg Mayer1-1/+2
svn path=/trunk/; revision=6322
2002-09-22From Graeme Hewson:Gerald Combs2-20/+32
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-21Removed all gtk calls in file.c :Olivier Abad6-10/+172
- 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-10Add "/I$(ZLIB_DIR)" to the list of "/I" flags in the top-level directoryGuy Harris1-1/+2
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-09From Graeme Hewson:Guy Harris5-27/+151
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-09Add/fix cvs id tagsJörg Mayer2-1/+3
svn path=/trunk/; revision=6237
2002-09-09Put back missing include of <stdio.h>.Guy Harris1-3/+2
Fix the RCS ID. svn path=/trunk/; revision=6235
2002-09-07Tap system supprot for Gtk1 and both rpc_stat and rpc_progsRonnie Sahlberg8-5/+1052
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-07Add back stdio.hJörg Mayer1-1/+2
svn path=/trunk/; revision=6214
2002-09-07Add back more string.h includesJörg Mayer1-0/+2
svn path=/trunk/; revision=6205
2002-09-06From Vassilii Khachaturov, cleanup of redundant code.Ronnie Sahlberg1-20/+2
svn path=/trunk/; revision=6202
2002-09-06Put needed include back in (<string.h>, to declare "memset()").Guy Harris1-1/+2
svn path=/trunk/; revision=6201
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer38-194/+58
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-31Remove redundant HAVE_LIBPCAP check (copied from gtk2)Jörg Mayer1-4/+1
svn path=/trunk/; revision=6158
2002-08-31Remove trailing whitespaces.Jörg Mayer2-7/+7
svn path=/trunk/; revision=6155
2002-08-31Cast the Mbits/s calculation as a float, so that we display the valueGerald Combs1-2/+3
correctly for large captures. svn path=/trunk/; revision=6150
2002-08-28Make the "start_time" argument to "delayed_create_progress_dlg()" aGuy Harris1-5/+5
pointer to const, to emphasize that it does *not* modify the time pointed to by the argument. Make the initial delay for delayed progress bars 1/10 second rather than 1/2 second, as a 1/2 second delay is noticeable, especially when loading a file for the first time (as the main window looks a bit blank). Even at 1/10 second you can still notice it, but it's not *as* noticeable. svn path=/trunk/; revision=6118
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer67-781/+781
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-28From Ulf Lamping: extend the progress dialog box to give more progressGuy Harris1-22/+145
information. Fix the types of some variables (make the file position in "read_cap_file()" a "long", as Wiretap supports "long" offsets, and make processed-packet counts in packet-processing loops "int"s, as the total packet count in a "capture_file" structure is an "int"). svn path=/trunk/; revision=6112
2002-08-24Give the routines that implement the "Match" and "Prepare" menu itemsGuy Harris3-87/+87
more meaningful names, indicating whether they look at something in the protocol tree or the packet list. svn path=/trunk/; revision=6077
2002-08-13On Win32:Guy Harris1-1/+12
don't show "Command" and "File" as printer options, show "Printer" and "File"; don't show the command to be used for printing. svn path=/trunk/; revision=5986
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer14-103/+39
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930