Re: Porting a GTK 1.x application to current version
- From: Carlos Pereira <jose carlos pereira ist utl pt>
- To: Fabian Schreyer <fabianschreyer gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Porting a GTK 1.x application to current version
- Date: Wed, 14 Jul 2010 21:47:19 +0100
Hi Fabian,
1) In the beginning, you may wish to use:
#define GTK_ENABLE_BROKEN
to allow GTK 1* widgets to run with GTK 2* libs. This makes the
transition much easier, because you can port all your GTK 1* widgets
little by little, until one fine day you will be able to get rid of
#define GTK_ENABLE_BROKEN...
2) When you reach that stage, you might wish to add the following lines
to your makefiles:
override CFLAGS += -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED \
# -DGSEAL_ENABLE \
# -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES \
# -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES
When your app compiles with the uncommented lines, you have essentially
a GTK 2* app. When you manage to compile your app with the DGSEAL and
INCLUDES directives, then you have essentially a GTK 3* app.
Cheers,
Carlos
2010/7/11 Fabian Schreyer<fabianschreyer gmail com>:
Hi there,
I have to port an old GTK 1.x application from around 2000 to a
current version. The goal is simply making it work on the current
version of Ubuntu.
So I searched Google for a general porting guide, but was unable to
find anything useful, only a hint that there was one around in 2001. I
was finally able to locate this old guid via archive.org, but I'm
unsure, if it still applies to current versions of GTK+.
Does anyone know if there is a more recent guide on the net, or if the
old one from archive.org is still usable?
Take a look here: http://library.gnome.org/devel/gtk/2.21/migrating.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]