2011-06-20 06:32:55 +00:00
|
|
|
|
Status of the GTK+ 3 port :
|
|
|
|
|
===========================
|
|
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
|
|
Take a look at the "Migrating from GTK+ 2.x to GTK+ 3" document at:
|
|
|
|
|
http://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html
|
|
|
|
|
|
|
|
|
|
There are two ways to make the Wireshark code gtk3 ready:
|
|
|
|
|
|
|
|
|
|
1) CMake and configure options to build with gtk3 instead of gtk2:
|
|
|
|
|
cmake: ENABLE_GTK3=ON
|
2011-08-01 16:56:45 +00:00
|
|
|
|
configure: --with-gtk3
|
2011-06-20 06:32:55 +00:00
|
|
|
|
This will currently break the build and not gain much until the last
|
|
|
|
|
problem has been fixed. It will also require everyone interested in
|
|
|
|
|
working on this to have gtk3 installed.
|
|
|
|
|
|
|
|
|
|
2) The compat flags:
|
2011-07-31 11:32:15 +00:00
|
|
|
|
-DGTK_DISABLE_SINGLE_INCLUDES [works and is enabled]
|
|
|
|
|
-DGSEAL_ENABLE [works and is enabled]
|
|
|
|
|
-DGDK_DISABLE_DEPRECATED [not yet enabled, see below]
|
|
|
|
|
-DGTK_DISABLE_DEPRECATED [works if building with UI_MANAGER code, see below]
|
|
|
|
|
|
2011-06-20 06:32:55 +00:00
|
|
|
|
Gtk2 offers several compile time flags, so if you run a sufficiently new
|
|
|
|
|
version of gtk2 and turn on one or more of these flags, you can find many
|
|
|
|
|
things that are not gtk3 compatible yet.
|
2011-07-24 07:59:34 +00:00
|
|
|
|
This is a subset of what breaks when compiling with Gtk3/Gdk3.
|
2011-06-20 06:32:55 +00:00
|
|
|
|
|
2011-07-31 11:32:15 +00:00
|
|
|
|
With Gdk3, (at least) the following structs used in Wireshark are gone:
|
|
|
|
|
- GdkColormap
|
2011-07-31 12:07:23 +00:00
|
|
|
|
- GdkDrawable
|
2011-07-31 11:32:15 +00:00
|
|
|
|
- GdkPixmap
|
2011-08-04 22:38:44 +00:00
|
|
|
|
Also, the following macros are gone:
|
|
|
|
|
- GDK_DRAWABLE -> sanity check + cast, can be removed
|
|
|
|
|
- GDK_IS_DRAWABLE -> probably: sanity check, can be removed
|
|
|
|
|
- GTK_OBJECT -> sanity check + cast, can probably be removed
|
|
|
|
|
|
2011-06-20 07:13:17 +00:00
|
|
|
|
|
2011-07-31 11:32:15 +00:00
|
|
|
|
Some statistics (as of rev 38283)
|
2011-06-20 07:13:17 +00:00
|
|
|
|
|
|
|
|
|
-DGDK_DISABLE_DEPRECATED
|
2011-07-18 18:24:22 +00:00
|
|
|
|
grep error: make.log| grep -v assignment | cut -d: -f5 | sort | uniq -c
|
2011-06-20 07:13:17 +00:00
|
|
|
|
2 implicit declaration of function ‘gdk_draw_arc’
|
|
|
|
|
1 implicit declaration of function ‘gdk_draw_drawable’
|
|
|
|
|
9 implicit declaration of function ‘gdk_draw_layout’
|
2011-07-31 11:32:15 +00:00
|
|
|
|
5 implicit declaration of function ‘gdk_draw_line’
|
2011-06-20 07:13:17 +00:00
|
|
|
|
1 implicit declaration of function ‘gdk_draw_pixbuf’
|
2011-07-31 11:32:15 +00:00
|
|
|
|
3 implicit declaration of function ‘gdk_draw_pixmap’
|
2011-06-20 07:13:17 +00:00
|
|
|
|
1 implicit declaration of function ‘gdk_draw_polygon’
|
2011-07-31 11:32:15 +00:00
|
|
|
|
4 implicit declaration of function ‘gdk_draw_rectangle’
|
2011-07-26 21:25:50 +00:00
|
|
|
|
5 implicit declaration of function ‘gdk_gc_new’
|
2011-06-20 07:13:17 +00:00
|
|
|
|
1 implicit declaration of function ‘gdk_gc_set_fill’
|
|
|
|
|
2 implicit declaration of function ‘gdk_gc_set_foreground’
|
|
|
|
|
1 implicit declaration of function ‘gdk_gc_set_function’
|
|
|
|
|
1 implicit declaration of function ‘gdk_gc_set_line_attributes’
|
2011-07-26 21:25:50 +00:00
|
|
|
|
3 implicit declaration of function ‘gdk_gc_set_rgb_fg_color’
|
2011-06-20 07:13:17 +00:00
|
|
|
|
1 implicit declaration of function ‘gdk_gc_set_tile’
|
|
|
|
|
1 implicit declaration of function ‘gdk_gc_set_ts_origin’
|
2011-07-26 21:25:50 +00:00
|
|
|
|
1 implicit declaration of function ‘gdk_pixmap_create_from_xpm_d’
|
2011-06-20 07:13:17 +00:00
|
|
|
|
|
|
|
|
|
-DGTK_DISABLE_DEPRECATED
|
2011-07-18 12:40:40 +00:00
|
|
|
|
Will work if and only if building with UI_MANAGER enabled:
|
|
|
|
|
autofoo: configure ... --enable-uimanager ...
|
|
|
|
|
cmake: cmake ... -DUI_MANAGER=ON ...
|
2011-07-18 18:24:22 +00:00
|
|
|
|
Right now this looses the proto_help functionality and quite some
|
|
|
|
|
additional stuff (mostly? statistics).
|