aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2006-03-02In order to reduce the height of the Preference dialog moving several items ↵Jaap Keuter1-129/+50
from the User Interface page to the Layout page. svn path=/trunk/; revision=17444
2005-09-27code cleanup: use the prefix packet_list_ for every function mentioned in ↵Ulf Lamping1-1/+1
packet_list.h svn path=/trunk/; revision=16027
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2004-12-02From Nathan Jennings: add a preference that supplies a prefix for windowGuy Harris1-4/+16
titles. svn path=/trunk/; revision=12657
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-31added a preference setting, to be able to change the preview timeout in the ↵Ulf Lamping1-1/+40
file open dialog (as requested by Ronnie Sahlberg). svn path=/trunk/; revision=11859
2004-08-16Get rid of unused enum_val_t table (the wrap vs. no-wrap in search flagGuy Harris1-6/+0
is a Boolean, not an enum). svn path=/trunk/; revision=11749
2004-08-15From Greg Morris: Add a configuration option to control search wrapping.Gerald Combs1-1/+17
svn path=/trunk/; revision=11744
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-14As per Pavel Kankovsky, return FALSE, not TRUE, if "user_font_test()"Guy Harris1-7/+9
fails, as that means we aren't setting the font to the new value. svn path=/trunk/; revision=11376
2004-07-12bugfix to a bug reported by Stuart MacDonald (bug #10):Ulf Lamping1-2/+2
return FALSE for the recent files text entry, otherwise Ethereal will crash when selected this field and press Apply svn path=/trunk/; revision=11364
2004-06-29add a preference setting for the web browser commandUlf Lamping1-1/+21
svn path=/trunk/; revision=11269
2004-06-20preference setting, so "ask for unsaved capture files" can be switched offUlf Lamping1-2/+11
svn path=/trunk/; revision=11196
2004-06-17move font related stuff to new file font_utils.c/.hUlf Lamping1-3/+3
do some font related renaming/code cleanup svn path=/trunk/; revision=11167
2004-06-17move font related stuff to new file font_utils.c/.hUlf Lamping1-55/+9
do some font related renaming/code cleanup svn path=/trunk/; revision=11166
2004-05-27a lot of code cleanupUlf Lamping1-32/+3
svn path=/trunk/; revision=11017
2004-05-24Have two strings in an enum_val_t - one that's a short string that isGuy Harris1-37/+37
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()". svn path=/trunk/; revision=10982
2004-05-13Win32 only: Preference setting to open a console window, one of:Ulf Lamping1-1/+32
never (default), automatic (like before), always svn path=/trunk/; revision=10870
2004-04-29fixed a typoUlf Lamping1-2/+2
svn path=/trunk/; revision=10727
2004-04-06from Thomas Palmer: add a preference setting for filter toolbar placementUlf Lamping1-1/+18
svn path=/trunk/; revision=10555
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-2/+2
various other string related changes svn path=/trunk/; revision=10373
2004-02-24changed some label textsUlf Lamping1-6/+6
svn path=/trunk/; revision=10225
2004-02-12The HIG's and/or GUI toolkit documentation for:Guy Harris1-4/+4
Mac OS X GNOME Qt KDE Windows all indicate that {message,alert} boxes are modal, at least for the window to which they apply. (Presumably the idea is that not forcing the user to pay attention to the alert box, and allowing more than one alert box to be up for a given window, causes more problems than not letting the user do stuff to that window in order to figure out what the underlying problem is or figure out what to do to fix it - the message should be sufficient, in most if not all cases, to let you know what the problem is.) Make "simple_dialog()" unconditionally make the alert box modal, and get rid of ESD_TYPE_MODAL. XXX - we need to make it possible to make an alert box modal for a given window, rather than just the top-level window. svn path=/trunk/; revision=10051
2004-02-01moved window geometry values from prefs to recent,Ulf Lamping1-2/+9
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 svn path=/trunk/; revision=9949
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-5/+5
"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-5/+5
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-24Have "font_apply()" return an indication as to whether it succeeded orGuy Harris1-2/+22
failed and, if it failed, how it failed. Have it leave up to its caller the job of reporting that it couldn't load the requested font; have its callers do that, and have them set the zoom level on failure so that we have a zoom level that is at least more likely to work. Make the alert boxes for "font_apply()" failures be error boxes, not warning boxes. svn path=/trunk/; revision=9818
2004-01-23If we call "font_apply()", we don't need to callGuy Harris1-7/+9
"redraw_hex_dump_all()". svn path=/trunk/; revision=9815
2004-01-23code cleanupUlf Lamping1-2/+1
svn path=/trunk/; revision=9794
2004-01-21gtk_font_selection_set_font_name doesn't work when run before appendingOlivier Abad1-10/+1
the font selection widget to the notebook (at least in GTK2). svn path=/trunk/; revision=9769
2004-01-20prevented GTK-warning, as the column index was too highUlf Lamping1-3/+3
svn path=/trunk/; revision=9756
2004-01-20a.) saving GTK1 and GTK2 fontnames in different preference setting, to ↵Ulf Lamping1-56/+12
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. svn path=/trunk/; revision=9753
2004-01-17Clean up some compiler warnings.Guy Harris1-65/+70
Clean up white space. Have "font_fetch()" return a Boolean indicating whether it succeeded or not. If it failed, don't use "new_font_name", as it hasn't been set. svn path=/trunk/; revision=9689
2004-01-17new "Font" preferences page instead of a font dialog in "User Interface"Ulf Lamping1-104/+38
svn path=/trunk/; revision=9686
2004-01-15move "marked packet color" setting from gui_prefs to Colors page.Ulf Lamping1-320/+8
remove the Color dialog from gui_prefs.c svn path=/trunk/; revision=9667
2004-01-10using button compatibility macrosUlf Lamping1-21/+6
svn path=/trunk/; revision=9636
2004-01-09Turn the GTK+ 1.2.10 clist code into our own widget; that lets us modify itGuy Harris1-1/+2
to add functionality or improve performance, although, until we make it work on GTK+ 1.3[.x] and 2.x, we shouldn't count on the performance improvements, or make its API different from that of the GtkClist API (other than names). Move all the code that knows about the packet list into gtk/packet_list.c, so that the GtkClist vs. EthClist stuff is encapsulated inside it. svn path=/trunk/; revision=9608
2004-01-01moved recent files pref, as it splits corresponding dir entriesUlf Lamping1-10/+9
svn path=/trunk/; revision=9508
2003-12-29OK, now I have added the preference for recent_files_count_max, and we canRichard Sharpe1-2/+45
set the value and so on. We put the value in the text field before it is displayed, and so on ... svn path=/trunk/; revision=9470
2003-12-23removed some MSVC warnings (conversions between double/float and int)Ulf Lamping1-3/+3
svn path=/trunk/; revision=9422
2003-11-19redraw supported_protos dialog, if GUI prefs changedUlf Lamping1-2/+4
svn path=/trunk/; revision=9022
2003-11-11The user interface preference page has only 9 rows in the GTK+ 2.xGuy Harris1-1/+5
version. svn path=/trunk/; revision=8933
2003-11-11Create the last two items in the GUI preferences page's first column theGuy Harris1-15/+16
same way the other items are created - in order, going down the page, and using "pos++" as the table position. svn path=/trunk/; revision=8932
2003-10-20In fileopen_dir_changed_cb() :Olivier Abad1-6/+9
- return FALSE immediately if the text entry is empty ; - return FALSE at the end of the function so that the signal is sent to the entry. It avoids a Gtk-ERROR (and an abort) : file: gtkentry.c: line 4338 (blink_cb): assertion failed: GTK_WIDGET_HAS_FOCUS(entry)) svn path=/trunk/; revision=8735
2003-10-16From Ulf Lamping: add a GUI preference item to control the toolbarGuy Harris1-4/+27
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. svn path=/trunk/; revision=8720
2003-10-14From Ian Schorr:Guy Harris1-2/+72
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. svn path=/trunk/; revision=8699
2003-09-02Make sure the color selection dialog displays a color selection widget.Gerald Combs1-2/+4
Tweak the button layout slightly. svn path=/trunk/; revision=8332
2003-07-18Various fixes related to GTK2 :Olivier Abad1-3/+3
- give the focus to the packet_list when a capture file is opened, and each time we change the selection in the packet list (it seems that the tree view has the focus if we don't do this) ; - in set_plist_sel_browse() : it seems that packet_list->selection_mode is always 0 in GTK2 so we can't use it to determine the current mode. Use a static variable instead. This should fix the second part of debian bug #199763 svn path=/trunk/; revision=8045
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-143/+55
svn path=/trunk/; revision=6610
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-41/+236
svn path=/trunk/; revision=6552