Re: how to get a gnome library version with code?
- From: Neo Liu <Neo Liu Sun COM>
- To: Josselin Mouette <joss debian org>
- Cc: desktop-devel-list gnome org
- Subject: Re: how to get a gnome library version with code?
- Date: Mon, 05 Mar 2007 10:57:28 +0800
great thanks for all reply.
Josselin's hit my point. thanks again.
ln
Josselin Mouette wrote:
Le vendredi 02 mars 2007 à 14:24 +0800, Neo Liu a écrit :
gurus,
how can I get a library version in code? is there a general way? and if
not, is there a way to get atk/at-spi library version?
There is no generic way to do this, but a number of libraries provide
interfaces to their version. With ATK, it is atk_get_toolkit_version,
and with at-spi it is AccessibleApplication_getVersion.
However you should be very careful with what you do with such string
versions, as they can't be expected to carry meaningful information
about the library's features.
For example, Eclipse has a workaround for a bug found in some GTK+
versions, and checks for the GTK+ version to know whether it should use
the workaround. When the GTK+ fix was backported, Eclipse started to
fail horribly.
Cheers,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]