aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/column_prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2006-04-24Column list pointer became invalid when element was removed from list. Fixes ↵Jaap Keuter1-1/+2
bug 886. svn path=/trunk/; revision=17983
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-5/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping1-5/+5
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286
2005-08-05More char -> const char warning fixes.Jörg Mayer1-2/+2
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
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
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-07-31give the user a hint, that he has to restart Ethereal for any column ↵Ulf Lamping1-0/+6
changes. Could someone have a look at the sentence I've used, if this is good english? svn path=/trunk/; revision=11575
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-05-27bugfix: don't try to destroy a window, when it's already being destroyedUlf Lamping1-2/+1
svn path=/trunk/; revision=11016
2004-05-26more code cleanup from dialog things:Ulf Lamping1-2/+2
changed window_xy (dialog) function calling in a lot of gtk files cleanup of file selection code cleanup in dlg_utils/file_dlg/ui_util Please report any problems!!! svn path=/trunk/; revision=11003
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-4/+7
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-25minor GTK2 layout changeUlf Lamping1-1/+5
svn path=/trunk/; revision=9835
2004-01-18make the column preferences page look a bit more like the color rules dialogUlf Lamping1-61/+62
svn path=/trunk/; revision=9699
2004-01-17Select first row in column list by default,Ulf Lamping1-3/+17
fixed sensitivity of option_menu svn path=/trunk/; revision=9692
2004-01-16column preferences page now looks similar to the color dialog layout,Ulf Lamping1-34/+84
as it's doing the same thing svn path=/trunk/; revision=9680
2004-01-10using button compatibility macrosUlf Lamping1-21/+5
svn path=/trunk/; revision=9636
2003-03-10Pointer <--> int converions cause warnings on ia64.Jörg Mayer1-2/+2
Modified a patch originally contained in the SuSE distro to do the conversions via glib macros. svn path=/trunk/; revision=7330
2002-11-09Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-50/+17
svn path=/trunk/; revision=6597
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-110/+403
svn path=/trunk/; revision=6552
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-3/+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-34/+34
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-04-23Get rid of unused variables, and mark unused arguments as such.Guy Harris1-5/+2
svn path=/trunk/; revision=5228
2002-04-22Eliminate some unused variables.Guy Harris1-7/+5
svn path=/trunk/; revision=5224
2002-04-22Polish the column prefs a bit. Make the column tile entry and formatGerald Combs1-161/+179
menu modify the currently-selected item directly. Remove the "Change" button since it's no longer needed. Make the column list a clist, and add a column which shows the format. Make the format option menu not fill the entire table cell. Update the man page accordingly. svn path=/trunk/; revision=5214
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-8/+8
svn path=/trunk/; revision=4878
2002-01-11Have a routine to create a scrolled window, set its vertical scrollbarGuy Harris1-4/+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
2001-07-22Check for valid column titles (non-zero-length) and valid column formatsGuy Harris1-1/+2
in preference settings. In the process of doing that, fix a memory leak (we were handing a null pointer, rather than a pointer to the list of strings in "column.format", to "clear_string_list()"). svn path=/trunk/; revision=3775
2000-11-17Add #include <string.h>, to get prototypes for mem* and str* functions.Gilbert Ramirez1-1/+2
svn path=/trunk/; revision=2654
2000-10-20Remove #include "gtk/colors.h" from file.h, which keep the GTK+ headerGilbert Ramirez1-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
2000-08-21Instead of each set of built-in preferences having "ok", "save",Guy Harris1-12/+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
2000-08-11Miscellaneous code cleaningLaurent Deniel1-8/+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
2000-01-10Move the code in "column.c" that implements the column preferences tabGuy Harris1-0/+372
into "gtk/column_prefs.c". Get rid of "get_column_width()" - instead, export "get_column_longest_string()", and have "get_column_width()"'s callers make the GDK call to get the width of that string, so that "column.c" contains no GTK+/GDK code. svn path=/trunk/; revision=1447