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

Christian Hergert christian.hergert at gmail.com
Tue Dec 5 19:09:16 EST 2006


>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
>


More information about the Gtk-sharp-list mailing list