aboutsummaryrefslogtreecommitdiffstats
path: root/gtk2/main.c
AgeCommit message (Collapse)AuthorFilesLines
2002-11-03Merge gtk and gtk2 directories.oabad1-2625/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6552 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-25The versions of UCD SNMP that we now support all installguy1-13/+7
<ucd-snmp/version.h>, so get rid of the stuff to check for its presence and handle its absence. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6503 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-25From Ronnie Sahlberg: Ethereal support for DCERPCSTAT.guy1-2/+38
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6499 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-25At least according to the UNIX 98 spec, you need to include <unistd.h>guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6497 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-24Don't include the header file to get the SNMP version unless we'reguy1-1/+11
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6493 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-23From Wes Hardaker:guy1-7/+35
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6483 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-28From Ulf Lamping : patch to run the gtk2 port on win32.oabad1-5/+30
- 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6347 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-27Update tethereal to put the filter string in the statistics table for RPC_STAT.sahlberg1-5/+10
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6343 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-23Change to color filters :oabad1-5/+5
- 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6324 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-09From Graeme Hewson:guy1-3/+15
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6238 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-07Change naming for rpcstat and rpcprogssahlberg1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6212 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-06Patch from Oliver Abad to reduce CPU used by the redraw thread. Use g_sleep()sahlberg1-5/+7
instead of a crude busy-wait loop. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6203 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-06From Vassilii Khachaturov, cleanup of redundant code.sahlberg1-20/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6202 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-06Moved two other functions from gtk2-rpc[stat|progs].c into main.c so itsahlberg1-1/+3
will be easier to reuse these functions on non-threaded gtk1-ethereal. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6196 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-06Gtk2 port of RPCPROGS statisticssahlberg1-2/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6194 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-06Moved access of the mutex protecting the critical region into gtk2/main.csahlberg1-2/+18
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6193 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-05Include cleanups in gtk and gtk2:jmayer1-19/+1
Remove unneded includes Add include wrappers where missing git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6191 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-05Added a mutex to protect a critical region in Gtk2 where the list can besahlberg1-2/+28
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. ) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6189 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-04Enable rpcstat in the gtk2 guisahlberg1-1/+30
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6184 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-31GTK+ v2 port.oabad1-0/+2467
All the deprecated widgets have not been replaced yet : GtkList and GtkCList ==> GtkTreeView conversion : - color_dlg.c - column_prefs.c - decode_as_dlg.c : done - dfilter_expr_dialog - filter_prefs.c - main.c - plugins_dlg.c : done GtkCTree ==> GtkTreeView conversion : done GtkText ==> GtkTextView conversion : done Remaining problems : - gtk_font_selection_dialog_set_filter doesn't exist anymore (but hasn't been removed from the documentation). I don't know how to filter the font selection dialog to get only fixed width fonts ; - we have to remove GUI prefs which are not usefule anymore : tree line style and tree expander style. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6153 f5534014-38df-0310-8fa8-9805f1628bb7