aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/display_opts.c
AgeCommit message (Collapse)AuthorFilesLines
2002-11-10Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-130/+26
svn path=/trunk/; revision=6600
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-35/+181
svn path=/trunk/; revision=6552
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-15/+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-12/+12
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-5/+1
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930
2002-07-17From Joerg Mayer:Guy Harris1-5/+1
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". svn path=/trunk/; revision=5889
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-6/+6
svn path=/trunk/; revision=4878
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-4/+4
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
2002-01-13Add a preferences page for the name resolution flags.Guy Harris1-10/+8
Separate the preferences value for those flags and the name resolution code's value into separate variables; this means that the resolution code no longer depends on the preferences code, and may let us eventually have the current setting and the preference setting differ (so that a user can temporarily override the preference setting without causing subsequent saves of the preferences to save the temporary value). Add routines to create various types of widgets for preferences, and to fetch the values for "enumerated" preferences, and use them both in the code to handle hardwired preference pages and table-driven preference pages. svn path=/trunk/; revision=4536
2002-01-10Separate the promiscuous mode, "Update list of packets in real time",Guy Harris1-8/+14
and "Automatic scrolling in live capture" options from the preference settings for them, so that the preference settings affect the initial values of those options, but changing those values in a capture don't affect the preferences, and don't automatically get saved when you save the preferences. If we're building without libpcap, don't have an "Automatic scrolling in live capture" option anywhere. svn path=/trunk/; revision=4514
2001-06-18Get rid of an unnecessary declaration of "packet_list".Guy Harris1-4/+2
svn path=/trunk/; revision=3565
2001-05-31Support for "-N" flag enabling selected forms of name resolution, fromGuy Harris1-7/+35
Joerg Meyer. Support for saving to the preferences file the settings for all types of name resolution. Do a case-insensitive check for "true" and "false" in Boolean preference settings. svn path=/trunk/; revision=3489
2001-04-15There's no "enable name resolution in captures" preference in Ethereal,Guy Harris1-3/+3
and never was - there's only an Ethereal-wide "enable name resolution" preference. Name it just "name_resolve". Replace all tests of "g_resolving_actif" with tests of "prefs.name_resolv", and replace all code that sets "g_resolving_actif" with code that sets "prefs.name_resolv", so that the setting of "prefs.name_resolv" actually affects whether names are resolved or not. svn path=/trunk/; revision=3300
2001-04-13Added the ethereal capture preferences to the preference file.Jeff Foster1-5/+6
svn path=/trunk/; revision=3298
2000-11-01Add a fourth choice of time format in the packet list display, whichGuy Harris1-1/+17
shows the date (in YYYY-MM-DD format) as well as the time of day when the packet arrived. svn path=/trunk/; revision=2547
2000-10-19Move the declaration of "g_resolving_actif" from the top-levelGuy Harris1-1/+2
"globals.h" file to "epan/resolv.h", as it's exported by "epan/resolv.c", have files that use "g_resolving_actif" include "resolv.h", and don't have "epan/resolv.c" include "globals.h" so that it doesn't drag in, for example, headers that, in turn, drag in GTK+ headers. svn path=/trunk/; revision=2517
2000-08-23Bleah. What was I thinking? "dlg_window_new()" should take the titleGuy Harris1-3/+2
for the dialog window as an argument (as various dialog creators in GTK+ do), not oblige every caller of it to cut-and-paste a "gtk_window_set_title()" call after it. svn path=/trunk/; revision=2345
2000-08-22Remove the "Decode IPv4 TOS field as DiffServ field" option from theLaurent Deniel1-54/+14
display options since it is available from the preferences. svn path=/trunk/; revision=2341
2000-08-11Miscellaneous code cleaningLaurent Deniel1-10/+5
- add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
2000-07-09Put up a progress dialog when changing the time display; it can take aGuy Harris1-29/+57
long time on a large capture. If the user is changing the setting of "Display TOS as DiffServ" *and* the time stamp format, don't bother doing the time display update - we'll regenerate the entire display anyway because we changed the setting of "Display TOS as DiffServ". svn path=/trunk/; revision=2130
2000-07-09In the "Display Options" dialog box code, separately keep track of theGuy Harris1-11/+22
timestamp type when the dialog box was popped up, so we can revert to it if the user clicks "Cancel", and the timestamp type as of when we started *or* as of when we last changed it, so that we can check whether the user's changed it from its current value and only redisplay the time fields if they've changed it (as redisplaying the time fields could be expensive - we have to scan through all the packets and rebuild the packet list). svn path=/trunk/; revision=2128
2000-07-09Turn the code of "colorize_packet()" into a static routine that is givenGuy Harris1-2/+16
a word to use in the progress dialog, and a flag indicating whether the display filter is to be reevaluated or not, and: have "colorize_packet()" call that routine with "Colorizing" and FALSE as those arguments; have the filtering code call that routine with "Filtering" and TRUE as those arguments; add an exported routine to call that routine with "Reprocessing" and TRUE as those arguments, to use to re-generate the packet list and to re-filter the packets if a protocol preference has been changed. Keep track of whether preferences are changed from their initial value by a preferences file or a command-line option, or from their previous value by the "Preferences" dialog box; have "prefs_apply_all()" only call the "apply" callback for a module if they have. Call "prefs_apply_all()" after the command-line arguments have been parsed and after "OK" has been clicked in the "Preferences" dialog box, to notify modules of preference changes if they've registered a callback for that. After "OK" has been clicked in the "Preferences" dialog box, if any preferences have changed, call the reprocessing routine, as the summary line for some frames and/or the current display filter's value when applied to some frames may have changed as a result of a preference change. Do the same after "OK" or "Apply" has been clicked in the "Display Options" dialog box (as it controls a protocol preferences item. svn path=/trunk/; revision=2126
2000-07-05Add a "dlg_window_new()" routine, which creates a GTK_WINDOW_DIALOGGuy Harris1-2/+2
window and makes it transient for the top-level window; the transient-for at least provides a hint to X window managers to minimize the dialog if the main window is minimized; keep the dialog on top of the main window in the Z order for windows; perhaps (if there are any window managers that actually *do* this) even put it atop the main window in the X-Y plane (KWM doesn't and I seem to remember that the Exceed X server for Windows doesn't). It's generally considered the Right Thing To Do for dialog boxes. Use that routine to create dialog boxes, rather than doing it directly in the code for that dialog box. svn path=/trunk/; revision=2112
2000-06-27Pull the code to fetch display options from the display options dialogGuy Harris1-32/+18
box into a common subroutine. Don't call "change_time_formats()" to update the display unless the time format actually changed. svn path=/trunk/; revision=2094
2000-06-27Patch from Ben Fowler to rename the global variable "cf" to "cfile", toGuy Harris1-5/+5
make it easier to use grep to find all references to it without getting a lot of false hits and to check, after allocating the memory chunk for "frame_data" structures, that the allocation succeeded. svn path=/trunk/; revision=2092
2000-05-08Set up the buttons in the "Capture Preferences" dialog box to useGuy Harris1-3/+3
mnemonics. Give the button, in the "Display Options" dialog box, that controls whether name resolution is enabled or not the same label ("Enable name resolution") as the equivalent button in the "Capture Preferencs" dialog box. svn path=/trunk/; revision=1920
2000-05-08Keep a pointer to the current "Display Options" window, if any - if not,Guy Harris1-16/+24
the pointer is NULL - so that, instead of doing nothing if the user selects "Display->Options" when there's already a "Display Options" dialog box open, we raise and de-iconify that window. Register a "destroy" callback for the "Display Options" window, so that no matter how it's destroyed, even if it's destroyed by a window manager close button rather than by clicking the "OK" or "Cancel" button, we note that fact by clearing the pointer to the current "Display Options" window, so that if the user then selects "Display->Options", we know that we need to pop a new "Display Options" window up. svn path=/trunk/; revision=1917
2000-05-08Add functions to create buttons whose labels specify mnemonics, i.e.Guy Harris1-9/+21
that contain an "_" preceding a letter, indicating that the letter is to be underlined in the label, and that if the key for that letter is pressed (either with Alt or without it) in the dialog box to which the button belongs, and the widget with the input focus doesn't do anything with that button, the button is sent the "clicked" signal. Attach mnemonics to the buttons in the "Display->Options" dialog box. svn path=/trunk/; revision=1915
2000-05-08Make the display options dialog box use the new utilities to make theGuy Harris1-1/+7
Esc key cancel the dialog box. svn path=/trunk/; revision=1914
2000-05-08Get rid of some unnecessary (and "#if 0"ed-out) includes.Guy Harris1-21/+1
svn path=/trunk/; revision=1913
2000-01-24Heikki Vatiainen's patch to add a flag to control whether to interpretGuy Harris1-1/+17
the IPv4 TOS field as a TOS field or as a DiffServ field, and allow that field to be controlled by a command-line option or an option in the "Display:Options" dialog box. svn path=/trunk/; revision=1532
1999-10-18Move display.[ch] --> gtk/display_opts.[ch]Gilbert Ramirez1-0/+282
svn path=/trunk/; revision=883