Re: [gtkmm] porting projects from gtkmm-1.2 to gtkmm2


On Mon, 2003-01-13 at 12:09, Leandro Fanzone wrote:

> My own experience is that I almost had to rewrite everything from 
> scratch. My application was heavy reliant on Gtk::CList which doesn't 
> exist anymore, for example. 

I second that. Speaking from the trenches and looking back, you would be
better off carefully planning your port to gtkmm2:

1. Read the poring guides both for Gtk2 and Gtkmm2. Also, download an
read the latest Gtkmm Programmers' Guide.

2. Study your application and list all of the methods and widgets that
are depricated.

3. For every widget that is depricated, list the functionality of that
widget that your gtk1.2 application used. Write a quick stand-alone
example for each case, testing how that functionality can be achieved
with Gtkmm2.

I ran into CList deprication woes, and wrote a small example that only
implemented the functionality I was interested in:

Another thing was deprication of Gnome::PropertyBox. The same story.
Browse this archive for hints. There has been a few very useful
discussions in the past 4 months.

4. Only then, when you are convinced that you know how to change your
application, move on and start changing.

Again, I am a seasoned GUI coder. I write a small app once in a while
and quickly forget the whole business.

hope this helps,


> To mimic all the things I had done in CList 
> with TreeView was a headache after another. Also all the fonts 
> management changed radically. I began to port module by module, until I 
> realized that I should better begin from scratch, reusing some of my old 
> code here and there, but thinking on the new platform from ground zero.
> Well, that's my case, I think in other cases it could be far more 
> easier, naturally.
> Leandro.
> Vishal Modak wrote:
> > hi !!
> >
> > Yes..I aware that gtkmm-1.2 is a very obsolete version..Infact i
> > really like gtkmm2..I did use it..for a while
> >
> > In the project that i am working on we have used gtkmm-1.2..I want
> > to know how much would it affect changing to gtkmm2..
> > Because we have done considerable development..We have not been
> > able handle the saving images in EPS format ..that is what i am
> > doing
> >
> > if we change to gtkmm2..would we have to write to the whole code
> > again
> > which is not viable option..
> >
> > If there is any way by which existing code can be converted to
> > would be really helpfull..?
> >
> > what are your views regarding this..?
> >
> > Is there any other way to solve this problem...?
> >
> > I welcome any suggestions from your part..
> >
> > thanks for help
> >
> > regards
> > Vishal Modak
> >
> >
> >
> >
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> >
> >
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
Vladislav Grinchenko           e-mail (w): vgrinche integ com
Software Engineer                     (h): vladg erols com
Integral Systems, Inc.               http:

"Focus on quality, and productivity will follow." C. Jones

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