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 <[EMAIL PROTECTED]> 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  -  [email protected]
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> _______________________________________________
> Gtk-sharp-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to