MichaelJakubec / gtkjfilechooser

Automatically exported from code.google.com/p/gtkjfilechooser
1 stars 0 forks source link

Get GTK Version #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We can get the GTK version if we look at this file:

$ cat /usr/lib/pkgconfig/gtk+-2.0.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
target=x11

gtk_binary_version=2.10.0
gtk_host=i386-redhat-linux-gnu

Name: GTK+
Description: GTK+ Graphical UI Library (${target} target)
Version: 2.18.3
Requires: gdk-${target}-2.0 atk cairo gio-2.0 pangoft2
Libs: -L${libdir} -lgtk-${target}-2.0 
Cflags: -I${includedir}/gtk-2.0 

Original issue reported on code.google.com by c.ce...@gmail.com on 29 Nov 2009 at 2:03

GoogleCodeExporter commented 9 years ago
On Ubuntu 9.10 the file is named "/usr/lib/pkgconfig/gtk-engines-2.pc"

Original comment by c.ce...@gmail.com on 29 Nov 2009 at 6:03

GoogleCodeExporter commented 9 years ago
Also Opensuse uses "/usr/lib/pkgconfig/gtk-engines-2.pc"

Original comment by c.ce...@gmail.com on 29 Nov 2009 at 10:05

GoogleCodeExporter commented 9 years ago
The shared object for GTK+ is:
  /usr/lib/libgtk-x11-2.0.so

Original comment by c.ce...@gmail.com on 29 Nov 2009 at 10:53

GoogleCodeExporter commented 9 years ago
On Opensolaris this paths are available:
  /usr/lib/pkgconfig/gtk+-2.0.pc
  /usr/lib/libgtk-x11-2.0.so

Original comment by c.ce...@gmail.com on 29 Nov 2009 at 10:59

GoogleCodeExporter commented 9 years ago
We can get the gnome version with the command:
$ gnome-panel --version
GNOME gnome-panel 2.28.0

and then we can retrieve the gtk+ version basing on the gnome release notes:
http://library.gnome.org/misc/release-notes/

For example
Gnome 2.28 --> GTK+ 2.18
Gnome 2.26 --> GTK+ 2.16
Gnome 2.24 --> GTK+ 2.14
Gnome 2.22 --> GTK+ ?
GNOME 2.20 --> GTK+ 2.12 
GNOME 2.18 --> GTK+ ?
GNOME 2.16 --> GTK+ 2.10
GNOME 2.14 --> GTK+ ?
GNOME 2.12 --> GTK+ 2.8
GNOME 2.10 --> GTK+ 2.6
GNOME 2.8 --> GTK+ ?
GNOME 2.6 --> GTK+ 2.4

Original comment by c.ce...@gmail.com on 30 Nov 2009 at 12:41

GoogleCodeExporter commented 9 years ago
GNOME 2.6 was the first one with the new file chooser

Original comment by c.ce...@gmail.com on 30 Nov 2009 at 6:44

GoogleCodeExporter commented 9 years ago
Complete correspondence map between GNOME and GTK

Gnome 2.28 --> GTK+ 2.18 (Sep 2009)
Gnome 2.26 --> GTK+ 2.16 (Mar 2009)
Gnome 2.24 --> GTK+ 2.14 (Sep 2008)
Gnome 2.22 --> GTK+ 2.12 (Mar 2008)
GNOME 2.20 --> GTK+ 2.12 (Sep 2007)
GNOME 2.18 --> GTK+ 2.10 (Mar 2007)
GNOME 2.16 --> GTK+ 2.10 (Sep 2006)
GNOME 2.14 --> GTK+ 2.8  (Mar 2006)
GNOME 2.12 --> GTK+ 2.8  (Sep 2005)
GNOME 2.10 --> GTK+ 2.6  (Mar 2005)
GNOME 2.8  --> GTK+ 2.4  (Sep 2004)
GNOME 2.6  --> GTK+ 2.4  (Mar 2004)

Original comment by c.ce...@gmail.com on 30 Nov 2009 at 8:15

GoogleCodeExporter commented 9 years ago
For implementation details see the class eu.kostia.gtkjfilechooser.GtkVersion.

Original comment by c.ce...@gmail.com on 30 Nov 2009 at 9:19