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

Re: Anyone out there programming in GTK on Gnome?



 Robert A Pfeiffer <jareth@voyager.net> wrote:
>I'm new to the area and new the this user group.  Wondering if anyone programs
>in GTK with the Gnome environment?  If you have, is it fairly straight
>forward?  I want to port a console application to the GUI environment and
>thought that might be the way to go.

I've written some GTK applications, mostly small ones, from scratch. Of 
course, the difficultis you face in you port will depend on how cleanly the
console app was designed; if you have a lot of I/O threaded into the code,
your rewrite will generally be harder, and the general problem of 
recasting dialogues onto panels has to be faced in any case.

My own tendency is not to write raw code in any case, but to use dialog 
editors and code generators for the GUI. If there are some special 
considerations, such as specialized event handling or low level graphics
management to be done, I write those as seperate handlers and  link 'em in
later. Ususally, you have to do the same to exploit the underlying Objedt 
Transport, but that's the fun part, and the dialog editor is useful 
becuase it takes care of the 93% of standard stuff. Also, Most dialog editors
are prtty good about generating code that promotes portability by keeping 
your callbacks seperate form the GUI to a great degree; I'd reject any that
didn't.

There are several dialog editors available for GNOME; I haven't used one 
in a few months, and I'd suggest you look at freshmeat.net and search for 
some. 


                                                              Regards,
                                                              ---> RGB <---