Re: Porting a GTK 1.x application to current version

2010-07-14 Thread Carlos Pereira

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:
   

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


   


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Porting a GTK 1.x application to current version

2010-07-14 Thread Javier Jardón
2010/7/11 Fabian Schreyer :
> 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


-- 
Javier Jardón Cabezas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Porting a GTK 1.x application to current version

2010-07-11 Thread Allin Cottrell

On Sun, 11 Jul 2010, Fabian Schreyer wrote:

> 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+.

The original guide should be some help but (warning: I haven't
looked at it lately -- if you get a better-informed comment please
disregard this one) I suspect it may not take into account the
fact that a fair amount of the API in early GTK+ 2 has since been
deprecated, and will disappear in GTK+ 3.

Since Ubuntu generally keeps pretty much up to date with GTK, you
should probably be looking towards GTK 3 compatibility. I'd
recommend referring to the old guide, but cross-checking this
against the html API doc for the current GTK release so as to
avoid substituting short-lived deprecated code for actually
obsolete code.

Your situation is a little awkward, since any current guide is
likely to focus on porting from (older) GTK 2 to GTK 3.

Allin Cottrell


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Porting a GTK 1.x application to current version

2010-07-11 Thread Fabian Schreyer
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?

Here is the link:
http://web.archive.org/web/20080502161346/http://developer.gnome.org/dotplan/porting/

Thank you in advance for your help,
Fabian Schreyer
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list