aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/stream_prefs.c
Commit message (Collapse)AuthorAgeFilesLines
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* code cleanup: use the prefix packet_list_ for every function mentioned in ↵Ulf Lamping2005-09-271-1/+1
| | | | | | packet_list.h svn path=/trunk/; revision=16027
* Move prefs.c and prefs.h into the epan subdirectory.Guy Harris2004-09-271-1/+1
| | | | svn path=/trunk/; revision=12115
* Have "gtk/color_utils.c" contain routines with toolkit-independent APIs,Guy Harris2004-07-241-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
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-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
* Make the color preferences popup menu shrink to its natural size insteadGerald Combs2004-03-111-2/+2
| | | | | | of filling in its entire table cell. svn path=/trunk/; revision=10359
* bugfix: use correct size of global valueUlf Lamping2004-01-161-6/+7
| | | | svn path=/trunk/; revision=9674
* move "marked packet color" setting from gui_prefs to Colors page.Ulf Lamping2004-01-151-12/+33
| | | | | | remove the Color dialog from gui_prefs.c svn path=/trunk/; revision=9667
* Change labels from "TCP Streams" to "Colors", to add other color values laterUlf Lamping2004-01-141-7/+7
| | | | | | Later, file has to be renamed to color_prefs.dlg (function renaming similar) svn path=/trunk/; revision=9666
* In gtk2 code, replace gdk_string_width() with the "Pango" way ofOlivier Abad2003-02-171-5/+5
| | | | | | computing strings width and height. svn path=/trunk/; revision=7159
* Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad2002-11-111-27/+11
| | | | svn path=/trunk/; revision=6610
* Merge gtk and gtk2 directories.Olivier Abad2002-11-031-9/+80
| | | | svn path=/trunk/; revision=6552
* Include cleanups in gtk and gtk2:Jörg Mayer2002-09-051-2/+1
| | | | | | | Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-12/+12
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris2002-03-051-5/+5
| | | | svn path=/trunk/; revision=4878
* Have a routine to create a scrolled window, set its vertical scrollbarGuy Harris2002-01-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | preference, and add it to the list of scrolled windows; call that routine to create scrolled windows, rather than creating it and calling other routines to do the other two operations. As "set_scrollbar_placement_all()" and "set_ctree_styles_all()" always set the styles to match the user's preference, don't have them take an argument, have them just use the user's preference settings. Get rid of unnecessary includes of "prefs_dlg.h", replacing them with includes of "prefs.h" if necessary. Don't have "prefs_dlg.h" include "prefs.h" - its sole purpose is to declare routines defined in "prefs_dlg.c" - and add any additional includes of "prefs.h" this requires. Get rid of unnecessary includes of "prefs.h" and "gtkglobals.h". Fix up white space. svn path=/trunk/; revision=4521
* On Windows, use the directory in which the binary resides as theGuy Harris2001-08-211-4/+2
| | | | | | | | | | | | | | | | | | | | | | directory in which global data files are stored. If an installed binary is being run, that's the correct directory for them; if a build-tree binary is being run, the "manuf" file will be there, and you can put other data files there as well, if necessary. Do the same with plugins, except that, if there's no "plugins\\{version}" subdirectory of that directory, fall back on the default installation directory, so you at least have a place where you can put plugins for use by build-tree binaries. (Should we, instead, have the Windows build procedure create a subdirectory of the "plugins" source directory, with the plugin version number as its name, and copy the plugins there, so you'd use the build-tree plugin binaries?) Move "test_for_directory()" out of "util.c" and into "epan/filesystem.c", with the other file system access portability wrappers and convenience routines. Fix "util.h" not to declare it - or other routines moved to "epan/filesystem.c" a while ago. svn path=/trunk/; revision=3858
* Don't let the color selection dialogue for TCP StreamsGilbert Ramirez2001-03-011-2/+4
| | | | | | stretch itself due to a really wide notebook widget. svn path=/trunk/; revision=3090
* Add a "color.h" file that declares a nominally-toolkit-independentGuy Harris2000-11-211-19/+11
| | | | | | | | | | | | | | | "color_t" structure to store color values (although currently it has all the same fields that a GdkColor has; its currently advantage is that you don't have to include any GTK/GDK stuff to declare it). Add routines in the "gtk" directory to convert between "color_t" and GdkColor values. Define, in "prefs.h", all colors as "color_t" values rather than GdkColor values. "prefs.h" now no longer needs to include <gtk/gtk.h>, so don't include it. svn path=/trunk/; revision=2692
* Remove #include "gtk/colors.h" from file.h, which keep the GTK+ headerGilbert Ramirez2000-10-201-1/+2
| | | | | | | | files from being #included in epan/packet.c. Fix the other files that need either "gtk/colors.h" or <gtk/gtk.h> #included as a result of not pulling in gtk/colors.h automatically because of file.h. svn path=/trunk/; revision=2519
* Explain why "stream_prefs_apply()" doesn't do anything.Guy Harris2000-09-091-3/+5
| | | | svn path=/trunk/; revision=2403
* Put in a comment noting that the "apply" routine for the TCP streamGuy Harris2000-08-211-1/+3
| | | | | | | preferences should change the colors for all existing TCP stream windows. svn path=/trunk/; revision=2329
* Instead of each set of built-in preferences having "ok", "save",Guy Harris2000-08-211-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "cancel", and "delete" methods, give them: "fetch" - fetch from the notebook tab any values not already stored in "prefs", and store them there, but doesn't apply them; "apply" - apply the settings in "prefs"; "destroy" - clean up any windows created from the tab. As we no longer have "cancel" methods, we don't have per-preference code to revert preference values; instead, we have the common preference dialog box code make a copy of all the current preferences, and, when the "Cancel" button is clicked, free the current preferences and copy the saved preferences to it, and apply the preferences. Add an "Apply" button to the preference dialog box, which applies the current preferences without closing the dialog box. Treat a request to delete the preferences dialog box as equivalent to clicking "Cancel". Have a "remember_ptree_widget()" routine to remember all protocol tree widgets, and use the list of those widgets when we set GUI preferences for the protocol tree widgets, rather than setting the main protocol tree widget and then using the list of packet windows. Move that code out of "main.c" to "proto_draw.c", as it's not used by anything in "main.c", but is used by stuff in "proto_draw.c". Make the font one of the preferences we can set on the fly for protocol tree widgets. Also make it something we can set on the fly for the packet list widget. svn path=/trunk/; revision=2316
* Miscellaneous code cleaningLaurent Deniel2000-08-111-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Add stream window color preferences. We don't (yet) use cmaps, so thisGerald Combs1999-12-021-0/+226
may not work with pseudocolor systems. svn path=/trunk/; revision=1179