This wiki has been migrated to https://gitlab.com/wireshark/wireshark/-/wikis/home and is now deprecated. Please use that site instead.
Differences between revisions 1 and 31 (spanning 30 versions)
Revision 1 as of 2010-02-17 23:14:22
Size: 727
Editor: BillMeier
Comment:
Revision 31 as of 2011-02-08 07:12:30
Size: 4044
Editor: JaapKeuter
Comment: Add a note on menus.c
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Replace use of deprecated Gtk and GLib functions = = Replace use of deprecated GTK and GLib functions =
Line 3: Line 3:
Wireshark currently uses a number of Gtk and GLib functions whose use has been deprecated. Wireshark currently uses a number of [[http://library.gnome.org/devel/gtk/2.6/DeprecatedObjects.html|GTK]] widget classes
and [[http://library.gnome.org/devel/glib/2.6/ix02.html|
GLib]] functions whose use has been deprecated.
Line 7: Line 8:
<<TableOfContents>>
Line 8: Line 10:
== GtkItemFactory -> GtkUIManager ==
Line 9: Line 12:
 ||'''File''' ||'''Status'''||
 ||conversations_table.c ||Completed[[http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=33761|Rev 33851]]||
 ||expert_comp_table.c ||Completed[[http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=33761|Rev 33761]]||
 ||hostlist_table.c ||Completed[[http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=33761|Rev 34014]]||
 ||menus.c || Note 1 ||
 ||proto_help.c || ||
 ||proto_hier_stats.c ||Completed[[http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=34026|Rev 34026]]||
 ||service_response_time_table.c ||Completed[[http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=34002|Rev 34002]]||
 ||wlan_stat_dlg.c ||Completed[[http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=33860|Rev 33860]]||
  
=== Discussion ===
Line 10: Line 24:
== gtk_option_menu -> gtk_combo_box == ==== Note 1 ====
A lot has already been done by Anders, which can be found under the compile switch MAIN_MENU_USE_UIMANAGER. The question now is how to integrate the more dynamic parts, like taps, statistics, etc.

== GtkCombo -> GtkComboBoxEntry ==

 ||'''File''' ||'''Status'''||
 ||capture_dlg.c || ||

== GtkOptionMenu -> GtkComboBox ==
Line 14: Line 36:
 ||capture_dlg.c|| ||
 ||capture_file_dlg.c|| ||
 ||firewall_dlg.c||In progress: WMeier||
 ||dcerpc_stat.c|| ||
 ||decode_as_dlg.c|| ||
 ||rpc_stat.c|| ||
 ||uat_gui.c||Done||
 ||'''File''' ||'''Status'''||
 ||capture_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=33497|Rev 33497]]||
 ||capture_file_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=31950|Rev 31950]]||
 ||firewall_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=31948|Rev 31948]]||
 ||dcerpc_stat.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=31950|Rev 33592]]||
 ||decode_as_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=31949|Rev 31949]]||
 ||rpc_stat.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=31972|Rev 31972]]||
 ||uat_gui.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=31908|Rev 31908]]||
Line 22: Line 45:
Question: Should these changes be backported to the 1.2 branch ? === Discussion ===
Line 24: Line 47:
  Question: Should these changes be backported to the 1.2 branch ? - ''Bill Meier''

I reverted/upgraded the Win32 and Win64 GTK+ bundles in the trunk and trunk-1.2 branches to 2.16.6, so backporting shouldn't be necessary. 2.16 is [[https://bugzilla.gnome.org/show_bug.cgi?id=598299|strongly recommended over 2.18]], and the latest 2.16 packages should hopefully take care of the [[http://secunia.com/community/forum/thread/show/3238/wireshark_64bit_includes_outdated_gtk_library|Secunia complaints]] which spurred the upgrade to 2.18. - ''Gerald Combs''


== GtkClist -> GtkTreeView ==

 ||'''File''' ||'''Status'''||
 ||airpcap_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=35862|Rev 35862]]||
 ||mcast_stream_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=32376|Rev 32376]]||
 ||rtp_stream_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=32589|Rev 32589]]||
 ||uat_gui.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=32621|Rev 32621]]||
 ||voip_calls_dlg.c ||Completed: [[http://anonsvn.wireshark.org/viewvc?view=rev&revision=32248|Rev 32248]]||

=== Discussion ===

Replace use of deprecated GTK and GLib functions

Wireshark currently uses a number of GTK widget classes and GLib functions whose use has been deprecated.

This page is provides information as to work-in-progress to replace the use of these functions.

GtkItemFactory -> GtkUIManager

  • File

    Status

    conversations_table.c

    CompletedRev 33851

    expert_comp_table.c

    CompletedRev 33761

    hostlist_table.c

    CompletedRev 34014

    menus.c

    Note 1

    proto_help.c

    proto_hier_stats.c

    CompletedRev 34026

    service_response_time_table.c

    CompletedRev 34002

    wlan_stat_dlg.c

    CompletedRev 33860

Discussion

Note 1

A lot has already been done by Anders, which can be found under the compile switch MAIN_MENU_USE_UIMANAGER. The question now is how to integrate the more dynamic parts, like taps, statistics, etc.

GtkCombo -> GtkComboBoxEntry

  • File

    Status

    capture_dlg.c

GtkOptionMenu -> GtkComboBox

See Bug 4487 re dropdown widget behavior change seen when Windows Gtk was updated from Gtk 2.16 to Gtk 2.18.

Discussion

Question: Should these changes be backported to the 1.2 branch ? - Bill Meier

I reverted/upgraded the Win32 and Win64 GTK+ bundles in the trunk and trunk-1.2 branches to 2.16.6, so backporting shouldn't be necessary. 2.16 is strongly recommended over 2.18, and the latest 2.16 packages should hopefully take care of the Secunia complaints which spurred the upgrade to 2.18. - Gerald Combs

GtkClist -> GtkTreeView

Discussion

ReplaceDeprecatedGtkGLibFunctionUsage (last edited 2011-07-18 14:38:55 by JoergMayer)