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-08-30 11:46:40 +00:00
|
|
|
|
This will only work if building without gtkvumeter.c. It also requires GTK3
|
|
|
|
|
to be installed. GTK3 is available for Windows as a mingw build only, see
|
2011-08-23 14:53:18 +00:00
|
|
|
|
http://lists-archives.org/gtk-devel/13233-fwd-precompiled-gtk3-for-windows.html
|
2011-06-20 06:32:55 +00:00
|
|
|
|
|
2011-08-23 14:53:18 +00:00
|
|
|
|
2) The compat flags in GTK2:
|
2011-07-31 11:32:15 +00:00
|
|
|
|
-DGTK_DISABLE_SINGLE_INCLUDES [works and is enabled]
|
|
|
|
|
-DGSEAL_ENABLE [works and is enabled]
|
2011-08-30 11:46:40 +00:00
|
|
|
|
-DGDK_DISABLE_DEPRECATED [works for most files and is globally enabled, see below]
|
|
|
|
|
-DGTK_DISABLE_DEPRECATED [works for most files and is globally enabled, see below]
|
2011-08-23 14:53:18 +00:00
|
|
|
|
|
|
|
|
|
A large part of the GTK3 porting work as been done.
|
|
|
|
|
|
|
|
|
|
The following files will not yet compile either with GTK2 and GxK_DISABLE_DEPRECATED
|
|
|
|
|
or GDK3/GTK3 or have code in them to disable functionality in order to be able to build:
|
|
|
|
|
gtkvumeter.c (windows only, fails, still using deprecated functions.)
|
|
|
|
|
proto_help.c (not ported to UI-MANAGER)
|
2011-08-30 11:46:40 +00:00
|
|
|
|
tcp_graph.c (see below)
|
2011-08-23 14:53:18 +00:00
|
|
|
|
plus maybe some other code that is outside the tested #ifdef combinations.
|
|
|
|
|
|
2011-08-30 11:46:40 +00:00
|
|
|
|
tcp_graph.c with GTK2 and GDK_DISABLE_DEPRECATED:
|
2011-08-23 14:53:18 +00:00
|
|
|
|
|
2011-08-30 11:46:40 +00:00
|
|
|
|
gtk/tcp_graph.c: In function ‘create_drawing_area’:
|
|
|
|
|
gtk/tcp_graph.c:813:3: error: implicit declaration of function ‘gdk_gc_new’
|
|
|
|
|
gtk/tcp_graph.c:813:10: error: assignment makes pointer from integer without a cast
|
|
|
|
|
gtk/tcp_graph.c:814:3: error: implicit declaration of function ‘gdk_gc_set_function’
|
|
|
|
|
gtk/tcp_graph.c:829:3: error: implicit declaration of function ‘gdk_gc_set_foreground’
|