Re: Code migration.



William D. Tallman wrote:
> On Sun, Jul 09, 2006 at 09:15:47PM +0100, John Cupitt wrote:
>> Hi Bill,
>>
>> It sounds like you have some problems with your installation. I'd try
>> to get a gtk2 "hello world" program going first.
> 
> Good idea, thanks.
>  
>> On 7/9/06, William D. Tallman <wtallman olypen com> wrote:
>>> 1.  Code written for Gtk+-1.2 will, or will not, compile and run
>>> correctly under Gtk-2.0.  y/nt..
>> No, some porting is required. As I remember (I went thorough this a
>> few years ago) getting something that works is pretty easy. Rewriting
>> to remove dependencies on deprecated widgets (GtkText, GtkCList, etc.)
>> is more work.
> 
> At a glance, it would seem necessary to replace all the 'gtk_' with 'g_'
> just for starters.  Haven't looked any deeper yet.

I don't think so. There are cases where gtk_* functions disappeared. And
in cases gtk_* functions are superseded by g_* but in general the old
function is only deprecated, and not removed. However most gtk_* APIs
remain in some form or another.

Cheers,
Nate




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