Commit graph

3402 commits

Author SHA1 Message Date
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