Re: GNOME/GTK versions

On Thu, Apr 24, 2003 at 10:25:26AM -0500, dan davidson conexant com wrote:
> I hate to ask a question that may be obvious to some, but-->
> Do X GUI applications built under GTK 1.2 (RH 7.2) run on newer versions
> (GTK2.0/RH7.3, GTK2.0/RH8, and GKT2.2/RH9)?

Yes, but they still use GTK 1.2. That is, Red Hat Linux 7.3/8/9 have
both 1.2 and 2.0 installed. So 1.2 apps will keep working.  1.2 will
probably remain in RHL for several more years at least.

> If not, is there a method to determine the GTK version (e.g., 1.2 or 2.0,
> etc.) from a shell script so that the shell script can run the correct
> application built for that system?

You could do "test -e /usr/lib/" or something along
those lines. Be careful that your test works both with and without the
-devel package installed, for example don't test for
"/usr/lib/" as that's in the -devel package.

Another option as Murray says is to ship your own copy of GTK with
your app, though that has some downsides (you won't get any bugfixes
or enhancements from the system GTK, and it uses more disk).


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