aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/color_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
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
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping1-1/+1
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-3/+3
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-08-02Fix more "no previous declaration" warningsJörg Mayer1-3/+3
svn path=/trunk/; revision=15173
2005-03-26code cleanup: use common prefix for all functions in color_filters.hUlf Lamping1-6/+6
svn path=/trunk/; revision=13910
2005-03-25code cleanup: the term filter_list was used with different meanings ↵Ulf Lamping1-6/+6
throughout the code, and the filter_list of the color_filters is "global". use appropriate prefixes to avoid confusion and bugs svn path=/trunk/; revision=13905
2005-03-24GtkStyles are reference-counted, and a style returned byGuy Harris1-0/+2
"gtk_style_copy()" has a reference count of 1; release the reference when we're finished setting other widgets' styles to it. svn path=/trunk/; revision=13890
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-3/+3
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-01-20add some more online help functionality and help buttons at various dialog ↵Ulf Lamping1-1/+13
boxes, if a help page *is* available. However, the new help system needs a lot more work before completed. svn path=/trunk/; revision=13152
2004-12-29Make the tone of the error messages a bit less formal, by usingGuy Harris1-1/+1
contractions. (Safari does, at least when you're trying to open a file to which you don't have read access.) svn path=/trunk/; revision=12852
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-07-24Have "gtk/color_utils.c" contain routines with toolkit-independent APIs,Guy Harris1-1/+0
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
2004-07-24Make "new_color_filter()" GUI-independent - have it take two "color_t"Guy Harris1-2/+4
pointers, for the background and foreground color, as arguments, and have its callers generate them from GdkColor values. svn path=/trunk/; revision=11495
2004-07-19renamed filter_prefs to filter_dlg, as the filter settings are (well, for a ↵Ulf Lamping1-1/+1
long time) no longer part of the preferences dialog. svn path=/trunk/; revision=11436
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-17From Martin Mathieson: if you create a new filter and cancel the "EditGuy Harris1-11/+32
Color Filter" dialog, remove the new filter from the list. svn path=/trunk/; revision=11389
2004-06-05remove gtk_widget_ref / OBJECT_SET_DATA_FULL,Ulf Lamping1-67/+1
as reference handling is done by GTK, so doing it is pretty useless svn path=/trunk/; revision=11117
2004-05-31bugfix: don't try to destroy a dialog twiceUlf Lamping1-2/+1
svn path=/trunk/; revision=11043
2004-05-27use gtk_window_set_default_size() instead of WIDGET_SET_SIZE() for the dialogs,Ulf Lamping1-2/+3
as WIDGET_SET_SIZE() will prevent the user from shrinking the dialog, and gtk_window_set_default_size() will not svn path=/trunk/; revision=11021
2004-05-26more code cleanup from dialog things:Ulf Lamping1-36/+22
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-05-22going to have a standard behaviour of the dialogsUlf Lamping1-2/+1
(including remebering of the dialog size in recent file). for a first step, I replaced all window_new() calls from dialogs into dlg_window_new() ones, and removed all gtk_window_set_position calls, this should be done in a more generalized way svn path=/trunk/; revision=10964
2004-05-01From Richard Urwin: ensure that the initial colour is appropriate in allOlivier Biot1-2/+6
cases. The colouring rules are also available now when no packets have been captured or loaded from file. svn path=/trunk/; revision=10754
2004-04-17Confirmation dialogs should be marked as such.Guy Harris1-2/+2
svn path=/trunk/; revision=10622
2004-04-16Make "new_color_filter()" take the background and foreground colors, asGuy Harris1-2/+7
GdkColors, as arguments. svn path=/trunk/; revision=10613
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-5/+5
various other string related changes svn path=/trunk/; revision=10373
2004-03-13replaced gtk_widget_show() by a single gtk_widget_show_all(),Ulf Lamping1-55/+8
changed a printf thing svn path=/trunk/; revision=10369
2004-02-12The HIG's and/or GUI toolkit documentation for:Guy Harris1-3/+2
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-09minor changesUlf Lamping1-6/+7
svn path=/trunk/; revision=10015
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-4/+4
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-31cleanup of new "question dialogs",Ulf Lamping1-2/+32
using GTK2 primary/secondary message text from GNOME HIG for simple_dialogs, added a "question dialog" for the coloring rules "Clear" button svn path=/trunk/; revision=9921
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-9/+11
"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-6/+6
better reflect the real error text svn path=/trunk/; revision=9913
2004-01-25added/changed some tooltipsUlf Lamping1-6/+10
svn path=/trunk/; revision=9838
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-56/+22
layouting the dialog buttons, and use it where appropriate. This will help us with the GTK1/2 conflict on button layouts and will also result in a more consistent look of the dialogs at all. svn path=/trunk/; revision=9771
2004-01-21use stock buttons whereever possible,Ulf Lamping1-7/+7
added some ethereal specific stock icons svn path=/trunk/; revision=9763
2004-01-18complete redesign of color dialogUlf Lamping1-136/+157
svn path=/trunk/; revision=9697
2004-01-10using button compatibility macrosUlf Lamping1-10/+10
svn path=/trunk/; revision=9636
2004-01-10using button compatibility macrosUlf Lamping1-38/+10
svn path=/trunk/; revision=9633
2004-01-09Part 2 of the "unmarking a packet matching a color filter does not applyOlivier Biot1-3/+3
the color filter's colors" bug: keep a list of removed color filters, so there's no problem if we delete a color filter for which there are one or more packets that have its colors. Only get rid of the lists when they ar no longer needed. svn path=/trunk/; revision=9613
2004-01-02Tweak the name of the Coloring Rules dialog box to be more consistent ...Richard Sharpe1-3/+3
svn path=/trunk/; revision=9517
2003-11-30Move print_file_cb out of gtk/print_dlg.c and into gtk/file_dlg.c andRichard Sharpe1-1/+2
rename it to select_file_cb to reflect its function. While this cleans things up a bit, I am still not happy because now filter_prefs.h must be included before file_dlg.h just to get construct_args_t. svn path=/trunk/; revision=9119
2003-10-07Update to endpoint talkers,Ronnie Sahlberg1-6/+34
endpoint talkers now have an extra submenu on the popup where one can select : Colorize Conversation. This opens up the create color filter dialog with the filter preset to the selected conversation. svn path=/trunk/; revision=8637
2003-08-27From Richard Urwin:Guy Harris1-44/+25
use Export and Import for the buttons in GTK+ 2.x as well; get rid of a duplicate fclose; other fixes. Update the description of color filters in the Ethereal man page to reflect the change, clean up the formatting (use =item), and add the global and personal color filters files to the FILES section; refer to them as "color filters" files rather than "colorfilters" files, as the FILES section gives the "colorfilters" file name so you don't have to use that as the name. Clean up white space. svn path=/trunk/; revision=8285
2003-08-18From Richard Urwin a great enhancement to the color filter dialogue toRonnie Sahlberg1-170/+401
make it possible to import/export color filters svn path=/trunk/; revision=8188
2003-05-15From Richard Urwin:Guy Harris1-57/+104
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. svn path=/trunk/; revision=7677
2003-02-17In gtk2, the "changed" signal is sent by the GtkTreeSelection, not theOlivier Abad1-2/+2
GtkTreeView. svn path=/trunk/; revision=7161
2003-01-08Separate the routines to allocate colors from the routines to handleGuy Harris1-1/+3
color filters. svn path=/trunk/; revision=6872
2002-11-09Helper macros fro gtk1.2/gtk2 compatibility.Olivier Abad1-627/+151
It should reduce the number of #ifdefs in gtk source code. svn path=/trunk/; revision=6596
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-492/+1179
svn path=/trunk/; revision=6552
2002-09-26From Ulf Lamping: Prettyfied Colorization dialogRonnie Sahlberg1-138/+214
svn path=/trunk/; revision=6335