[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Planning a libglade to libglade2 transition

Hash: SHA1

Andreas Tille <tillea@rki.de> 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:

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.


- -- 
Roger Leigh
                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.
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>


Reply to: