aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2004-06-29add a preference setting for the web browser commandulfl1-3/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11269 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-29Catch invalid GUI layout type values; if we see one, use the defaultguy1-2/+7
layout type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11264 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-20preference setting, so "ask for unsaved capture files" can be switched offulfl1-1/+16
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11196 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-20preference setting for the option to "avoid" the capture info dialogulfl1-1/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11195 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-30sort saved preference settings by appearance in dialogulfl1-85/+90
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11034 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-24give the user a hint what to do (save his/her preferences),ulfl1-12/+13
when somethings wrong with the preferences, as it's always a good idea to give a helping hand :-) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10990 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-24Have two strings in an enum_val_t - one that's a short string that isguy1-11/+32
convenient to put into a command line (no capital letters, no spaces to require quotes), and one that's a detailed description for use in the UI. Allow either of them in the preferences file or "-o" option; use the detailed description in the UI, and also use it when writing the preferences out, so that the preference will be readable by older versions of Ethereal (assuming the preference existed in that version). Update "README.developer" to give more detail about an enum_val_t (and to put the _t in), and to give a more detailed description of the "radio_buttons" argument to "prefs_register_enum_preference()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10982 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-13Win32 only: Preference setting to open a console window, one of:ulfl1-1/+16
never (default), automatic (like before), always git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10870 f5534014-38df-0310-8fa8-9805f1628bb7
2004-05-05Use an enum when initializing "prefs.gui_layout_type".guy1-2/+2
Add an entry to that enum at the end and use that to generate the value of LAYOUT_QTY. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10800 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-30The layout types and pane types don't depend on GTK+, so move theirguy1-4/+4
definitions to "prefs.h". Use them, rather than (incorrect) raw numerical values, when initializing the preferences. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10736 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-29added selection of different main window pane layouts,ulfl1-1/+42
also added some preferences and a new preference page for this git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10729 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-06from Thomas Palmer: add a preference setting for filter toolbar placementulfl1-1/+16
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10555 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-28Select "misc" as the foundry for the default font, so we don't get JISguy1-2/+2
fonts and the like when we pop up the font selection dialog. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10255 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-23Use a pale variant of the foreground color for the background color of theobiot1-9/+9
follow TCP stream data display. As a result, we can now make the distinction between real data and whitespace wrapping by the UI. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10201 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-21Fix a typo.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10160 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-01moved window geometry values from prefs to recent,ulfl1-42/+21
added new pref / recent setting: "maximized main window", which will save, if the main window is maximized or not, this will take effect on GTK version 2 only, but is saved nonetheless git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9949 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-27Map SMPP and smpp-gsm-sms preferences to their new homes in gsm-sms-ud.guy1-4/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9879 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-20a.) saving GTK1 and GTK2 fontnames in different preference setting, to ↵ulfl1-14/+30
prevent problems when switching between GTK1 and GTK2 ethereal versions b.) added new feature "Edit->Go To First Packet" "Edit->Go To Last Packet" with corresponding menu and toolbar items c.) added new feature "View->Zoom In" / "View->Zoom Out" / View->Normal Size" with corresponding menu and toolbar items This feature will act as a "size offset" to the current fontsize, so that the packet list/tree view/... will have a larger/smaller font size. The value is stored inside the recent file. d.) Win32 only: Try to get the win32 system font and fontsize at program startup and show the menus/dialogs and such with the same font and fontsize like other win32 windows. This makes the program make a *lot* more feel like a normal win32 program. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9753 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-19added some menuitems "View->Show" including show/hide of all main widgets,ulfl1-15/+2
saving the states in the recent file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9726 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-05removed some MSVC warnings (level 3)ulfl1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9561 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-31Remove redundant protocol names from preference values.guy1-1/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9505 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-29Make the "max count of recently-visited files" preference unsigned.guy1-3/+3
Get rid of an unused variable. Fix up whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9475 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-28Add more code to handle the recent_files_count_max as a preference ...sharpe1-2/+12
Here we can read and write it from and to the preferences file. I only have to add code to allow it to be set in the Edit->Preferences area, git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9464 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-28Connect the recent_file_count_max variable to the ↵sharpe1-2/+3
prefs.gui_recent_file_count_max variable entry, and fix a small spelling/grammar mistake. Now all we need is some enterprising individual to write the small amount of preferences code to actually allow it to be changed etc, but I have to go to Costco, so, later... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9463 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-23Handle the move of "smpp" preferences to "smpp-gsm-sms".guy1-2/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9434 f5534014-38df-0310-8fa8-9805f1628bb7
2003-12-13changed read_prefs_file(): read in a generic config file and do a callback toulfl1-14/+23
pref_set_pair_fct() for every key/value pair found git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9274 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-16Export "protocol_t" as an opaque type.guy1-3/+8
Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()" take a "protocol_t *" as an argument, so they don't have to look up the "protocol_t" - this will probably speed them up considerably, and they're called on almost every dissector handoff. Get rid of a number of "proto_is_protocol_enabled()" calls that aren't necessary (dissectors called through handles, including those called through dissector tables, or called as heuristic dissectors, aren't even called if their protocol isn't enabled). Change some direct dissector calls to go through handles. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8979 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-09From Gisle Vanem:guy1-2/+5
Copy the "gui_fileopen_*" fields in "copy_prefs()". Fix a typo in "free_prefs()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8915 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-22From Ulf Lamping: add a preference to control whether to show or hideguy1-1/+17
the main toolbar (currently no GUI to set it; that's in progress). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8754 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-16From Ulf Lamping: add a GUI preference item to control the toolbarguy1-5/+23
style. Make the style text arrays static, as nobody uses them outside prefs.c. Use FALSE and TRUE for the values for the Boolean controlling the highlighting style. Note that we're now using stock icons in the toolbar in GTK+ 2.x. Put back the resizing of elements in the top-level container, at least for GTK+ 1.2[.x]; otherwise, the toolbar's height never gets smaller, even if you change the style in such a way as to reduce the height of the elements (icons+text -> icons or text, icons -> text). Make some routines and variables not used outside gtk/toolbar.c static. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8720 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-14From Ian Schorr:guy1-34/+90
Add a preference to control whether the "File > Open" dialog box should start out in the last directory in which it looked - and save that in the preferences file across invocations - or should always start out in a user-specified directory, and add another preference to specify that directory. Write out section name comments into the preferences file. Clean up white space a bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8699 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-02Don't put an entry for a protocol into the Preferences dialog if itguy1-31/+27
doesn't have any settable preferences (for example, if it has only obsolete preferences). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8590 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-10Don't export MAX_VAR_LEN - nobody uses it.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8453 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-08From Nathan Jennings:guy1-39/+86
support for user-supplied interface descriptions; support for hiding interfaces in drop-down list in capture dialog. Clean up comments written to preferences file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8419 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-26Fix a typo.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8267 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-07From Michael Lum: add the ability to have a preferences file containingguy1-9/+30
a list of disabled protocols, and to save that list from the Edit > Protocols dialog box. Add checks for read errors in "read_prefs()". Clean up white space. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8144 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-04Allow hyphens in preference module names, as the WAP protocols have IANAguy1-3/+3
names, which include hyphens. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8127 f5534014-38df-0310-8fa8-9805f1628bb7
2003-07-22Add two preferences to control ADNS, one to enable/disable it and one togerald1-6/+15
set its concurrency level. Fix an ADNS queueing bug. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8063 f5534014-38df-0310-8fa8-9805f1628bb7
2003-05-15From Richard Urwin:guy1-7/+3
add support for a system-wide color filter file; fix a bug where "read_filters()" didn't close the file handle. Use the "get_datafile_path()" routine he added to construct the pathname of the Diameter directory, the global preferences file, and the manuf file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7677 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-21From Erwin Rol: ArtNET support.guy1-1/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7518 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-09Don't create a protocol tree or do anything to the columns beforeguy1-1/+5
calling "tcp_dissect_pdus()", so that if we don't have the final segment of a multi-segment packet, we don't change the columns or put in an empty protocol tree item for NDPS. Rename "ndps.desegment_ndps" to "ndps.desegment_tcp" - the "ndps." is sufficient to indicate that it's for desegmenting NDPS, but we now have a flag for desegmenting NDPS-over-SPX, so we should indicate that the other flag is for desegmenting NDPS-over-TCP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7425 f5534014-38df-0310-8fa8-9805f1628bb7
2003-03-13From Tomas Kukosa - allow a preference name to begin with the stringguy1-2/+3
that's the name of the module, as long as the prefix doesn't end with "." or "_" (so you can register "tc.tcp.port" or "tc.tcp_port", but not "tc.tc.port" or "tc.tc_port"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7351 f5534014-38df-0310-8fa8-9805f1628bb7
2003-03-12When fixing up old preferences, check the module for the currentguy1-19/+19
preference by comparing "module->name" against the module, not by checking the first part of the preference name - the preference name might not contain the correct module name, as we've mapped some modules. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7350 f5534014-38df-0310-8fa8-9805f1628bb7
2003-03-11When registering a string preference, if the value of the preference isguy1-4/+17
NULL, convert it to a copy of a null string, otherwise replace it with a copy of the string, so that we know that the variable for the preference always points to a string that can be freed. That also obviates the need to worry about a null-pointer value for a preference variable when checking to see whether a preference has changed. When checking for a string preference not being set, check for an empty string, not a null pointer - the above code turns null pointers into pointers to empty strings, *and* the GUI code does (and always did!) the same. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7342 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-29Fix a couple of checks for families with renamed preferences.guy1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7034 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-28Panic if a preference starts with the name of the module to which itguy1-14/+94
belongs, as that's redundant. Fix a bunch of cases where that was done, and map the old name to the new name. Instead of marking "mtp3.mtp3_standard" as obsolete, map it to "mtp3.standard". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7030 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-28Get rid of the extra "pcli." in the "pcli.pcli.udp_port" preference.guy1-1/+5
Map "pcli.pcli.udp_port" to "pcli.udp_port". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7025 f5534014-38df-0310-8fa8-9805f1628bb7
2002-12-20Support putting preferences into arbitrary places in a tree, which isguy1-33/+157
used to construct the "Edit->Preferences" dialog box; this includes the ability to register a "subtree" for preferences. Instead of special-casing protocol preferences, have a subtree "Protocols" for protocol preferences. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6808 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-28Disable network name resolution by default.gerald1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6350 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-14- add a new GUI preference in the gtk2 port. It allows to useoabad1-2/+16
alternating colors in all TreeView widgets (see gtk_tree_view_set_rules_hint()). - remove unused preferences in the gtk2 port (tree_expander_style and tree_line_style). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6296 f5534014-38df-0310-8fa8-9805f1628bb7