aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/tcp_graph.c
AgeCommit message (Collapse)AuthorFilesLines
2004-06-17move font related stuff to new file font_utils.c/.hUlf Lamping1-6/+2
do some font related renaming/code cleanup svn path=/trunk/; revision=11166
2004-06-10"delete_event" is an event, so its handler takes three arguments, notGuy Harris1-32/+42
two, and it returns a gboolean. svn path=/trunk/; revision=11133
2004-05-26more code cleanup from dialog things:Ulf Lamping1-7/+3
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-23use new functions in window API (ui_util.h),Ulf Lamping1-25/+21
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-04-12added a close button to the dialogs,Ulf Lamping1-13/+25
use the dlg_window_new function for all dialogs svn path=/trunk/; revision=10586
2004-03-17Use "g_ntohs()" rather than "ntohs()".Guy Harris1-3/+3
svn path=/trunk/; revision=10390
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-14/+10
various other string related changes svn path=/trunk/; revision=10373
2004-02-27cosmetic update to tcp graphs.Ronnie Sahlberg1-3/+17
Put both capture filename and x.x.x.x:x -> y.y.y.y:y describing the tcp session we are currently graphing in the menu text of the window. svn path=/trunk/; revision=10249
2004-02-23minor changeUlf Lamping1-5/+5
svn path=/trunk/; revision=10206
2004-02-23Changed all items to "Endpoint List" and get rid of the "Host List" group.Ulf Lamping1-5/+5
called "IO stats" now "Throughput Graph" as this might be somewhat more descriptive IMHO. Same applies to the "TCP Stream Analysis" -> "TCP Stream Graphs" svn path=/trunk/; revision=10203
2004-02-23statistics menu redesigned, now looking more like the former menu,Ulf Lamping1-5/+5
items now again grouped by function, not by ISO layer svn path=/trunk/; revision=10202
2004-02-22tcp_graph.h is no longer needed, as the tap mechanism is now usedUlf Lamping1-2/+1
svn path=/trunk/; revision=10182
2004-02-22Redesigned the menu structure of the former statistics stuff,Ulf Lamping1-2/+26
now sorted by ISO-layer, than alphabetically (now longer by functionality). Seperated the tap registering from the actual menu making stuff, so the seperate step of registering the tap and the menu is no longer needed. Removed all things related to this double registering. svn path=/trunk/; revision=10180
2004-02-13Add a "window_new()" routine that creates a window of a given type, setsGuy Harris1-24/+16
the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-4/+10
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-14/+14
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-31renamed ESD_TYPE_CRIT to ESD_TYPE_ERROR toUlf Lamping1-2/+2
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-25Have the Wiretap open, read, and seek-and-read routines return, inGuy Harris1-4/+5
addition to an error code, an error info string, for WTAP_ERR_UNSUPPORTED, WTAP_ERR_UNSUPPORTED_ENCAP, and WTAP_ERR_BAD_RECORD errors. Replace the error messages logged with "g_message()" for those errors with g_strdup()ed or g_strdup_printf()ed strings returned as the error info string, and change the callers of those routines to, for those errors, put the info string into the printed message or alert box for the error. Add messages for cases where those errors were returned without printing an additional message. Nobody uses the error code from "cf_read()" - "cf_read()" puts up the alert box itself for failures; get rid of the error code, so it just returns a success/failure indication. Rename "file_read_error_message()" to "cf_read_error_message()", as it handles read errors from Wiretap, and have it take an error info string as an argument. (That handles a lot of the work of putting the info string into the error message.) Make some variables in "ascend-grammar.y" static. Check the return value of "erf_read_header()" in "erf_seek_read()". Get rid of an unused #define in "i4btrace.c". svn path=/trunk/; revision=9852
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-16/+23
layouting the dialog buttons, and use it where appropriate. This will help us with the GTK1/2 conflict on button layouts and will also result in a more consistent look of the dialogs at all. svn path=/trunk/; revision=9771
2004-01-21use stock buttons whereever possible,Ulf Lamping1-7/+2
added some ethereal specific stock icons svn path=/trunk/; revision=9763
2004-01-13Make the variable into which values fromGuy Harris1-5/+5
"gtk_spin_button_get_value_as_float()" be doubles rather than floats - GTK+ 2.x's "gtk_spin_button_get_value_as_float()" actually returns doubles. svn path=/trunk/; revision=9654
2004-01-10using button compatibility macrosUlf Lamping1-8/+3
svn path=/trunk/; revision=9636
2004-01-10removed two MSVC warnings (GTK2 related)Ulf Lamping1-3/+3
svn path=/trunk/; revision=9628
2004-01-05removed some MSVC warnings (level 3)Ulf Lamping1-9/+9
svn path=/trunk/; revision=9560
2003-12-23removed some MSVC warnings (conversions between double/float and int)Ulf Lamping1-30/+30
svn path=/trunk/; revision=9422
2003-12-17removed some more MSVC warnings (type casting)Ulf Lamping1-4/+4
svn path=/trunk/; revision=9326
2003-12-09Mark parameter data as unused in callback_create_help().Olivier Biot1-2/+2
svn path=/trunk/; revision=9226
2003-09-25From Laurent Rabret:Guy Harris1-8/+38
handle 802.1Q frames; catch the destroy signal on the main Ethereal window and destroy our windows (avoids a crash). Get the PPP type value for IP from "ppptypes.h" rather than defining it ourselves. svn path=/trunk/; revision=8537
2003-09-16Handle PPP with a pseudo-header.Guy Harris1-1/+2
svn path=/trunk/; revision=8486
2003-09-15Get rid of a no-longer-relevant comment.Guy Harris1-2/+1
svn path=/trunk/; revision=8477
2003-09-03Check for "wtap_seek_read()" failing.Guy Harris1-3/+8
svn path=/trunk/; revision=8364
2003-08-18From Gisle Vanem: MingW declares "rint()" in <math.h> and defines it inGuy Harris1-3/+3
a library, and declares "mode_t" in <sys/types.h>. svn path=/trunk/; revision=8185
2003-03-02Get rid of unneeded includes of "../ui_util.h".Guy Harris1-2/+1
svn path=/trunk/; revision=7257
2003-03-02Use "goto_frame()" to go to a given frame number, notGuy Harris1-9/+5
"packet_list_set_selected_row()" - frame N isn't necessarily being displayed as row N-1. svn path=/trunk/; revision=7256
2003-03-01Replace gdk_string_width and gdk_string_height withOlivier Abad1-39/+50
pango_layout_get_pixel_size in gtk2 code. svn path=/trunk/; revision=7245
2003-02-14From Didier Gautheron:Guy Harris1-30/+51
further fixes to the TCP graph code's cross handling; fix to sequence number overflow problems. svn path=/trunk/; revision=7145
2003-02-13From Didier Gautheron: fix up the handling of the cross.Guy Harris1-1/+4
svn path=/trunk/; revision=7138
2003-01-08Add some checks to make sure "gdk_color_parse()" andGuy Harris1-12/+78
"gdk_colormap_alloc_color()" succeed. (We drive on anyway, but at least we let the user know.) svn path=/trunk/; revision=6874
2002-12-18Just use "packet_list_set_selected_row()" to select a given row in theGuy Harris1-15/+6
packet list (doing so makes the row visible as well). svn path=/trunk/; revision=6801
2002-12-18Don't assume that the time stamp of the last frame is the largest timeGuy Harris1-5/+10
stamp in the packet; bugs in the OS kernel or the WinPcap driver, or just forcibly setting the system time backwards, can cause time stamps in packet traces not to monotonously increase. That can cause infinite loops when picking the scale for the graph. svn path=/trunk/; revision=6800
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-278/+78
svn path=/trunk/; revision=6610
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-152/+428
svn path=/trunk/; revision=6552
2002-10-10Add (back) some #include <string.h>Jörg Mayer1-1/+2
svn path=/trunk/; revision=6394
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-3/+1
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-22/+22
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-33/+25
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930
2002-04-29Removal (or, at least, #ifdeffing out) of unused variables andGuy Harris1-2/+5
functions, from David Frascone. svn path=/trunk/; revision=5288
2002-03-05From Joerg Mayer: remove unused variables.Guy Harris1-2/+1
svn path=/trunk/; revision=4879
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-11/+11
svn path=/trunk/; revision=4878
2002-03-05Have "wtap_seek_read()" return 0 on success and -1 on failure, and takeGuy Harris1-4/+7
an "err" argument that points to an "int" into which to put an error code if it fails. Check for errors in one call to it, and note that we should do so in other places. In the "wtap_seek_read()" call in the TCP graphing code, don't overwrite "cfile.pseudo_header", and make the buffer into which we read the data WTAP_MAX_PACKET_SIZE bytes, as it should be. In some of the file readers for text files, check for errors from the "parse the record header" and "parse the hex dump" routines when reading sequentially. In "csids_seek_read()", fix some calls to "file_error()" to check the error on the random stream (that being what we're reading). svn path=/trunk/; revision=4874