Commit Graph

3525 Commits

Author SHA1 Message Date
Ulf Lamping c05af9057b rename packet_list to main_packet_list
svn path=/trunk/; revision=24950
2008-04-12 19:38:29 +00:00
Stig Bjørlykke 41e9bde037 Added an option to save column widths in the recent file.
Not 100% implemented for usage with configuration profiles with 
different column layout yet, as this requires some of the recent
values to be saved in each profile.

svn path=/trunk/; revision=24949
2008-04-12 19:37:05 +00:00
Ulf Lamping 2b19b4e07e move noinst_HEADERS and EXTRA_DIST settings from Makefile.am to Makefile.common as it's done in /Makefile.common and elsewhere
svn path=/trunk/; revision=24948
2008-04-12 19:24:25 +00:00
Ulf Lamping b51da2eb77 rename menu -> main_menu
remove old (and unused and confusing) ../menu.h

svn path=/trunk/; revision=24947
2008-04-12 19:18:26 +00:00
Ulf Lamping d147ebbd2e various code cleanup, e.g. replace specific callback functions by "compounds" that uses an action value
svn path=/trunk/; revision=24946
2008-04-12 18:28:01 +00:00
Ulf Lamping e08ae89241 cleanup of "capture_in_progress" ugly hack from main_toolbar, call capture_if_dlg directly from within main.c
svn path=/trunk/; revision=24943
2008-04-12 17:04:21 +00:00
Stig Bjørlykke b651a49252 Include unistd.h, fix prototyping of static functions and mark some
unused arguments.

svn path=/trunk/; revision=24941
2008-04-12 16:47:46 +00:00
Ulf Lamping 4151a40503 rename toolbar to main_toolbar
svn path=/trunk/; revision=24940
2008-04-12 16:38:13 +00:00
Stig Bjørlykke 5084e06a5c Mark some unused arguments.
svn path=/trunk/; revision=24939
2008-04-12 16:35:28 +00:00
Ulf Lamping cef9d950d7 remove unrequired "references" to gtkglobals.h
svn path=/trunk/; revision=24938
2008-04-12 16:09:22 +00:00
Ulf Lamping 72faa680b8 move statusbar related code from main.c into it's own main_statusbar.c
svn path=/trunk/; revision=24937
2008-04-12 15:55:27 +00:00
Ulf Lamping 1dbdc34841 move drag_and_drop declarations into it's own file
svn path=/trunk/; revision=24927
2008-04-12 09:33:59 +00:00
Guy Harris 6f0cea7ed2 PRIMARY_TEXT_START and PRIMARY_TEXT_END are gone; use
simple_dialog_primary_start() and simple_dialog_primary_end() instead.

svn path=/trunk/; revision=24925
2008-04-12 03:02:23 +00:00
Guy Harris 8c3d1dd9f1 Include "stock_icons.h" to get WIRESHARK_STOCK_DISPLAY_FILTER_ENTRY.
svn path=/trunk/; revision=24924
2008-04-12 02:28:21 +00:00
Ulf Lamping b4f3c5fd40 compat_macros.h is gone now!!!
all GTK1 compatibility code was removed, so this file can simply be dropped

svn path=/trunk/; revision=24923
2008-04-12 01:41:53 +00:00
Ulf Lamping d4ccf577a8 where it's not necessary, remove #include "compat_macros.h"
svn path=/trunk/; revision=24922
2008-04-12 01:02:59 +00:00
Ulf Lamping 55c2be83db move stock icon code from toolbar.c into specific stock_icons file(s)
svn path=/trunk/; revision=24921
2008-04-12 00:49:20 +00:00
Ulf Lamping ca0cfac28b as we no longer need to have the stock icon label strings in two places (GTK2 will take care of the stock labels once registered), move the strings into toolbar.c and remove the no longer required definitions from compat_macros.h altogether
svn path=/trunk/; revision=24920
2008-04-12 00:05:44 +00:00
Stephen Fisher 3702095876 Add a cast to fix compilation on Unix.
svn path=/trunk/; revision=24919
2008-04-11 23:46:06 +00:00
Ulf Lamping 8e58ec7085 last round to replace SIGNAL_CONNECT with g_signal_connect
svn path=/trunk/; revision=24918
2008-04-11 23:16:06 +00:00
Ronnie Sahlberg 154e8f0892 add missing braces to unbreak the build
svn path=/trunk/; revision=24916
2008-04-11 23:12:24 +00:00
Guy Harris 434e7709ed Wrap the callback function pointer for g_signal_connect() in
G_CALLBACK(), to suppress compiler warnings (that's what the old
SIGNAL_CONNECT macro did).

svn path=/trunk/; revision=24915
2008-04-11 23:00:34 +00:00
Ulf Lamping 736cada149 third round to replace SIGNAL_CONNECT with g_signal_connect
svn path=/trunk/; revision=24914
2008-04-11 22:10:36 +00:00
Ulf Lamping f9f87904c4 second round to replace SIGNAL_CONNECT with g_signal_connect
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=24913
2008-04-11 21:39:16 +00:00
Ulf Lamping 9af9a0e619 first round to replace SIGNAL_CONNECT with g_signal_connect
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-11 21:20:51 +00:00
Ulf Lamping 1f4b5e5f07 replace SIGNAL_DISCONNECT_BY_FUNC with g_signal_handlers_disconnect_by_func
svn path=/trunk/; revision=24911
2008-04-11 20:34:30 +00:00
Ulf Lamping c6d13dc2c8 replace WIDGET_SET_SIZE with gtk_widget_set_size_request
svn path=/trunk/; revision=24910
2008-04-11 20:31:05 +00:00
Ulf Lamping a471e1af90 replace ITEM_FACTORY_ENTRY and ITEM_FACTORY_STOCK_ENTRY with their required data values to build the menus
svn path=/trunk/; revision=24909
2008-04-11 20:21:05 +00:00
Ulf Lamping 1ab5a1ea4b replace RADIO_BUTTON_NEW_WITH_MNEMONIC with gtk_radio_button_new_with_mnemonic_from_widget
svn path=/trunk/; revision=24908
2008-04-11 19:26:22 +00:00
Ulf Lamping 004b797630 replace RADIO_BUTTON_NEW_WITH_LABEL with gtk_radio_button_new_with_label_from_widget
svn path=/trunk/; revision=24907
2008-04-11 19:11:08 +00:00
Ulf Lamping 614d40cd7d replace TOGGLE_BUTTON_NEW_WITH_MNEMONIC with gtk_toggle_button_new_with_mnemonic
svn path=/trunk/; revision=24906
2008-04-11 19:07:46 +00:00
Ulf Lamping 4de04eae27 replace CHECK_BUTTON_NEW_WITH_MNEMONIC with gtk_check_button_new_with_mnemonic
svn path=/trunk/; revision=24905
2008-04-11 19:04:34 +00:00
Ulf Lamping ae5f841083 replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's gtk_button_new_from_stock
svn path=/trunk/; revision=24904
2008-04-11 18:58:19 +00:00
Ulf Lamping 3c6c0cf220 at least remove the "done" parts from this old file
svn path=/trunk/; revision=24903
2008-04-11 18:56:25 +00:00
Ulf Lamping 5d2e42d044 explain, why we should keep PRIMARY_TEXT_START/PRIMARY_TEXT_END
svn path=/trunk/; revision=24902
2008-04-11 18:46:37 +00:00
Bill Meier c5cb800c5d Clean up a few references to OBJECT_[GS]_DATA macros
svn path=/trunk/; revision=24901
2008-04-11 17:58:27 +00:00
Bill Meier 5c9415462b OBJECT_[GS]ET_DATA macros not needed since GTK1 no longer supported
All usage of these macros has been replaced by g_object_[gs]et_data().

svn path=/trunk/; revision=24900
2008-04-11 17:57:20 +00:00
Bill Meier ab9c1b68fd OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24899
2008-04-11 17:26:09 +00:00
Bill Meier 0502078a1b OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24898
2008-04-11 17:14:11 +00:00
Bill Meier 77b615b79f OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24896
2008-04-11 16:55:44 +00:00
Bill Meier 74e1c12021 OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24895
2008-04-11 16:44:31 +00:00
Bill Meier 10f2ea11d5 OBECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24894
2008-04-11 16:26:32 +00:00
Bill Meier 42acebd42c OBECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24893
2008-04-11 16:04:54 +00:00
Bill Meier b5309506a4 OBECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24892
2008-04-11 15:41:51 +00:00
Bill Meier 538b1be897 OBJECT_..._DATA --> g_object_..._data
svn path=/trunk/; revision=24891
2008-04-11 15:23:26 +00:00
Stephen Fisher 16e54385b3 Replace SIGNAL_EMIT_BY_NAME(), SIGNAL_EMIT_OBJECT() and
SIGNAL_EMIT_STOP_BY_NAME() macros with their actual function names.


svn path=/trunk/; revision=24890
2008-04-11 05:03:33 +00:00
Stephen Fisher b010ad9411 Replace FONT_TYPE macro with PangoFontDescription.
svn path=/trunk/; revision=24889
2008-04-11 04:52:36 +00:00
Stephen Fisher 464efd95fa Replace all instances of the SIGNAL_CONNECT_OBJECT() macro with the actual
function name.


svn path=/trunk/; revision=24888
2008-04-11 04:45:00 +00:00
Ulf Lamping d470674329 some minor GTK1 related code fixes
svn path=/trunk/; revision=24873
2008-04-09 23:06:01 +00:00
Anders Broman 458e8e6f7f Get the Windows build going again(?).
svn path=/trunk/; revision=24869
2008-04-09 20:55:33 +00:00
Anders Broman c973aa3830 Remove:
#ifdef NEED_G_ASCII_STRCASECMP_H
#include "g_ascii_strcasecmp.h"
#endif

svn path=/trunk/; revision=24868
2008-04-09 19:39:58 +00:00
Stephen Fisher e462fe69d5 Remove an unused function that is causing a warning/error on Unix
svn path=/trunk/; revision=24864
2008-04-09 06:09:07 +00:00
Ulf Lamping b6c168413f fix some GTK1 related comments
svn path=/trunk/; revision=24862
2008-04-09 05:54:09 +00:00
Ulf Lamping 4214543e5a fix a comment typo
svn path=/trunk/; revision=24861
2008-04-09 05:43:07 +00:00
Stephen Fisher 41654fe5e4 Start getting rid of the uses of compat_macro.h's macros.
svn path=/trunk/; revision=24860
2008-04-09 05:37:53 +00:00
Ulf Lamping e01e158045 remove GTK1 code
svn path=/trunk/; revision=24857
2008-04-09 05:01:03 +00:00
Ulf Lamping df724f83cd remove GTK1 specific font handling
svn path=/trunk/; revision=24842
2008-04-08 04:47:32 +00:00
Ulf Lamping 578c25b88f provide gtk_tree_view_expand_to_path only for exactly GTK2.0, avoid problems with GTK 3.0 later
svn path=/trunk/; revision=24841
2008-04-08 03:53:29 +00:00
Jaap Keuter 629a815a8b Fix for bug 2414:
- Do not compare to the possibly resolved address, but the address itself
- Do not leak memory when comparing addresses

svn path=/trunk/; revision=24837
2008-04-07 21:17:08 +00:00
Michael Tüxen 52518e3e9e Cleanup whitespaces.
svn path=/trunk/; revision=24831
2008-04-07 05:53:02 +00:00
Stephen Fisher 726a1caaf1 - Remove GLIB1 code
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION
- Remove ws_strsplit files because we no longer need to borrow GLIB2's
  g_strsplit code for the no longer supported GLIB1 builds


svn path=/trunk/; revision=24829
2008-04-07 05:22:54 +00:00
Stephen Fisher 13802b1d84 Remove GTK1 code.
svn path=/trunk/; revision=24827
2008-04-07 04:34:54 +00:00
Stephen Fisher a398bebdaf Remove GTK1 code and change ugly version checking statements into
GTK_CHECK_VERSION().


svn path=/trunk/; revision=24826
2008-04-07 03:46:01 +00:00
Ulf Lamping 0a381cca29 try to fix #if !GTK_CHECK_VERSION
svn path=/trunk/; revision=24825
2008-04-07 01:14:00 +00:00
Ulf Lamping 49ad47d477 remove GTK1 code
svn path=/trunk/; revision=24824
2008-04-07 01:05:55 +00:00
Ulf Lamping 3b7fe5fc6c remove GTK1 code
svn path=/trunk/; revision=24823
2008-04-07 00:42:04 +00:00
Ulf Lamping c857a03907 replace confusing #if checking for GlIB2.6.0 by #if GLIB_CHECK_VERSION(2,6,0)
svn path=/trunk/; revision=24822
2008-04-07 00:29:43 +00:00
Ulf Lamping 242e3b78bc remove GTK1 code
svn path=/trunk/; revision=24821
2008-04-06 23:57:02 +00:00
Ulf Lamping da80212715 remove GTK1 code
svn path=/trunk/; revision=24820
2008-04-06 23:49:02 +00:00
Ulf Lamping 006e02358a replace confusing #if checking for GTK2.4.0 (the GTK version when gtk_file_chooser was "invented") by #if GTK_CHECK_VERSION(2,4,0)
svn path=/trunk/; revision=24819
2008-04-06 23:37:52 +00:00
Ulf Lamping 63307ccc99 remove GTK1 code
svn path=/trunk/; revision=24818
2008-04-06 23:36:29 +00:00
Ulf Lamping cf431ac2ee replace confusing #if checking for GTK2.4.0 (the GTK version when gtk_file_chooser was "invented") by #if GTK_CHECK_VERSION(2,4,0)
svn path=/trunk/; revision=24817
2008-04-06 23:34:05 +00:00
Ulf Lamping 0e701b77ae remove GTK1 code
svn path=/trunk/; revision=24816
2008-04-06 23:20:23 +00:00
Ulf Lamping 70595a85f4 remove GTK1 code
svn path=/trunk/; revision=24815
2008-04-06 23:02:27 +00:00
Ulf Lamping 1c5f3ae4b9 remove GTK1 code
svn path=/trunk/; revision=24814
2008-04-06 22:54:37 +00:00
Ulf Lamping 74ea542da0 remove GTK1 code
svn path=/trunk/; revision=24813
2008-04-06 22:50:12 +00:00
Ulf Lamping 2ddd2d6b6e remove GTK1 code
svn path=/trunk/; revision=24812
2008-04-06 22:44:20 +00:00
Ulf Lamping 2db60e3b7e replace confusing #if checking for GTK2.4.0 (the GTK version when gtk_file_chooser was "invented") by #if GTK_CHECK_VERSION(2,4,0)
svn path=/trunk/; revision=24811
2008-04-06 22:36:23 +00:00
Ulf Lamping 6bd3a882ee remove GTK1 code
svn path=/trunk/; revision=24810
2008-04-06 22:25:36 +00:00
Ulf Lamping 2f39b20003 remove GTK1 code
svn path=/trunk/; revision=24809
2008-04-06 22:16:04 +00:00
Ulf Lamping 19fa41724f add expert_comp_dlg.h to the distributed files
svn path=/trunk/; revision=24808
2008-04-06 22:07:21 +00:00
Ulf Lamping 476113a643 remove GTK1 code
svn path=/trunk/; revision=24807
2008-04-06 22:04:43 +00:00
Stig Bjørlykke 1924255bbd Removed some GTK1 code.
svn path=/trunk/; revision=24805
2008-04-06 21:45:04 +00:00
Ulf Lamping fbd8124387 remove GTK1 related stuff from the file header comment
svn path=/trunk/; revision=24801
2008-04-06 16:23:05 +00:00
Ulf Lamping 6634af3022 try to fix the OSX buildbot
svn path=/trunk/; revision=24800
2008-04-06 02:28:36 +00:00
Ulf Lamping 263396db2f fix compilation without HAVE_AIRPCAP
svn path=/trunk/; revision=24799
2008-04-05 23:55:35 +00:00
Ulf Lamping a171ea4769 click on the "expert info" indicator opens the corresponding dialog
svn path=/trunk/; revision=24798
2008-04-05 23:16:59 +00:00
Stephen Fisher 2000fa9fcf Remove more GTK1 code and related xpm files.
svn path=/trunk/; revision=24795
2008-04-05 19:23:07 +00:00
Ulf Lamping 165e1a5dc7 update expert info LED also while doing live capturing
svn path=/trunk/; revision=24793
2008-04-05 15:20:20 +00:00
Ulf Lamping 054b263486 add HAVE_LIBPCAP to IntelliSense settings
svn path=/trunk/; revision=24791
2008-04-05 15:05:29 +00:00
Ulf Lamping 40f0277d5a add "recently" added files
svn path=/trunk/; revision=24789
2008-04-05 09:32:30 +00:00
Ulf Lamping 01dcf4b3c6 remove GTK1 stuff
svn path=/trunk/; revision=24788
2008-04-05 09:31:49 +00:00
Stephen Fisher fdfbcf1422 Remove GTK1 references and code (other than our packet list clist).
svn path=/trunk/; revision=24783
2008-04-05 05:39:07 +00:00
Ulf Lamping 0ee0f3ac43 add an "LED" to the statusbar, that indicates the most important level of expert info in the capture file
svn path=/trunk/; revision=24777
2008-04-05 00:13:27 +00:00
Stephen Fisher ae48504af2 Remove GTK1 code.
svn path=/trunk/; revision=24776
2008-04-05 00:12:04 +00:00
Stephen Fisher f3c333e5b9 Remove GTK1 from Unix build process.
svn path=/trunk/; revision=24775
2008-04-04 23:37:31 +00:00
Ulf Lamping d476d3fa4b set SVN properties
svn path=/trunk/; revision=24774
2008-04-04 23:16:07 +00:00
Ulf Lamping 792d18eaee carve out the (currently disabled) welcome page into it's own file to slightly reduce the huge main.c file size
svn path=/trunk/; revision=24773
2008-04-04 23:14:27 +00:00
Luis Ontanon 906d2f3cbb http://www.wireshark.org/lists/wireshark-dev/200803/msg00308.html
proto.[hc]
    define new APIs to allow delayed registration of protocol fields,
	so that dissectors with "flexible" fields  like xml, radius, diameter,
	snmp do not have to load their files at startup but can do so as late as possible.

gtk/dfilter_expr_dlg.c :
	have the expression dialog registering all prefixes so that all fileds appear in the dialog

tshark.c
	register all prefixes when called with -G

epan/radius_dict.l
epan/dissectors/packet-radius.c
epan/dissectors/packet-radius.h
	refactor registration to delay dictionary loading as long as possible



svn path=/trunk/; revision=24762
2008-04-03 22:13:52 +00:00
Ulf Lamping 0e1dae9f67 remove no longer existing follow_dlg.h
svn path=/trunk/; revision=24755
2008-03-29 17:50:32 +00:00
Stephen Fisher 9dc1d5b9a7 Fix bug #2286: Folow TCP stream window [needs line wrapping turned back on]
wrapped lines


svn path=/trunk/; revision=24742
2008-03-28 04:42:29 +00:00
Gerald Combs 2f4830393c Add tooltips for the filter button and text entry in the open and merge
dialogs.

svn path=/trunk/; revision=24735
2008-03-27 17:26:59 +00:00
Gerald Combs 35a5e1d68b Change the "Filter:" button in the Win32 open and merge dialogs to a
"Display filter" label.

svn path=/trunk/; revision=24734
2008-03-27 17:21:48 +00:00
Stephen Fisher 8d95969dba Remove unterminated comment to fix compile
svn path=/trunk/; revision=24733
2008-03-26 23:08:58 +00:00
Gerald Combs 71b562a850 Make the default save format "Raw". Make it easy to change the default
format.

svn path=/trunk/; revision=24732
2008-03-26 22:33:56 +00:00
Stephen Fisher c4571a6ad5 Fix bug #1212: Follow SSL/UDP Stream gets direction wrong ...
svn path=/trunk/; revision=24715
2008-03-22 05:50:19 +00:00
Stephen Fisher 76c84e35c3 Finish fixing bug #1138: Follow TCP Streams gets stream direction wrong ...
svn path=/trunk/; revision=24687
2008-03-18 05:01:18 +00:00
Stephen Fisher 5f0021ccba Fix bug #1143 - Can't read packet details....bad color scheme forced
Change the code so we don't force a white background in the protocol tree
area, instead just unset it so it goes back to its natural background.  This
matters with color schemes that have a black background.


svn path=/trunk/; revision=24625
2008-03-14 06:15:06 +00:00
Gerald Combs f8e75ecd32 Make the SMI preference a little more verbose. In the COPS and SNMP
preferences, tell the user where they can change the SMI settings. In
the 802.11 preferences, fix a tooltip.

svn path=/trunk/; revision=24620
2008-03-13 22:17:11 +00:00
Stephen Fisher 4718890a3c Fix a minor memory leak.
svn path=/trunk/; revision=24616
2008-03-13 06:25:53 +00:00
Stig Bjørlykke fa2033ab8b Fixed server and client packet count in C Array variables in
Follow TCP/UDP/SSL Stream.  This error was introduced when merging
duplicate code between TCP & SSL stream functions, r22869.

svn path=/trunk/; revision=24610
2008-03-12 08:50:09 +00:00
Stig Bjørlykke ba7cbb5aa9 From Nathan Jennings (bug 2350):
Highlight the selected interface in the edit interfaces list.

svn path=/trunk/; revision=24609
2008-03-12 07:16:25 +00:00
Stig Bjørlykke cf3a5d8d55 Fix some texts in the file types list.
svn path=/trunk/; revision=24608
2008-03-11 22:50:17 +00:00
Stig Bjørlykke 1aa356313e Disable the "Packet Format" when save as "C Arrays".
svn path=/trunk/; revision=24607
2008-03-11 21:06:56 +00:00
Stig Bjørlykke d0a04bd7df Added "C Arrays" to list of file types to export.
svn path=/trunk/; revision=24606
2008-03-11 19:35:53 +00:00
Stig Bjørlykke 5800abad46 From Francesco Fondelli (bug 2349):
Attached is a patch to export packets data as "C Arrays".  I often have
the need to [re]send data captured with wireshark using a raw/pf_packet socket.
Output format is one char[] per packet, it looks like almost the same as
the one produced by "Follow TCP stream".

svn path=/trunk/; revision=24604
2008-03-11 18:23:16 +00:00
Stig Bjørlykke 11eda6b97b Add check for gtk 2.4 when calling gtk_tree_view_column_set_expand.
svn path=/trunk/; revision=24603
2008-03-11 17:27:41 +00:00
Stig Bjørlykke 0e761b5839 Free another allocated string.
svn path=/trunk/; revision=24577
2008-03-06 18:26:09 +00:00
Bill Meier 80b754bb01 Fix some typos; Fix some indenting to be at least locally consistent
svn path=/trunk/; revision=24575
2008-03-06 15:51:44 +00:00
Stig Bjørlykke 1e6d34261d get_persconffile_path() return malloc'd memory,
free it when we're done with the file name.

svn path=/trunk/; revision=24558
2008-03-04 22:02:24 +00:00
Michael Tüxen 4306c7037d Include epan/strutil.h for gtk-1.2 builds.
svn path=/trunk/; revision=24513
2008-03-01 10:23:57 +00:00
Michael Tüxen 5ccc995362 Include strutil.h to find g_strlcpy and g_strlcat in gtk-1.2 builds.
svn path=/trunk/; revision=24512
2008-03-01 09:05:40 +00:00
Stephen Fisher 56226b49b8 Custom column updates:
- Change apply / prepare / ... as filter to use the field's value, which
   is now stored in fdata as well as cinfo.  Now we don't have to reprocess
   the entire packet list when using these features.  This also prevents
   the use of these features from overwriting custom column information.
   (custom columns can now be used in apply / prepare ... as filter)
 - Break col_expr and col_expr_val out into a struct that is included not only
   in cinfo, but now also fdata.
 - Have col_custom_set_fstr() quote FT_STRING & FT_STRINGZ when storing the
   col_expr_val value (for filter creation).


svn path=/trunk/; revision=24511
2008-03-01 05:16:45 +00:00
Jeff Morriss 61caa0b5b9 Include strutil.h so we find g_strlcat() in gtk-1.2 builds
svn path=/trunk/; revision=24510
2008-03-01 02:33:38 +00:00
Stig Bjørlykke b5886343ea Save correct gui.time_format for "seconds since previous displayed packet"
and "seconds since epoch".

This fixes bug 2315.

svn path=/trunk/; revision=24508
2008-02-29 20:11:29 +00:00
Stig Bjørlykke 7deec480ff Next attempt to cleanup some string functions, including:
strncpy -> g_strlcpy, strncat -> g_strlcat

svn path=/trunk/; revision=24504
2008-02-29 13:33:37 +00:00
Stig Bjørlykke b3e2991f19 Corrected right-justification of custom boolean and framenum columns.
svn path=/trunk/; revision=24453
2008-02-24 15:31:29 +00:00
Stig Bjørlykke 29bd9c96ae Sort custom columns according to field type.
(absolute time and 64bit values not yet correct)

Right-justify numeric custom columns.

svn path=/trunk/; revision=24452
2008-02-24 12:37:37 +00:00
Stig Bjørlykke 5ff0326b90 Moved init of custom_field.
Cleanup some GTK1/GTK2 code.

svn path=/trunk/; revision=24448
2008-02-23 21:26:07 +00:00
Stig Bjørlykke ae42e39556 Fixed a check for custom column.
svn path=/trunk/; revision=24442
2008-02-23 10:14:43 +00:00
Stephen Fisher 5399d02752 Add filter syntax check to custom column filter field. This will allow
filter expressions such as filter == value, which won't work as a custom
column.  We may need to modify its behavior to prevent entire expressions
from being entered.  For the time being though, it does check the filter
syntax itself as well.


svn path=/trunk/; revision=24441
2008-02-23 01:15:14 +00:00
Stig Bjørlykke 51b26f95f3 Improved custom columns with custom title.
Fixed a crash when adding an empty custom field.

svn path=/trunk/; revision=24438
2008-02-22 22:47:19 +00:00
Ulf Lamping d41b403367 add rawshark.html to packaging and Wireshark help menu
svn path=/trunk/; revision=24431
2008-02-22 20:38:50 +00:00
Bill Meier b56def1506 Fix compile errors if 'configure ... --without-pcap'
svn path=/trunk/; revision=24416
2008-02-22 04:56:26 +00:00
Stephen Fisher 470000e6c1 Use default numeric/text sort for custom columns also.
svn path=/trunk/; revision=24414
2008-02-22 01:26:26 +00:00
Bill Meier 4f82d2a007 Fix two compilation errors
svn path=/trunk/; revision=24405
2008-02-21 02:10:05 +00:00
Stig Bjørlykke 9f522c8eaf Added logarithmic y axis scale option.
svn path=/trunk/; revision=24402
2008-02-20 17:53:31 +00:00
Stephen Fisher ed3a633dd5 Fix some formatting
svn path=/trunk/; revision=24399
2008-02-20 05:47:39 +00:00
Gerald Combs 3df577499f Switch to the "oooh shiny" splash image.
svn path=/trunk/; revision=24393
2008-02-19 18:06:57 +00:00
Bill Meier 5b8da491d7 Add $Id$
svn path=/trunk/; revision=24382
2008-02-18 22:39:03 +00:00
Stig Bjørlykke fd9486cea6 Added help button in expert info and expert info composite dialogs.
svn path=/trunk/; revision=24374
2008-02-17 21:22:00 +00:00
Stig Bjørlykke 1c3c9d7828 When resize the IO Graphs window expand the filter field and advanced
calc field instead of the space between "Style:" and the style boxes, and
the X/Y Axis labels and corresponding boxes.

svn path=/trunk/; revision=24373
2008-02-17 18:37:56 +00:00
Bill Meier 16032ced67 Remove redundant (repeated) "PortAudio" from "About Wireshark" screen.
svn path=/trunk/; revision=24372
2008-02-17 16:26:06 +00:00
Stig Bjørlykke c9f7367658 Simplified printing of x-axis values so we get a consistent view even if
resizing the window.  Also draw a 8 pixel x-axis line between the x-axis
labels to make it easier to determine midway.

svn path=/trunk/; revision=24370
2008-02-17 14:27:52 +00:00
Stig Bjørlykke 43272f9435 Added an option to Conversations and Endpoints to limit the list to match
the current display filter.

Some Hosts -> Endpoints cleanup.

svn path=/trunk/; revision=24368
2008-02-17 00:35:55 +00:00
Stig Bjørlykke f8a07f7eff Added check for idx in get_frame_num().
svn path=/trunk/; revision=24364
2008-02-16 19:57:37 +00:00
Stig Bjørlykke 7af630f136 Corrected previous cast.
svn path=/trunk/; revision=24361
2008-02-16 17:19:09 +00:00
Stig Bjørlykke c1f721e423 Cast a double to guint32.
svn path=/trunk/; revision=24359
2008-02-16 17:00:08 +00:00
Stig Bjørlykke 11de0a827d Click in the IO Graph to select the first package in the selected interval.
Click button 3 to select the last package.

svn path=/trunk/; revision=24358
2008-02-16 16:40:36 +00:00
Stig Bjørlykke ba11df88da Added option to turn off name resolution.
Added help button (documentation TBD).

svn path=/trunk/; revision=24329
2008-02-14 09:33:57 +00:00
Gerald Combs 269b0d0474 Add a priority level to each context in the info status bar. Use it to make
sure we don't overwrite filter status messages during live captures.

When "!=" is used in a display filter, point the user to the User's Guide.

svn path=/trunk/; revision=24315
2008-02-13 01:18:40 +00:00
Stig Bjørlykke 5df0b2fe77 Do not update window title when destroying the dialog.
svn path=/trunk/; revision=24314
2008-02-13 00:31:54 +00:00
Stig Bjørlykke f410d0b781 Fixed an incorrect free loop.
svn path=/trunk/; revision=24311
2008-02-12 15:18:01 +00:00
Stig Bjørlykke a356f552b4 Added WLAN Traffic Statistics dialog.
svn path=/trunk/; revision=24310
2008-02-12 14:17:18 +00:00
Gerald Combs 556d14a8bf Wireshark occasionally starts up behind other applications. Bring it to the
front.

svn path=/trunk/; revision=24304
2008-02-11 19:20:10 +00:00
Stig Bjørlykke 56b0985653 Fixed setting filter in SCTP Chunk Counter statistics.
Fixed setting filter in NCP Endpoints.
Corrected $Id$ in hostlist_ncp.c

svn path=/trunk/; revision=24300
2008-02-11 13:15:48 +00:00
Stig Bjørlykke 89693ff729 Avoid double space in filter when creating from conversations and endpoints.
svn path=/trunk/; revision=24299
2008-02-11 11:06:35 +00:00
Stephen Fisher aa3c4cafbc Fix for bug #2250
svn path=/trunk/; revision=24294
2008-02-09 01:09:05 +00:00
Stig Bjørlykke 59a76191b4 Added SCTP Endpoints table.
Display port number in SCTP Conversations table.
Get correct display filter from SCTP Conversations.
Arrange Conversations and Endpoints tabs alphabetically.

svn path=/trunk/; revision=24291
2008-02-08 12:33:26 +00:00
Stig Bjørlykke 42fe2398b9 Added missing "svn:keywords Id" and "svn:eol-style native" for some
c and h files.

svn path=/trunk/; revision=24290
2008-02-08 09:45:36 +00:00
Stig Bjørlykke ad5e6ad06b Removed some more "statement not reached" warnings.
svn path=/trunk/; revision=24283
2008-02-07 12:52:08 +00:00
Stig Bjørlykke a60079bd1e Improved the profile name check to popup a dialog when trying to apply an
invalid profile name.

svn path=/trunk/; revision=24268
2008-02-04 15:50:17 +00:00
Bill Meier 3d02aa4c1f Clean up (some) indentation ...
svn path=/trunk/; revision=24266
2008-02-04 00:21:20 +00:00
Bill Meier ccabb036ec Fix benign typo
svn path=/trunk/; revision=24265
2008-02-04 00:11:59 +00:00
Sake Blok c8276a5c91 From Balint Reczey (bug 2233):
The attached patch makes the Statistics -> RTP -> Show All Streams feature of
wireshark accessible via tshark.

I found it helpful in dealing with tons of RTP captures.


svn path=/trunk/; revision=24252
2008-02-03 10:31:55 +00:00
Stig Bjørlykke de3c7e9a0b Disallow ending space was not such a good idea, chop it of before save instead.
Also disallow '/' in profilename for !win32. 

svn path=/trunk/; revision=24243
2008-02-01 18:42:59 +00:00
Stig Bjørlykke 4c2f3b0644 Fixed a problem with renaming a profile after hitting apply.
Profile name cannot start or end with space, and on win32 it cannot contain
any of this characters: \ / : * ? " < > |
Added a tooltip to the profile name text box.

svn path=/trunk/; revision=24242
2008-02-01 16:49:34 +00:00
Stig Bjørlykke fe98fab03c Added tooltip description for yellow filter background.
svn path=/trunk/; revision=24241
2008-02-01 10:02:19 +00:00
Stig Bjørlykke 10a8f59e03 Rewrote some prohibited APIs in gtk/ (sprintf, strcpy, strcat).
If we get some truncated strings we probably overwrote some buffers...

svn path=/trunk/; revision=24239
2008-02-01 01:07:58 +00:00
Stig Bjørlykke 18fd58de40 Added missing space in front of new statusbar messages.
svn path=/trunk/; revision=24233
2008-01-31 20:00:45 +00:00
Gerald Combs 9703c2bb75 If "!=" or "ne" are used in a display filter, warn the user that the results
may be unexpected.

svn path=/trunk/; revision=24232
2008-01-31 19:50:38 +00:00
Stig Bjørlykke f3747bf637 Hide hidden devices in "Capture Interfaces" dialog.
Added a function to check for hidden devices, which also work correctly
for plumbed devices on solaris.

svn path=/trunk/; revision=24231
2008-01-31 16:47:05 +00:00
Bill Meier 161eb8b6d7 Add missing g_object_unref for treeview models;
Remove not needed set_tree_model (stats_tree_stat.c)

svn path=/trunk/; revision=24230
2008-01-31 16:37:56 +00:00
Stig Bjørlykke 1efb7e3627 Add Luis' uat_get_table_by_name() to fetch SMI uat tables.
svn path=/trunk/; revision=24229
2008-01-30 22:50:55 +00:00
Stig Bjørlykke 869213d9ef Added missing space in front of some statusbar messages.
svn path=/trunk/; revision=24226
2008-01-30 15:16:21 +00:00
Stig Bjørlykke 7ec0e26318 When having more than one matching item in a frame the MAX and MIN calculation
could return an invalid value.  Also fixed AVG calculation.

svn path=/trunk/; revision=24220
2008-01-29 14:27:02 +00:00
Stig Bjørlykke 3278775634 When having more than one matching item in a frame the AVG calculation
did not return a correct value.

svn path=/trunk/; revision=24210
2008-01-27 18:19:40 +00:00
Stig Bjørlykke 8369bda495 Expand the Protocol column instead of the last column on window resize.
svn path=/trunk/; revision=24209
2008-01-27 15:54:15 +00:00
Stig Bjørlykke 45572b611c Do not change profile if directory creation failed, and change to default
profile if existing profile was deleted.

svn path=/trunk/; revision=24208
2008-01-27 14:45:31 +00:00
Stig Bjørlykke 57ab05545c Also destroy the window when failure to export/import color filters.
svn path=/trunk/; revision=24204
2008-01-26 17:04:49 +00:00
Stig Bjørlykke dce0761a4a Destroy the open window after open failure to avoid having an unusable
open dialog when using GTK >= 2.4.

This fixes bug 1986.

svn path=/trunk/; revision=24203
2008-01-26 16:50:08 +00:00
Stig Bjørlykke 9c8078686e Destroy the save window after canceling a save to an existing file, so
the user is able to save again without having a hidden save window which 
will not open.

Older GTK versions will show the hidden window after failure.

This fixes bug 1896.

svn path=/trunk/; revision=24202
2008-01-26 16:45:29 +00:00
Bill Meier e923010814 Fix various small memory leaks & 1 invalid g_free (airpcap_gui_utils.c)
svn path=/trunk/; revision=24185
2008-01-24 22:26:05 +00:00
Bill Meier 644a5bb6d2 Change "Found no match" to "No match found"
svn path=/trunk/; revision=24183
2008-01-24 22:12:10 +00:00
Jeff Morriss 75849c12f1 s/%ll/%" G_GINT64_MODIFIER "/g
svn path=/trunk/; revision=24181
2008-01-24 21:57:13 +00:00
Stig Bjørlykke 6a31f43f8b Always return a valid profile name from get_profile_name().
svn path=/trunk/; revision=24175
2008-01-24 17:06:22 +00:00
Bill Meier dc0b8a0727 One of fixes in SVN #24173 incomplete; Undo it for now
svn path=/trunk/; revision=24174
2008-01-24 05:39:48 +00:00
Bill Meier b01c07bcdd Fix two very minor memory leaks
svn path=/trunk/; revision=24173
2008-01-24 04:20:07 +00:00
Gerald Combs 690f8f51f8 Arrange things so that if '-o "capture.auto_scroll: FALSE"' is passed to
Wireshark on the command line, auto-scroll is actually disabled.

svn path=/trunk/; revision=24172
2008-01-24 01:23:19 +00:00
Bill Meier a054ed6040 Fix a minor memory leak; Remove some unused variables
svn path=/trunk/; revision=24168
2008-01-23 14:07:40 +00:00
Bill Meier 6bb8b5f9b9 Fix minor memory leak
svn path=/trunk/; revision=24167
2008-01-23 14:05:22 +00:00
Jaap Keuter 56222aed0e Fix for bug 1920:
Avoid double free, causing crash, and stop memory leak via normal code path.

svn path=/trunk/; revision=24152
2008-01-21 07:35:16 +00:00
Stig Bjørlykke edf727387f Fixed crash when save IO Graphs (bug 2126).
The problem was that configure_event() is called each time the window size
changes, and each time the pixmap buffer is recreated and a new signal added
to the save button.

svn path=/trunk/; revision=24145
2008-01-20 16:53:53 +00:00
Stig Bjørlykke 27db1b2798 Added "copy as CSV" button to IO Graphs.
svn path=/trunk/; revision=24143
2008-01-20 12:24:14 +00:00
Jaap Keuter d3e52cc1fe Cleanup the whitespace.
svn path=/trunk/; revision=24137
2008-01-19 07:46:52 +00:00
Stig Bjørlykke 1621224a86 Free allocated data in prefs_reset, removed need for uat_reload_all and
made some cleanups in profile_dlg.

svn path=/trunk/; revision=24136
2008-01-19 01:18:35 +00:00
Stig Bjørlykke cd259ecb55 I can't find any reason to unselect the current package only when an entry
in the packet details view is selected.  I suppose unselecting the field is
more correct.  The previous behaviour lead to some strange errors:

 Select a packet and an entry in the packet details.  Add a new column
 and change a protocol preference.  Observe the selected package is
 unselected and packet 1 is selected, which I think is wrong.

 Do the same as above with one of the following exceptions:
  - without selecting an entry in the packet details.
  - without adding a new column.
  - without changing a protocol preference.
 Observe the selected package is still selected, which is correct.

The correct behaviour here happens because of the cf_goto_frame call in
redraw_hex_dump_all, which causes the field to be unselected before
packet_list_set_sel_browse is called, and then the cf_unselect_package
is never called.  

Maybe someone with a deeper knowledge should have a look at this...

svn path=/trunk/; revision=24135
2008-01-18 22:51:37 +00:00
Jaap Keuter 44ea74a5da Move libsmi settings from virtual mibs protocol page to name resolution page.
svn path=/trunk/; revision=24131
2008-01-18 07:18:32 +00:00
Jaap Keuter 32e4818641 Whitespace cleanup of AIRPCAP code.
svn path=/trunk/; revision=24127
2008-01-17 22:28:31 +00:00
Jaap Keuter 2e0f8088c3 From Jim Young:
This patch provides a new RTP Player preferences dialog.  It allows one to
select the maximum number of visable channels in the RTP Player window.  The
default is four (4) channels which is the maximum number of usable channels 
that the RTP Player can display and still have access to the bottom row buttons 
on a 1024*768 resolution display.  Specifying a value less than 1 or greater than 
10 will be result in the RTP Player displaying the default 4 channels.

svn path=/trunk/; revision=24112
2008-01-16 07:36:34 +00:00