aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2006-12-19change default capturing options to use "show realtime capturing" instead of ↵Ulf Lamping1-3/+3
the "capture summary window" svn path=/trunk/; revision=20149
2006-12-08Handle the "no error" return from pref_set_pair_fct(), to squelchGuy Harris1-12/+18
compiler warnings. svn path=/trunk/; revision=20070
2006-12-05From Giorgio Tino: Add a "static text" protocol preference type. ThisGerald Combs1-13/+35
can be used to add descriptive text inline with other preference items. The "preference" contents are not written to disk. Fixup whitespace. svn path=/trunk/; revision=20037
2006-11-17Fix buildJaap Keuter1-2/+2
svn path=/trunk/; revision=19919
2006-11-17various minor prefs code cleanupUlf Lamping1-4/+4
svn path=/trunk/; revision=19916
2006-11-15add a "private_data" pointer to the read_prefs_file() function, which will ↵Ulf Lamping1-8/+8
be "tunneled" to the callback function. This seems to be generally a good idea - as a lot of GLib/GTK function doing similiar and I'll need this for the upcoming update mechanisms. svn path=/trunk/; revision=19905
2006-10-11Add prefs_apply(), which lets us apply preferences (specifically,Gerald Combs1-0/+13
trigger a module's callback) for a specific module. svn path=/trunk/; revision=19487
2006-10-10First step in integrating the AirPcap WEP preferences with thoseGerald Combs1-12/+11
from the 802.11 dissector. Use a #define for the maximum number of WEP keys. Use AirPcap's if we have it (64). Rename find_module() prefs_find_module() and make it public. svn path=/trunk/; revision=19467
2006-10-03"saying your preferences once ..." -> "applying your preferences once ..."Ulf Lamping1-1/+1
svn path=/trunk/; revision=19419
2006-10-03now: Don't have a Save button in the following settings dialogs:Ulf Lamping1-0/+15
- Edit/Preferences - View/Coloring Rules - Capture/Capture Filters - Analyze/Display Filters - Analyze/Enabled Protocols The settings will be automatically saved when pressing the Ok button. If someone really wants the explicit Save buttons as before - you can get them back at the Edit/Preferences/User Interface page. svn path=/trunk/; revision=19415
2006-09-29from Stephen Fisher:Ulf Lamping1-11/+15
Attached is a patch for consideration that changes the title in the preferences notebook to be the full description of the preference (but leaves the short name in the preferences list on the left). svn path=/trunk/; revision=19370
2006-06-17fix for coverity 182Ronnie Sahlberg1-4/+6
this bug can not currently trigger but if someone would rename the module in the future then this could potentially cause a null dereference. svn path=/trunk/; revision=18494
2006-05-28Ethereal->WiresharkAnders Broman1-5/+5
svn path=/trunk/; revision=18234
2006-05-21name changeRonnie Sahlberg1-7/+7
svn path=/trunk/; revision=18197
2006-01-29Map "mtp3.net_addr_format" to "mtp3.addr_format", for backwardsGuy Harris1-0/+2
compatibility. svn path=/trunk/; revision=17123
2005-11-10Don't pass signed characters to the <ctype.h> macros.Guy Harris1-4/+5
svn path=/trunk/; revision=16457
2005-11-07Use <wiretap/file_util.h> to include "file_util.h"; otherwise, theGuy Harris1-1/+1
include fails as we don't do -Iwiretap. If we have it, include <sys/stat.h> in epan/filesystem.c - we need it for stat() and the macros and structures it uses. svn path=/trunk/; revision=16410
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-5/+6
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-10-12from Richard van der Hoff:Ulf Lamping1-1/+20
Attached is a patch which makes the console log level (warning/message/debug etc) a configurable preference. There's no gui for setting it, but since it's pretty much only going to be useful for developers, I'm sure you'll cope... ---- I've added a small comment to the file output that it has no dialog output svn path=/trunk/; revision=16205
2005-09-01convert to g_snprintf()Ronnie Sahlberg1-1/+0
also make range_convert_range() return an emem allocated string svn path=/trunk/; revision=15660
2005-08-16Change the default font size on Unix (etc) to 10 pt, just as it wasJörg Mayer1-2/+2
already on Windows. Changed the default font to Monospace, as some Linux distributions did that already. In case this isn't available on all platforms we will need to change it back to "fixed medium". svn path=/trunk/; revision=15372
2005-08-02Fix more "no previous declaration" warningsJörg Mayer1-1/+1
svn path=/trunk/; revision=15171
2005-07-30Fix 'isn't prototype' warningJörg Mayer1-1/+1
svn path=/trunk/; revision=15152
2005-07-29Pick up some fixes and enhancements fromGerald Combs1-1/+1
http://cvs.fedora.redhat.com/viewcvs/rpms/ethereal/FC-4/: In the LPD dissector, make lpd_client_code a value_string so that we don't segfault. Do the same for lpd_server_code, although it's not strictly necessary. Check to see if htmlview is installed, and use it as our HTML viewer. The Fedora RPM has other patches, but I'm not sure if they should be applied. svn path=/trunk/; revision=15143
2005-07-27Move preference initialization to its own routine and make sure it gets runGerald Combs1-145/+157
when we pass "-G defaultprefs" on the command line. svn path=/trunk/; revision=15119
2005-07-24Constify to remove a bunch of warnings. Add some casts to squelchGuy Harris1-1/+1
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. svn path=/trunk/; revision=15043
2005-07-23More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer1-1/+1
svn path=/trunk/; revision=15015
2005-07-22Fix some warnings (and one of my previous 'fixes')Jörg Mayer1-8/+8
svn path=/trunk/; revision=14997
2005-07-22More 'char*' -> 'const char*' warning fixesJörg Mayer1-14/+14
svn path=/trunk/; revision=14986
2005-06-26prefs.c(1218) : warning C4761: integral size mismatch in argument; ↵Ulf Lamping1-4/+4
conversion supplied prefs.c(1230) : warning C4761: integral size mismatch in argument; conversion supplied prefs.c(1240) : warning C4761: integral size mismatch in argument; conversion supplied prefs.c(1245) : warning C4761: integral size mismatch in argument; conversion supplied svn path=/trunk/; revision=14783
2005-06-24Constify a bunch of structure members and function arguments, to squelchGuy Harris1-2/+2
compiler warnings. Clean up indentation. svn path=/trunk/; revision=14739
2005-06-21Make a couple of variables dynamic, as suggested by Ulf.Gerald Combs1-12/+8
svn path=/trunk/; revision=14723
2005-06-18Clear out any leftover preference information. Fix up whitespace.Gerald Combs1-3/+6
svn path=/trunk/; revision=14693
2005-06-13Change read_prefs() to use GStrings instead of (re)allocating memoryGerald Combs1-45/+30
ourselves. This fixes a potential off-by-one error found by Steve Grubb. Add two new -G options: defaultprefs and currentprefs. The first dumps the default preferences to stdout and the second dumps the user's prefs to stdout. svn path=/trunk/; revision=14624
2005-05-27don't use a static buffer for preference values, allocate it, and, if ↵Luis Ontanon1-13/+21
necessary reallocate so that the string always fits. svn path=/trunk/; revision=14455
2005-03-24Plug some more small leaks.Guy Harris1-1/+3
svn path=/trunk/; revision=13889
2005-03-19Increase maximum number of characters for a preference/recent key, as the ↵Ulf Lamping1-1/+1
current window names in "recent" file reaches this value. svn path=/trunk/; revision=13811
2005-03-01From Graeme Hewson: rename the global preferences file to "preferences"Guy Harris1-6/+30
(it's now in an "ethereal" directory, so there's no need for it to have a name that distinguishes it from files for other programs) - if it's not found as "preferences", try "ethereal.conf" for compatibility - and update the man pages appropriately. Fix a typo in the section color filters (the file name is "colorfilters", not "color filters"). svn path=/trunk/; revision=13559
2005-02-28Map "llcgprs.ignore_cipher_bit" to "llcgprs.autodetect_cipher_bit".Guy Harris1-0/+3
svn path=/trunk/; revision=13548
2004-12-30Add a "get_addr_name()" routine that takes an "address *" and attemptsGuy Harris1-0/+1
to resolve it to a name. Fix up some const-pointer-to-non-const-pointer, and function-pointer-to-void-*, conversions. Fix some comments. svn path=/trunk/; revision=12863
2004-12-02From Nathan Jennings: add a preference that supplies a prefix for windowGuy Harris1-0/+16
titles. svn path=/trunk/; revision=12657
2004-10-17Have "range_convert_range()" dynamically allocate a string large enoughGuy Harris1-2/+4
to hold the representation of the range, rather than imposing a fixed-size limit on the string. Check for overflow in "strtoul()" - and use "strtoul()" rather than "strtol()" for range members. Clean up indentation. Get rid of an unnecessary include in <epan/range.h>. svn path=/trunk/; revision=12323
2004-10-17"ssn_range" needs to be a copy of "global_ssn_range", so that it's notGuy Harris1-4/+1
freed if "global_ssn_range" is changed because the preference was changed. svn path=/trunk/; revision=12322
2004-10-16Remove the fixed maximum number of subranges in a range_t; dynamicallyGuy Harris1-9/+24
allocate them to be large enough. Add checks that the numbers in the range fit in a guint32. Check the validity of a range before saving or printing, and report errors in an alert box. Clean up white space. svn path=/trunk/; revision=12320
2004-10-16fix a bug reported by Eric Wedel: Could not save preferences, as "You have ↵Ulf Lamping1-1/+9
not selected a font" dialog pops up, if no previous preferences file exists. fix: the default font name for GTK1 Win32 was mispelled (at least for WinXP). svn path=/trunk/; revision=12314
2004-10-16Make the nranges member of a range_t be the number of ranges, not theGuy Harris1-1/+6
number of ranges - 1, and update loops that iterate over all the ranges appropriately. Make "range_convert_str()" return a success/failure indication, and check it. Rewrite it to do more checks, and not to blithely ignore unknown characters. svn path=/trunk/; revision=12313
2004-10-14From Jeff Morriss: PREF_RANGE preference type, for ranges of integers.Guy Harris1-0/+41
svn path=/trunk/; revision=12300
2004-10-12Check the values of the protocol preferences before fetching them; ifGuy Harris1-23/+19
any are not valid, pop up an alert box and don't dismiss the preferences dialog. svn path=/trunk/; revision=12269
2004-10-01"prefs-int.h" belongs in epan, too.Guy Harris1-1/+1
svn path=/trunk/; revision=12168
2004-09-29Move the column preferences stuff to epan (the rest of the preferencesGuy Harris1-1/+1
stuff is already there). Update Gerald's e-mail address in column.h. svn path=/trunk/; revision=12131