Re: Planning a libglade to libglade2 transition
-----BEGIN PGP SIGNED MESSAGE-----
Andreas Tille <email@example.com> writes:
> On Tue, 14 Jun 2005, Roger Leigh wrote:
>> That's true, but for the majority of code, which just uses existing
>> GtkObjects, conversion is no much more involved than
>> search-and-replace. Plus, if you don't bother with the full
>> conversion, there's quite a lot of compatibility functions to make
>> things easier.
> I would be very thankful for links to aprorpiate search-and-replace
> expressions or compatibility functions. Once I was searching for
> this kind of stuff I failed.
I don't have any links I'm afraid. I only learnt GTK+ 2.0, and never
used 1.2. I did the work with nothing more than both API references.
It's a while back, but it was basically:
gtk_object_* -> g_object_* (except for gtk_object_destroy)
gtk_signal_* -> g_signal_*
and the same applies to all the casts:
GTK_OBJECT -> G_OBJECT
That was about 80% of all the changes, but note that this is not
strictly required: all these have compatibility wrappers.
The rest of the changes were a little more involved (IIRC the object
property API is different), but in most cases it was simply a matter
of finding an appropriate equivalent and doing a little reworking.
YMMV, since it depends on exactly what GTK+ features the code uses.
If you like, I can take a look at it and suggest what needs doing.
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
-----END PGP SIGNATURE-----