aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/color_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-15Move gtk to ui/gtk.Jörg Mayer1-1064/+0
This looses the last checkin to gtk, will add this manually back. svn path=/trunk/; revision=40518
2011-08-18GTK 3.0 fix a couple of gtk_style_context_get().Anders Broman1-1/+1
svn path=/trunk/; revision=38603
2011-08-17Get further with compiling with GTK 3.0Anders Broman1-3/+6
(No functional testing done yet) svn path=/trunk/; revision=38576
2011-08-17Get rid of get_color() it looks like we do not need allocated collors.Anders Broman1-2/+19
The code is #if 0:ed out in case there is any ill side effects. svn path=/trunk/; revision=38574
2011-07-11Remaining GLIB_CHECK_VERSION and GTK_CHECK_VERSION in the gtk directory.Gerald Combs1-70/+0
svn path=/trunk/; revision=37973
2011-07-01Renamed "___tmp_color_filter___" to "___conversation_color_filter___"Stig Bjørlykke1-1/+1
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-2/+2
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-06-26Changed adding a new coloring rule to put the new rule at the top of the list.Stig Bjørlykke1-10/+18
This because the user most likely wants to use the new rule right away, and do not want to think about which filters it should be above. This was requested in bug 5669. svn path=/trunk/; revision=37793
2011-06-13Handle deprecated GtkTooltips.Anders Broman1-7/+66
svn path=/trunk/; revision=37660
2011-03-08Removal of the old packet-list in favor of the new packet list.Sake Blok1-10/+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-12Minor cleanup of the global name space:Bill Meier1-125/+126
- Define some vars as static; - Rename some externs to be less generic; Also: cleanup some whitespace. svn path=/trunk/; revision=34489
2010-07-30(Minor) Cleanup some "event callback" function declarations/definitions:Bill Meier1-2/+2
- Add missing 'user_data' arg as needed; - Use gboolean rather than int as the type of the value returned. Also: Cleanup whitespace & reformat long lines in a few cases. svn path=/trunk/; revision=33679
2010-01-29Fix various gcc -Wshadow warnings.Bill Meier1-3/+3
svn path=/trunk/; revision=31730
2009-11-10Removed some unused variables and unused assignments.Stig Bjørlykke1-2/+0
svn path=/trunk/; revision=30918
2009-09-23Small indent fix.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30102
2009-09-02Adding new color rules should work now.Anders Broman1-0/+4
svn path=/trunk/; revision=29672
2009-09-02Prepare abillity to add color filters with new packet list.Anders Broman1-13/+8
(Packets not recolored yet). svn path=/trunk/; revision=29664
2009-06-30Introduce experimental new feature: GTK2 tree view based packet listStephen Fisher1-1/+12
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
2009-04-21Turn on -Wshorten-64-to-32 by default, and fix some issues that turnedGuy Harris1-1/+1
up (99 44/100% of which were assignments of double-precision floating-point constants to floats). Hopefully this will catch at least some P64 issues on UN*X. svn path=/trunk/; revision=28108
2009-04-10color filters dialog: Remove use of deprecated gtk_button_box_set_child_size().Bill Meier1-79/+78
Also: - Handle buttons in the several vboxes in a consistent manner; - Use consistent indentation; - Fix some spelling in comments. svn path=/trunk/; revision=28029
2009-03-19As suggested by Jakub Zawadzki: actually use sizeof(...) rather than a ↵Bill Meier1-2/+2
numeric constant in various places; svn path=/trunk/; revision=27800
2009-02-18Indentation changes.Anders Broman1-22/+38
svn path=/trunk/; revision=27479
2008-06-21Removed the usage of topic_available() as we now have all topics.Stig Bjørlykke1-11/+5
svn path=/trunk/; revision=25505
2008-04-16flip the import and export button "sequence", that the import button comes ↵Ulf Lamping1-17/+17
first. So we have the same sequence as the usual open/save menu. svn path=/trunk/; revision=25076
2008-04-14From Jim Young (bug 2212):Sake Blok1-1/+1
Add the profile name to the title of all the configuration windows. (this is a rewrite of Jim's patch) svn path=/trunk/; revision=25016
2008-04-13move all code from color.c into color_utils.cUlf Lamping1-1/+1
remove color.c rename colors.h into color_utils.h (hopefully this reduces confusion to /color.h) svn path=/trunk/; revision=24974
2008-04-13sort #includes by directoriesUlf Lamping1-18/+20
svn path=/trunk/; revision=24967
2008-04-12compat_macros.h is gone now!!!Ulf Lamping1-3/+3
all GTK1 compatibility code was removed, so this file can simply be dropped svn path=/trunk/; revision=24923
2008-04-12move stock icon code from toolbar.c into specific stock_icons file(s)Ulf Lamping1-0/+1
svn path=/trunk/; revision=24921
2008-04-11first round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-18/+18
This requires some casts to be added and I just don't want to add casts at all possible places. So I compile and only add casts where the (MSVC) compiler has a hard time. Unfortunately this won't find any problems in Linux/Unix only code - I'll keep an eye on the buildbot and try to fix things as I'm going on ... svn path=/trunk/; revision=24912
2008-04-11replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's ↵Ulf Lamping1-10/+10
gtk_button_new_from_stock svn path=/trunk/; revision=24904
2008-04-11OBECT_..._DATA --> g_object_..._dataBill Meier1-49/+49
svn path=/trunk/; revision=24893
2008-04-06remove GTK1 codeUlf Lamping1-305/+0
svn path=/trunk/; revision=24813
2007-11-25Fixes crashing when opening color filters and pressing OKSake Blok1-6/+4
(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-46/+55
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-11Open the coloring rule edit dialog when the coloring rule is Sake Blok1-1/+15
double-clicked. svn path=/trunk/; revision=23427
2007-11-10Make the enable/disable buttons on the coloring rule list followSake Blok1-5/+15
the selection. There is a little difference between the behaviour in GTK1 and GTK2 (As long as either one row or a block of rows with the same status is selected, GTK1 and GTK2 behave the same way): GTK1: - if the last selected row is disabled, grey out the disable button - if the last selected row is enabled, grey out the enable button GTK2: - grey out both buttons when no rule is selected - grey out the enable button when *all* selected rules are enabled - grey out the disable button when *all* selected rules are disabled - leave both buttons active if there is a mix of disabled and enabled rules svn path=/trunk/; revision=23426
2007-11-10This patch makes it possible to disable individual coloring rules Sake Blok1-20/+139
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-09-25In newer versions of GTK+ 2.x, if you have the mouse positioned above aGerald Combs1-46/+46
button that goes from insensitive to sensitive, the button won't respond to mouse clicks. This caused the Coloring Rules dialog behavior reported in bug 699. Work around it by not making the up/down buttons insensitive while we're moving a rule. Fixup whitespace. svn path=/trunk/; revision=22946
2006-10-10Get rid of declarations of functions that are no longer defined or usedGuy Harris1-4/+0
in this file. svn path=/trunk/; revision=19476
2006-10-03As Stephen Fisher noted, the Apply button should also save the changed ↵Ulf Lamping1-0/+7
settings (if the Save button is disabled) svn path=/trunk/; revision=19418
2006-10-03fix a bug in the export functionUlf Lamping1-1/+1
svn path=/trunk/; revision=19417
2006-10-03now: Don't have a Save button in the following settings dialogs:Ulf Lamping1-0/+13
- 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-10-03Implement a real "Cancel" button for the coloring rules dialog - this was a ↵Ulf Lamping1-83/+129
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-26/+26
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-02various (huge) code cleanup incl. splitting of the coloring dialog and the ↵Ulf Lamping1-664/+121
actual color rule edit dialog into two files - this makes the things much more clearer now (at least for me) svn path=/trunk/; revision=19392
2006-08-25ugly workaround for bug #699 (Up/Down buttons don't work properly)Ulf Lamping1-9/+25
After experimenting a bit, this is a GTK bug IMHO, I don't see a better way to simply use the GTK1.x code for now, which is working ok. GTK2.4 was working properly, GTK2.6 and 2.8 has this bug, hopefully GTK2.10 will fix it again. svn path=/trunk/; revision=19025
2006-05-28Ethereal->WiresharkAnders Broman1-4/+4
svn path=/trunk/; revision=18232
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-4/+4
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197