[Gtk-sharp-list] Detecting the GTK+ version at runtime?

Cody Russell bratsche at gnome.org
Tue Dec 5 19:20:21 EST 2006


Wow, that was really useful.

The real answer is no, there isn't a simple way to detect the GTK
version.  It's not exposed by gtk#, but it probably should be.

/ Cody

On Tue, 2006-12-05 at 16:09 -0800, Christian Hergert wrote:
> >From gtk docs ...
> 
> -----------------------------------------
> 
> gtk_major_version
> 
> extern const guint gtk_major_version;
> 
> The major version number of the GTK+ library. (e.g. in GTK+ version
> 1.2.5 this is 1.)
> 
> This variable is in the library, so represents the GTK+ library you
> have linked against. Contrast with the GTK_MAJOR_VERSION macro, which
> represents the major version of the GTK+ headers you have included.
> gtk_minor_version
> 
> extern const guint gtk_minor_version;
> 
> The minor version number of the GTK+ library. (e.g. in GTK+ version
> 1.2.5 this is 2.)
> 
> This variable is in the library, so represents the GTK+ library you
> have linked against. Contrast with the GTK_MINOR_VERSION macro, which
> represents the minor version of the GTK+ headers you have included.
> gtk_micro_version
> 
> extern const guint gtk_micro_version;
> 
> The micro version number of the GTK+ library. (e.g. in GTK+ version
> 1.2.5 this is 5.)
> 
> This variable is in the library, so represents the GTK+ library you
> have linked against. Contrast with the GTK_MICRO_VERSION macro, which
> represents the micro version of the GTK+ headers you have included.
> 
> -----------------------------------------
> 
> -- Christian
> 
> On 12/5/06, Pedro Castro <noup at users.sourceforge.net> wrote:
> > Hi,
> >
> > Is there a simple way to detect the GTK+ (not sharp) version being
> > used at runtime?
> >
> > --
> > Pedro Castro
> > http://mega.ist.utl.pt/~prmc
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



More information about the Gtk-sharp-list mailing list