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, -- .''`. : :' : We are debian.org. Lower your prices, surrender your code. `. `' We will add your hardware and software distinctiveness to `- our own. Resistance is futile.
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=