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

Re: A few gtk questions




On Mon, 30 Nov 1998, Dave Swegen wrote:
> 
> 1) The main display will be a map of the world, with borders drawn on it.
> This map should have clickable areas to select countries, and each country
> should be able to be floodfilled. Is imlib appropriate for this, or are
> there features of gtk I could use?
>

imlib is for loading and displaying images, so it would be useful
probably, if your countries are in .png format or the like.

I'd say GnomeCanvas will save you tons of time on this, and uses Imlib
internally.  It's perfect for this kind of application; look at the demo
in the gnome-libs/test-gnome/test-gnome program for an example of how it
can handle images. 
 
> 2) What are the biggest diffs between gtk 1.0 and 1.2?
>

1.2 has themes, lots of incremental improvements to widgets which make
them easier to use or more powerful, a few new widgets. 1.2 is also
Gnome-compatible, and using Gnome is good, especially if you need the
Canvas (but it will also save you time and add other features).

Note that 1.2 and Gnome are both going into freeze mid-December, so they
won't be a moving target.
 
> 3) How much recoding will be needed to convert from one to the other?
> 

Lots of little annoying changes. If you're just starting an app, it's
silly to use 1.0, since 1.2 will be out long before your app is finished.

If you look at the gtk-- header files, you'll see the number of #ifdefs
needed to compile with either version.

Havoc




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