aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/decode_as_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-15Move gtk to ui/gtk.Jörg Mayer1-2038/+0
This looses the last checkin to gtk, will add this manually back. svn path=/trunk/; revision=40518
2011-09-19Move the return out of the for() loop so all values are freed. Fixes ↵Chris Maynard1-6/+2
Coverity CID 1277 (loop increment j++ is unreachable). svn path=/trunk/; revision=39053
2011-09-06Try to improve the tooltip a bit.Anders Broman1-1/+2
svn path=/trunk/; revision=38898
2011-09-05g_slist_free_full() didn't appear until GLib 2.28.Guy Harris1-2/+3
svn path=/trunk/; revision=38885
2011-09-05From Kurnia Hendrawan via bug 2931:Stig Bjørlykke1-6/+229
Added an option to save "decode as" entries. svn path=/trunk/; revision=38883
2011-08-04Put src and dst ports in the option of "Both" decorate with arrows.Anders Broman1-3/+5
svn path=/trunk/; revision=38336
2011-08-04Change the default to "Both"Anders Broman1-1/+1
svn path=/trunk/; revision=38333
2011-07-11Fix a couple of tooltips.Anders Broman1-11/+5
svn path=/trunk/; revision=37975
2011-06-20GTK3 fixes:Jörg Mayer1-0/+3
- Replace 2 cases where GtkObject was used (no longer exists in GTK3) - Whenever gdkkeysyms.h is included also include gdkkeysyms-compat.h iff we are building against gtk3 svn path=/trunk/; revision=37722
2011-02-07More -DGSEAL_ENABLE cleanup in preparation for GTK+ 3.0Stephen Fisher1-0/+8
svn path=/trunk/; revision=35848
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-3/+4
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-08-30Remove some unnecessary includes: a lot of things don't need globals.h and ↵Jeff Morriss1-1/+0
register.h svn path=/trunk/; revision=34017
2010-08-24Use consistent indentation;Bill Meier1-203/+204
Fix a few @param comments. svn path=/trunk/; revision=33901
2010-08-23(Minor) Cleanup signal callbak signatures and related:Bill Meier1-33/+40
- Don't mark callback arg as _U_ if actually used (and vice-versa); - Use Null as user_data in g_signal_callback if unused in callback; - Use correct signature for certain event callbacks. svn path=/trunk/; revision=33895
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-05-09Clean comments and indentation.Jaap Keuter1-10/+10
svn path=/trunk/; revision=32726
2010-05-08Enable "Decode As..." for ethertype 0x0000 (fix for bug 4721)Sake Blok1-2/+2
svn path=/trunk/; revision=32723
2010-02-22GtkOptionMenu --> GtkComboBoxBill Meier1-109/+79
svn path=/trunk/; revision=31949
2010-01-29Fix various gcc -Wshadow warnings.Bill Meier1-3/+3
svn path=/trunk/; revision=31730
2009-11-19Changed hf_ip_proto to use ipproto_val[].Stig Bjørlykke1-1/+0
Removed some unneeded includes. svn path=/trunk/; revision=31017
2009-11-10Removed some unused variables and unused assignments.Stig Bjørlykke1-2/+0
svn path=/trunk/; revision=30918
2009-09-23Fix the debug code somewhat, we do not have a clist any more.Anders Broman1-14/+23
svn path=/trunk/; revision=30085
2009-07-11From Artem Tamazov:Anders Broman1-0/+1
Analyze->Decode as... menu item becomes unavailable in some situations.(Ethernet-PW) https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3642 svn path=/trunk/; revision=29063
2009-05-04From Didier Gautheron (bug 3126):Stig Bjørlykke1-3/+4
Update expert info icon on redissect. svn path=/trunk/; revision=28269
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-03-19As suggested by Jakub Zawadzki: actually use sizeof(...) rather than a ↵Bill Meier1-16/+16
numeric constant in various places; svn path=/trunk/; revision=27800
2009-03-17Commited by mistake, reverting.Anders Broman1-36/+2
svn path=/trunk/; revision=27752
2009-03-16Fix syntax error.Guy Harris1-1/+1
svn path=/trunk/; revision=27747
2009-03-16Fix compilation: Mark unused arg as _U_.Michael Tüxen1-2/+2
svn path=/trunk/; revision=27742
2009-03-16Get rid of Clists, move a comment, move display as hex to gui_utils.Anders Broman1-1/+35
svn path=/trunk/; revision=27741
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-2/+1
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2008-12-10put the SCTP PPI for current DATA chunk into packet_info (and ppid array ↵Tomas Kukosa1-5/+5
renamed to ppids) svn path=/trunk/; revision=26958
2008-11-23Handle double-click and enter in "decode as" list as OK.Stig Bjørlykke1-38/+61
Reindent some blocks. svn path=/trunk/; revision=26831
2008-07-13From Francesco Fondelli:Jaap Keuter1-0/+8
Attached is a patch for: - PW Associated Channel Header dissection as per RFC 4385 - PW MPLS Control Word dissection as per RFC 4385 - mpls subdissector table indexed by label value - enhanced "what's past last mpls label?" heuristic - Ethernet PW (w/o CW) support as per RFC 4448 svn path=/trunk/; revision=25730
2008-06-29Fix some simple cases of GTK2 deprecated API usage by using a renamed or ↵Bill Meier1-17/+17
equivalent API gtk_container_border_width() ==> gtk_container_set_border_width() gtk_container_children() ==> gtk_container_get_children() gtk_entry_new_with_max_length() ==> gtk_entry_new(); gtk_entry_set_max_length() gtk_menu_append() ==> gtk_menu_shell_append() gtk_menu_prepend() ==> gtk_menu_shell_prepend() gtk_notebook_set_page() ==> gtk_notebook_set_current_page() gtk_paned_gutter_size() ==> gtk_paned_set_gutter_size() gtk_radio_button_group() ==> gtk_radio_button_get_group() gtk_signal_connect() ==> g_signal_connect() gtk_signal_disconnect() ==> g_signal_handler_disconnect() gtk_signal_emit_by_name() ==> g_signal_emit_by_name() gtk_signal_handler_block_by_data() ==> g_signal_handlers_block_matched() gtk_signal_handler_block_by_func() ==> g_signal_handlers_block_by_func() gtk_signal_handler_unblock_by_data() ==> g_signal-handlers_unblock_matched() gtk_signal_handler_unblock_by_func() ==> g_signal-handlers_unblock_by_func() gtk_spin_button_get_value_as_float() ==> gtk_spin_button_get_value() gtk_toggle_button_set_state() ==> gtk_toggle_button_set_active() svn path=/trunk/; revision=25634
2008-06-21Removed the usage of topic_available() as we now have all topics.Stig Bjørlykke1-18/+6
svn path=/trunk/; revision=25505
2008-04-16use a GTK_STOCK_CLEAR hereUlf Lamping1-1/+1
svn path=/trunk/; revision=25073
2008-04-13sort #includes by directoriesUlf Lamping1-9/+11
svn path=/trunk/; revision=24968
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-1/+0
svn path=/trunk/; revision=24922
2008-04-11first round to replace SIGNAL_CONNECT with g_signal_connectUlf Lamping1-17/+17
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-11OBJECT_..._DATA --> g_object_..._dataBill Meier1-67/+67
svn path=/trunk/; revision=24891
2008-04-09Remove:Anders Broman1-4/+0
#ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif svn path=/trunk/; revision=24868
2008-04-06remove GTK1 codeUlf Lamping1-162/+0
svn path=/trunk/; revision=24815
2008-01-31Add missing g_object_unref for treeview models;Bill Meier1-0/+2
Remove not needed set_tree_model (stats_tree_stat.c) svn path=/trunk/; revision=24230
2007-11-28fix the path to include g_ascii_strcasecmp.hRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=23636
2007-11-27strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delendaGuy Harris1-0/+4
est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our own versions if they're missing from GLib (as is the case with GLib 1.x). In the code to build the list of named fields for Diameter, don't use g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping in the hash function and use g_ascii_strcasecmp() in the compare function. We do this because there is no guarantee that toupper(), tolower(), and functions that use them will, for example, map between "I" and "i" in all locales; in Turkish locales, for example, there are, in both upper case and lower case, versions of "i" with and without a dot, and the upper-case version of "i" is "I"-with-a-dot and the lower-case version of "I" is "i"-without-a-dot. This causes strings that should match not to match. This finishes fixing bug 2010 - an earlier checkin prevented the crash (as there are other ways to produce the same crash, e.g. a bogus dictionary.xml file), but didn't fix the case-insensitive string matching. svn path=/trunk/; revision=23623
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-2/+2
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2007-03-30Fix "Gtk-CRITICAL **: gtk_tree_selection_get_selected: assertionStephen Fisher1-1/+1
`selection->type != GTK_SELECTION_MULTIPLE' failed" error when opening the User Specified Decodes with multiple decodes setup. The problem is caused by the selection mode for the list being set to multiple. I changed it to none so that the user doesn't get the false impression that you can select only certain items and clear them (the clear button clears them all). svn path=/trunk/; revision=21287
2007-01-13New "decode as ..." feature for BER-encoded files (WTAP_FILE_BER). Graeme Lunt1-1/+12
A BER-encoded file can be dissected as one of a number of registered syntaxes (registered using register_ber_syntax_dissector()). Syntaxes may also be associated with OIDs (or other strings) using register_ber_oid_syntax(). A default syntax with which to dissect a BER-encoded file is determined from its filename (extension). For example, ".cer" and ".crt" files will be dissected as "Certificate". svn path=/trunk/; revision=20414
2006-10-17from Stephen Fisher:Ulf Lamping1-1/+1
Here is a patch for spelling typos in comments and strings in the gtk/ directories. svn path=/trunk/; revision=19568