aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.c
AgeCommit message (Collapse)AuthorFilesLines
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45015
2012-09-04- Replace packet_list_recreate_visible_rows -> ↵Jörg Mayer1-1/+1
packet_list_recreate_visible_rows_list - Replace new_packet_list_ -> packet_list_ svn path=/trunk/; revision=44765
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-01-16Move some headers for UI stuff, and the alert_box.c UI-specific file, toGuy Harris1-2/+3
the ui directory. (Perhaps some other files that would be used by all flavors of Wireshark, for any GUI toolkit or for someting such as ncurses, and not for any command-line tool such as TShark, should be moved there as well.) Shuffle some #includes to put the "ui/XXX.h" includes together. svn path=/trunk/; revision=40529
2011-08-17Fix indentation.Anders Broman1-41/+41
svn path=/trunk/; revision=38573
2011-07-01Renamed "___tmp_color_filter___" to "___conversation_color_filter___"Stig Bjørlykke1-3/+3
in the coloring rule name to better describe where it comes from. svn path=/trunk/; revision=37859
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-6/+6
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-05-17More eradication of old-style function definitions.Guy Harris1-1/+1
svn path=/trunk/; revision=37216
2011-04-26Get rid of a cast that was causing alignment warnings and that was bogusGuy Harris1-1/+1
anyway (the second argument to g_slist_find_custom is a gconstpointer, not a gpointer * or a gconstpointer *). svn path=/trunk/; revision=36863
2011-03-08Display a console warning instead of a simple_dialog for invalid color filters.Chris Maynard1-3/+2
svn path=/trunk/; revision=36173
2011-03-08A little more old packet list cleanupStephen Fisher1-3/+1
svn path=/trunk/; revision=36172
2011-03-08Removal of the old packet-list in favor of the new packet list.Sake Blok1-13/+0
It compiles with "./configure without options" on my Mac. Let's see what the buildbots have to say about it :-) svn path=/trunk/; revision=36161
2010-10-12Define some vars & fcns as static;Bill Meier1-28/+28
Also: do some minor reformmating and cleanup of whitespace. svn path=/trunk/; revision=34492
2010-03-02Squelch some compiler warnings.Guy Harris1-24/+24
svn path=/trunk/; revision=32079
2009-10-19Made some functions static.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=30616
2009-09-21Store 'color_filter' as const in 'frame_data'Kovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=30051
2009-09-06Add NEW_PACKET_LIST guard to color_filters_colorize_packet()Kovarththanan Rajaratnam1-2/+6
svn path=/trunk/; revision=29729
2009-08-26(FWIW) One step towards including stdio.h & stdlib.h only when req'd.Bill Meier1-0/+2
svn path=/trunk/; revision=29568
2009-08-10From Kovarththanan Rajaratnam:Anders Broman1-1/+2
- Compute and cache color/custom filters dynamically. - Delay column construction. svn path=/trunk/; revision=29370
2009-07-20Introduce packet list coloring for the NEW_PACKET_LIST. One caveat: whenStephen Fisher1-4/+9
enabling/disabling the coloring of the packet list from the menus, the user has to drag the mouse cursor over each displayed row to take away/add the coloring. Dragging the scroll bar up or down will also take care of this as only the displayed rows are colored. svn path=/trunk/; revision=29142
2009-06-30Introduce experimental new feature: GTK2 tree view based packet listStephen Fisher1-0/+4
To use the GTK2 based packet list, define NEW_PACKET_LIST when compiling. To do this with gcc, set the environment variable CPPFLAGS to "-DNEW_PACKET_LIST" and re-run configure. Many features do not yet work. This work began with prototypes by Ulf quite a while back. I've put quite a bit of work into this so far and as discussed with a few of the core team members at Sharkfest09 and it was decided that it would be best to commit what I have so far to allow others to help work on this. svn path=/trunk/; revision=28892
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-16/+16
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-02-27Fix another compile error ....Bill Meier1-1/+1
svn path=/trunk/; revision=24484
2008-02-26get_datafile_path() and get_persconffile_path() return malloc'd memory,Jeff Morriss1-0/+2
free it when we're done with the file name. svn path=/trunk/; revision=24478
2008-01-14This patch adds support for configuration profiles, which can be used toStig Bjørlykke1-2/+19
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. svn path=/trunk/; revision=24089
2007-12-15Changes the name of the menu item "View/Reset Coloring" toSake Blok1-0/+15
"View/Reset Coloring 1-10" and adds sensitivity to it so that it will be greyed out when none of the temporary color filters are used. (as per discussion on wireshark-dev some time ago) svn path=/trunk/; revision=23879
2007-11-25Make it possible to "move" a filter around the temporary coloring rulesSake Blok1-21/+40
svn path=/trunk/; revision=23585
2007-11-25Reset the temporary coloring filters to defaults instead of doing itSake Blok1-2/+14
implicitly by calling "color_filters_init()". This should probably fix the crashes experienced when pressing ctrl-space a couple of times svn path=/trunk/; revision=23583
2007-11-25Fixes crashing when opening color filters and pressing OKSake Blok1-4/+6
(introduced in SVN 23560) svn path=/trunk/; revision=23582
2007-11-24This patch adds (ten) temporary coloring rules which will only live until ↵Sake Blok1-5/+99
Wireshark is quit. Temporary coloring filters can be set by: - pressing <ctrl>-<digit> will create a conversation coloring filter based on the addresses of the currently selected packet (order TCP/UDP/IP/Ethernet) This can also be achieved from the "View|Colorize Conversation" menu. - Rightclicking on a packet in the packet-list will give the option to "Colorize Conversation" just as "Conversation Filter" does. - Rightclicking on an item in the packet-detail-list will give the option to "Colorize with filter" which works similar to "Apply as filter" Temporary filters can be cleared from the same menus or by pressing <ctrl>-<space>. This patch also adds an item to the above mentioned menu's to add a permanent color filter in the same way. The colors for the temporary coloring rules are now hardcoded as I do not know how to change the color of menu-items and therefore I chose to use icons to show the actual color of each of the ten temporary coloring rules. Is it at all possible to have different menu items in different colors? One other way of solving this is to recreate the icons on the fly after changing the colors. I will have a look into that once it is clear whether I can use different colors within the menu structure. svn path=/trunk/; revision=23560
2007-11-10This patch makes it possible to disable individual coloring rules Sake Blok1-3/+15
without having to delete them. The patch has been tested on Fedora-7 with GTK+ 1.2.10 and GTK+ 2.10.11. Since I don't know how to use "strikethrough" in clists in GTK1 there is a little difference in how the disabled coloring rules are displayed. In GTK2 they are striked through and in GTK1 they are shown in lightgrey on a white background. Any info on how to use strikthrough in clists within GTK1 is more than welcome :-) svn path=/trunk/; revision=23421
2007-08-21From Florent DROUIN <florent.drouin@alcatel.fr>, bug 1518:Richard van der Hoff1-3/+28
Fix for g_assert when clicking 'OK' on colour filters dialogue whilst individual filter edit window is open. svn path=/trunk/; revision=22572
2006-11-06fix 1203 as found by stephen fisherUlf Lamping1-1/+2
svn path=/trunk/; revision=19839
2006-10-10Fix some compiler warnings.Guy Harris1-2/+3
svn path=/trunk/; revision=19470
2006-10-03fix the memory leak problem mentioned lately by adding and using ↵Ulf Lamping1-13/+16
color_filters_cleanup() svn path=/trunk/; revision=19422
2006-10-03changes of the coloring rules sometimes crashed as dissection keeps pointers ↵Ulf Lamping1-1/+11
to the color_filter for later reference -> simply deleting the filters leave the pointers invalid -> crash. for now, don't delete the filters but keep them floating around in memory (leaking) -> at least better than crashing svn path=/trunk/; revision=19421
2006-10-03Implement a real "Cancel" button for the coloring rules dialog - this was a ↵Ulf Lamping1-87/+137
hard one! It seems to be working without bugs and as designed now. As this was a huge internal change, new bugs are very probable - please report. The implementation isn't still perfect, a new dialog internal list could possibly be removed again. However, I want to check in at this condition, just in case I make things worse - again. svn path=/trunk/; revision=19413
2006-10-02further code cleanup: don't use the term "marked" for the color filters, the ↵Ulf Lamping1-17/+24
right term is "selected". That caused me "concerns" wether the marked feature of the packet list was involved - which is actually not svn path=/trunk/; revision=19399
2006-10-02refactor apply_color_filter() as it was a bit confusing - it will also be a ↵Ulf Lamping1-67/+46
bit faster now - and some other minor code cleanup svn path=/trunk/; revision=19398
2006-05-22ethereal->wireshark updatesRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18206
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
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-08-14Some 'no previous declararion' warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=15355
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
2005-03-27add a new checkitem "Colorize Packet List" into the View menuUlf Lamping1-1/+10
keep it's setting in the recent file svn path=/trunk/; revision=13929
2005-03-26move some color_filter related things from file.c to color_filters.cUlf Lamping1-0/+54
svn path=/trunk/; revision=13920
2005-03-26There's no need to create a directory just because you're about toGuy Harris1-11/+0
remove a file in it - the directory presumably exists already, if you're about to remove a file in it. svn path=/trunk/; revision=13914
2005-03-26code cleanup: use common prefix for all functions in color_filters.hUlf Lamping1-11/+11
svn path=/trunk/; revision=13910
2005-03-25code cleanup: the term filter_list was used with different meanings ↵Ulf Lamping1-9/+9
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-02-13change nmake makefiles in /trunk and /trunk/epan so thatLars Roland1-4/+0
object code for libethereal.dll isn't generated by the makefile in /trunk. Having no code in /trunk linked into libethereal.dll anymore, the definition of the macro _NEED_VAR_IMPORT_ can be moved from various source files in /trunk to /trunk/Makefile.nmake . So do that, too. svn path=/trunk/; revision=13389