aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/follow_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2004-09-29Move various tables into the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12130
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-10Move the stuff to handle ASCII <-> EBCDIC conversions toGuy Harris1-0/+1
"epan/charsets.c"; other character set translation code should perhaps go there as well. svn path=/trunk/; revision=11958
2004-08-06From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that anGuy Harris1-1/+1
include of <resolv.h> in any system header file gets the system <resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]). svn path=/trunk/; revision=11615
2004-07-25Make some generic print routines that take, as an argument, a pointer toGuy Harris1-57/+69
a structure containing a pointer to print operations for that object and a pointer to the private subclass-dependent data for that object, with subclasses for text and PostScript, and use those rather than the old scheme where a print format was passed as an argument - or where (as in the case of printing summary information in Tethereal) we just printed as text even if "-T ps" was selected. Check whether those routines succeed or get an I/O error writing output. Clean up indentation. svn path=/trunk/; revision=11514
2004-07-24Have "gtk/color_utils.c" contain routines with toolkit-independent APIs,Guy Harris1-1/+1
but toolkit-dependent implementations, for manipulating colors, and have "gtk/color_utils.h" declare them (the header file should eventually be moved to the top-level directory). Move the routines to convert between GdkColor and color_t out of there into "colors.c", and move their declarations into "colors.h", as their APIs are toolkit-dependent. Have the first such routine be a "create_color()" routine, which takes RGB values and initializes a "color_t", including doing any toolkit-dependent work necessary for that; use that in the "gtk/color_filters.c" code (the goal is to remove as many of the toolkit dependencies as possible from that code, and move it to the top-level directory). svn path=/trunk/; revision=11497
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-1/+1
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-07-09In the GTK+ code, move the redefinition of "isprint()" toGuy Harris1-1/+3
"gtk/isprint.h", and include that in "follow_dlg.c" (which wasn't including "gtkglobals.h" and thus wasn't getting the redefinition) and "proto_draw.c" (which was including "gtkglobals.h" but now needs to include "isprint.h" as well). svn path=/trunk/; revision=11355
2004-06-29The patch to fix the race condition introduced by using tmpnam replacedJörg Mayer1-2/+2
insecure code by not-working code. As I currently lack the time to fix this properly until Monday as the earliest possible date I undo the patch. Please note that Ethereal should not be used on multiuser systems with untrusted users until a proper fix has been applied. svn path=/trunk/; revision=11263
2004-06-25tmpnam() really should not be used for security reasons.Jörg Mayer1-2/+2
Replace it where used and update README.developer accordingly. svn path=/trunk/; revision=11235
2004-06-17move font related stuff to new file font_utils.c/.hUlf Lamping1-4/+4
do some font related renaming/code cleanup svn path=/trunk/; revision=11166
2004-06-01add details for doxygen, various code cleanups as a result of thisUlf Lamping1-7/+2
svn path=/trunk/; revision=11052
2004-05-27enable postcript printing if selected in prefs,Ulf Lamping1-24/+35
correctly remove temporary file on close dialog svn path=/trunk/; revision=11026
2004-05-27bugfixes: fixed printing on win32,Ulf Lamping1-50/+84
and convert none printable characters, so printing will work on binary output as well (like in the GUI output) svn path=/trunk/; revision=11025
2004-05-27bugfix: don't try to destroy a window, when it's already being destroyedUlf Lamping1-2/+1
svn path=/trunk/; revision=11016
2004-05-26Don't compile in "follow_save_as_destroy_cb()" for GTK+ 2.4 and later,Guy Harris1-1/+5
as it's not used. svn path=/trunk/; revision=11011
2004-05-26more code cleanup from dialog things:Ulf Lamping1-30/+22
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-22going to have a standard behaviour of the dialogsUlf Lamping1-2/+2
(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-09From Lars Roland: add support for building a libethereal.dll with MSVC:Guy Harris1-3/+3
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-04-21Part 2 of Ulf's print update.Olivier Biot1-2/+2
svn path=/trunk/; revision=10654
2004-04-09Make the hex dump byte counter a guint32, so that we don't wrap prematurely.Gerald Combs1-11/+11
svn path=/trunk/; revision=10578
2004-03-29Make "file_selection_new()" take as its second argument anGuy Harris1-23/+10
Ethereal-defined indication of the action (open vs. save), regardless of whether we're building for GTK+ >= 2.4 or not; we just ignore the argument in pre-2.4 GTK+. Use "file_selection_new()" rather than #if'ed code to use it or "gtk_file_chooser_dialog_new()" for GTK+ >= 2.4 and "gtk_file_selection_new()" or it for pre-2.4 GTK+. Add a "file_selection_set_current_folder()" routine that does the appropriate thing depending on whether we're GTK+ >= 2.4 or not, and use that rather than #if'ed code to use "gtk_file_chooser_set_current_folder()" or "gtk_file_selection_set_filename()". svn path=/trunk/; revision=10511
2004-03-27Use the new GtkFileChooserDialog when built with gtk+ 2.4Olivier Abad1-48/+75
svn path=/trunk/; revision=10502
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-9/+5
various other string related changes svn path=/trunk/; revision=10373
2004-03-13various string related changesUlf Lamping1-7/+10
svn path=/trunk/; revision=10372
2004-02-25Get rid of a debugging printf.Guy Harris1-2/+1
svn path=/trunk/; revision=10238
2004-02-23Add a "force" argument to "filter_packets()" andGuy Harris1-4/+7
"main_filter_packets()", to force the filtering to be done even if the filter is the same as the current one; this is necessary in order to make sure "Follow TCP Stream" gets the packets processed even if you're filtering the stream that's currently filtered in. svn path=/trunk/; revision=10209
2004-02-23statistics menu redesigned, now looking more like the former menu,Ulf Lamping1-18/+1
items now again grouped by function, not by ISO layer svn path=/trunk/; revision=10202
2004-02-22some changes to the dialog layout and added some tooltipsUlf Lamping1-30/+54
svn path=/trunk/; revision=10189
2004-02-22Redesigned the menu structure of the former statistics stuff,Ulf Lamping1-1/+20
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-10/+8
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-11Add "write_failure_alert_box()" to put up an alert box for a failedGuy Harris1-15/+10
attempt to write to a file (or close a file opened for writing). Get rid of no-longer-needed #includes of <epan/filesystem.h>. svn path=/trunk/; revision=10027
2004-02-11Add an "open_failure_alert_box()" routine to pop up an alert box for aGuy Harris1-7/+6
failed attempt to open/create a file. Fix one call to pass the right value for the "for_writing" flag. svn path=/trunk/; revision=10026
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-4/+5
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-16/+16
"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-9/+9
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-26Newlines in filter strings are a Bad Idea, as they don't display well inGuy Harris1-2/+2
the title or contents of the filtering progress bar window and don't work very well in files such as "recent" or "dfilters". svn path=/trunk/; revision=9869
2004-01-25apply automatically generated filters strings to the recent dropdown list,Ulf Lamping1-3/+3
e.g. when applying a "Follow TCP stream", fix a bug in the recent function, discarding the newest entries when saving a full list (now discarding the oldest). svn path=/trunk/; revision=9849
2004-01-25Don't have "follow_print_text()" display the error message, leave thatGuy Harris1-211/+222
up to its caller. Show errors as such, not as warnings, and show the right error message for failures to open/create output files. svn path=/trunk/; revision=9830
2004-01-25There's no need to keep a "FILE *" for the file being printed to in aGuy Harris1-3/+5
"capture_file" structure. Keep it locally, instead. Check for errors when printing packets. Report failure to open a print destination and failure to write to a print destination differently. Don't have the "print preamble" and "print final" routines return success/failure indications - revert to the old scheme where they didn't, and have the callers use "ferror()" to check for errors. Report write errors when printing dissections in Tethereal. Report print errors as errors, not warnings. svn path=/trunk/; revision=9828
2004-01-24As with "file_write_error_message()", so withGuy Harris1-24/+87
"file_close_error_message()" - but just use "file_write_error_message()" for UNIX-style errors, under the assumption that a close will only fail because a buffer-flushing write fails or because "close()" itself fails when, for example, pushing unsynced NFS client-side writes out over the wire. Make several routines in "print.c" return success/failure indications. Check for write errors when printing "Follow TCP Stream" stuff or saving it to a file. svn path=/trunk/; revision=9825
2004-01-24As with "cf_open_error_message()"/"file_open_error_message()", so withGuy Harris1-2/+2
"cf_write_error_message()"/"file_write_error_message()". Use "file_open_error_message()" instead of "cf_open_error_message()" in some places we missed in the previous checkin. Catch ENOSPC and EDQUOT in "file_open_error_message()". Use "file_open_error_message()" rather than "file_write_error_message()" to report errors when creating the file to which we're saving the "Follow TCP Stream" data. svn path=/trunk/; revision=9823
2004-01-10using button compatibility macrosUlf Lamping1-16/+4
svn path=/trunk/; revision=9636
2003-12-24Do the "isprint()" hack for GTK+ 2.x or 1.3[.x], whether on UNIX orGuy Harris1-14/+3
Windows - the problem is that GTK+ 1.3[.x] and later assume strings handed to them are UTF-8 strings, not, for example, ISO 8859/x strings. In packet-radius.c, re-define "isprint()" rather than #ifdeffing its use (the old code was also incorrectly treating 0x7f as a printable). svn path=/trunk/; revision=9436
2003-04-06From emre: add a "Filter out this stream" button to the "Follow TCPGuy Harris1-2/+59
Stream" window, which adds "and !(<filter for the stream>)" to the display filter in effect before the stream was followed, removing that stream from the display. svn path=/trunk/; revision=7408
2003-03-06From Devin Heitmueller: follow TCP Stream support for showing streamGuy Harris1-2/+61
data as C byte arrays. svn path=/trunk/; revision=7291
2002-11-10Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-114/+30
svn path=/trunk/; revision=6600
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-17/+140
svn path=/trunk/; revision=6552
2002-09-09From Graeme Hewson:Guy Harris1-5/+24
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