Commit Graph

58 Commits

Author SHA1 Message Date
Bill Meier eb232c3954 Add a few deprecated GObject fcns;
Fix some typos and capitalization.

svn path=/trunk/; revision=33254
2010-06-18 22:17:43 +00:00
Bill Meier 459eb4eed7 Add deprecated from GLib 2.24
svn path=/trunk/; revision=33247
2010-06-17 18:12:46 +00:00
Bill Meier e636286b3c Add GTK deprecated from GTK 2.20.
svn path=/trunk/; revision=33246
2010-06-17 17:51:52 +00:00
Jeff Morriss ca2a2b6298 Fix the value_string regexp so it doesn't match value_string_ext (which we don't have to check for NULL termination and the like)
svn path=/trunk/; revision=32937
2010-05-24 22:31:51 +00:00
Anders Broman fc0932168f Run deprecated-gtk-todoon all files in the gtk dir.
svn path=/trunk/; revision=32638
2010-05-02 21:42:53 +00:00
Bill Meier 264d162f8d (Minor): Improve an output message.
svn path=/trunk/; revision=32277
2010-03-25 18:50:31 +00:00
Bill Meier e3fc8e195c gtk_entry_append_text no longer used by Wireshark: Mark as deprecated-gtk ('W" => 'E')
svn path=/trunk/; revision=31387
2009-12-29 19:30:02 +00:00
Bill Meier 06a1aa808c gtk_progress_bar_update no longer used by Wireshark: Mark as deprecated ('W" => 'E').
svn path=/trunk/; revision=31385
2009-12-29 17:50:03 +00:00
Bill Meier 1b15280a40 Mark certain GTK functions now unused by Wireshark as deprecated ("W" ==> 'E');
Rework usage() text slightly;
Clean up whitespace (untabify & etc).

svn path=/trunk/; revision=31381
2009-12-29 15:35:20 +00:00
Bill Meier 5ae2550311 Update GLib/GTK deprecated lists to match current stable Glib/GTK;
Various other minor changes ....

svn path=/trunk/; revision=31374
2009-12-28 20:54:20 +00:00
Jaap Keuter ff810ee91c Following bug 4302 added ctime() to the deprecated list.
svn path=/trunk/; revision=31210
2009-12-08 22:26:04 +00:00
Bill Meier 500a247519 Add some comments about GMemChunk usage;
Enable 'deprecated' checking for some GLib functions 
 Wireshark doesn't currently use.

svn path=/trunk/; revision=30528
2009-10-12 01:38:43 +00:00
Bill Meier c7820529f5 Fix indentation.
svn path=/trunk/; revision=30380
2009-10-07 01:08:13 +00:00
Anders Broman 8fc53b829b Use gtk_image_new_from_pixmap().
svn path=/trunk/; revision=30316
2009-10-04 18:33:23 +00:00
Anders Broman 199330559c Remove #if 0'ed code.
svn path=/trunk/; revision=30312
2009-10-04 18:21:14 +00:00
Anders Broman ecc0cdb162 From GTK docs:
Warning
gtk_window_set_policy is deprecated and should not be used in newly-written code. Use gtk_window_set_resizable() instead.

Changes how a toplevel window deals with its size request and user resize attempts. There are really only two reasonable ways to call this function: 

1.gtk_window_set_policy (GTK_WINDOW (window), FALSE, TRUE, FALSE) means that the window is user-resizable. 

2.gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, TRUE) means that the window's size is program-controlled, and should simply match the current size request of the window's children. 

gtk_window_set_resizable () :
Sets whether the user can resize a window. Windows are user resizable by default.

svn path=/trunk/; revision=30311
2009-10-04 18:11:22 +00:00
Anders Broman fa3b06e9de Get rid of deprecated symblol gtk_widget_draw().
svn path=/trunk/; revision=30305
2009-10-04 15:49:52 +00:00
Gerald Combs c66d0e4a6f Add assert and assert_perror to the 'abort' list.
svn path=/trunk/; revision=28896
2009-06-30 20:28:26 +00:00
Jeff Morriss bbc68754f6 It appears Wireshark now has only ASCII in its source files; Treat non-ASCII chars as an error.
svn path=/trunk/; revision=28738
2009-06-15 15:16:52 +00:00
Bill Meier 899b857400 gtk_exit(): deprecated and no longer used in Wireshark: 'W' ==> 'E'
svn path=/trunk/; revision=28445
2009-05-22 12:39:00 +00:00
Bill Meier e88bdea0bb gtk_check_menu_item_set_show_toggle() is deprecated and not needed.
[show_toggle is always TRUE].

svn path=/trunk/; revision=28292
2009-05-07 14:35:02 +00:00
Anders Broman 2621fbbdf9 Change W->E for now removed functions.
svn path=/trunk/; revision=28279
2009-05-05 18:38:59 +00:00
Bill Meier 866eb54ad4 checkAPIs: check for 'const' in value_string definition.
svn path=/trunk/; revision=28114
2009-04-21 22:26:34 +00:00
Bill Meier 14980f1592 checkAPIs: Add additional GLib deprecated functions;
Update comments.

svn path=/trunk/; revision=28051
2009-04-14 18:22:43 +00:00
Bill Meier b6366d45f3 gtk_label_get() --> gtk_label_get_text() with related code changes;
Also: Fix indentation to be consistent.

svn path=/trunk/; revision=28034
2009-04-11 18:03:11 +00:00
Anders Broman b686f1fa30 Get rid of gtk_file_selection_new and gtk_file_selection_get_filename.
svn path=/trunk/; revision=28032
2009-04-11 14:47:55 +00:00
Bill Meier 3224dc5d7a Remove unnecessary use of (deprecated) gtk_button_box_set_child_ipadding();
(In each case the arg values used [4,0] were the same as the defaults).
checkAPIs.pl: gtk_button_box_set_child_ipadding: 'W' --> 'E'

svn path=/trunk/; revision=28030
2009-04-10 18:31:01 +00:00
Bill Meier ade9f33ac5 gtk_widget_ref: 'W' --> 'E';
Also: Add GTK 2.16.0 deprecated functions

svn path=/trunk/; revision=28028
2009-04-10 14:12:29 +00:00
Bill Meier bd86780397 gtk_set_usize: W --> E;
Change 'usage' to list groups and default groups.

svn path=/trunk/; revision=28020
2009-04-09 13:04:15 +00:00
Anders Broman caa4281da4 gtk_widget_ref() -> g_object_ref()
GTK_SIGNAL_FUNC -> G_CALLBACK()

svn path=/trunk/; revision=28017
2009-04-09 05:51:56 +00:00
Bill Meier 510a52b128 Treat any usage of functions in the 'deprecated' group an an Error.
There's no longer any Wireshark usage of these functions.

svn path=/trunk/; revision=27732
2009-03-15 20:50:33 +00:00
Bill Meier 34515ab429 Add complete list of deprecated GTK API's (as of GTK 2.14.7).
Group 'deprecated-gtk' lists all deprecated GTK APIs which
  are not currently used in Wireshark.
  -g deprecated-gtk will 'Error';

 Group 'deprecated-gtk-todo' lists the deprecated GTK APIs
  which are still used in Wireshark (ie: not yet fixed).
  -g deprecated-gtk-todo will 'Warn'.

Also: two new options added:
 -M: -g output is one line per function per file;
 -s summary-group: gives a count of the usage of each function in that group
    [currently: any group used in -s must also be specified with -g option].
   

svn path=/trunk/; revision=27729
2009-03-15 20:09:25 +00:00
Anders Broman 4602e4850d Add GTK deprecated functions.
svn path=/trunk/; revision=27561
2009-02-27 07:09:25 +00:00
Anders Broman e88a6e5392 Update CheckApi with:
#'gtk_clist_new', should we depriceate?
		# GtkCList has been deprecated since GTK+ 2.0 and should not be used
		# in newly written code. Use GtkTreeView instead. 
		'gtk_file_selection_new',

svn path=/trunk/; revision=27508
2009-02-22 14:47:07 +00:00
Bill Meier 0726ae61dc Search for "(static const|static|const) value_string" when
looking for value_string definitions to validate.

svn path=/trunk/; revision=26026
2008-08-14 23:03:29 +00:00
Jeff Morriss acd338f422 Remove the (long deprecated) proto_tree_add_*_hidden() functions
svn path=/trunk/; revision=25820
2008-07-24 15:35:29 +00:00
Bill Meier a4d1eb9ee9 (Minor) Disable un-needed 'capture' in regexp
svn path=/trunk/; revision=25811
2008-07-23 23:15:07 +00:00
Bill Meier e86d6997c7 Fix double-quoted string regexp to match strings with "line continuation";
Enable value_string check again ....

svn path=/trunk/; revision=25810
2008-07-23 22:50:03 +00:00
Bill Meier d35d95395a Disable value_string check for now.
Apparently the "regex which matches double-quoted strings"
doesn't work with some versions of Perl (eg: 5.8.8) if the
string contains a 'line-continuation' (\ folowed by a new-line).
(This works for Perl 5.10.0).
So: disable value_string check until I look into this further.

svn path=/trunk/; revision=25802
2008-07-23 11:36:27 +00:00
Bill Meier ac48c59340 Add test to check if value_string arrays are NULL terminated;
default: test is enabled.
Check for error return from GetOptions

svn path=/trunk/; revision=25800
2008-07-22 22:27:08 +00:00
Guy Harris b6e20d89be Put printf into a separate "termoutput" API group. For most files,
check for it - but not for TShark plugins, as they are expected to
print to the standard output.

svn path=/trunk/; revision=25653
2008-07-01 21:13:32 +00:00
Gerald Combs b642ef10fa Have checkAPIs.pl print to stderr, so that its output is colored red in
Buildbot. Make capitalization more consistent. Look for abort functions in
wsutil.

svn path=/trunk/; revision=25619
2008-06-27 22:48:25 +00:00
Gerald Combs 83aacf0a09 Add support for "API groups" in checkAPIs.pl. Make the "prohibited"
and "deprecated" groups the default. Add an "abort" group for code that
shouldn't exit the program. Update the makefiles to call "checkAPIs.pl
-g abort" for dissectors. Remove a dependency on "cat" in checkAPIs.pl.

svn path=/trunk/; revision=25614
2008-06-26 22:20:05 +00:00
Jeff Morriss a5cee04fad Move the file utility functions from wiretap to libwsutil so that
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-05-22 15:46:27 +00:00
Bill Meier 5a43cd6358 Check for a few addt'l functions...
svn path=/trunk/; revision=25341
2008-05-21 14:49:50 +00:00
Jeff Morriss 547cda2f1f Update comments.
svn path=/trunk/; revision=25286
2008-05-13 12:49:32 +00:00
Anders Broman db6d0b9a4c Run checkAPI in plugins dir.
svn path=/trunk/; revision=25259
2008-05-08 18:24:08 +00:00
Anders Broman 9cc9c92e75 Fix some of the Errors/warnings detected by checkapi,
make non ASCII char a warning for now.

svn path=/trunk/; revision=25240
2008-05-05 20:38:27 +00:00
Anders Broman 163d568fe6 Add depreceated glib API:s
svn path=/trunk/; revision=25230
2008-05-05 06:27:15 +00:00
Jeff Morriss 74a602085e Ban strdup() and strndup().
svn path=/trunk/; revision=25045
2008-04-15 12:56:23 +00:00