[g-a-devel] run-time gail/at-spi versioning ...



Hi there,

	So - thinking about this; prolly the best way to add version numbering
to atk/gail/at-spi is not to add new symbols - since that would give a
hard link-time & compile time requirement on the new code; but instead
add a couple of GObject properties.

	Something like this would be great:

	AtkObject *root = atk_get_root ();
	gboolean right_version = FALSE;
	if (root) {
		gulong gail_version = 0;
		gulong spi_bridge_version = 0;
		g_object_get (root, "gail-version", &gail_version,
			      "spi-bridge-version", &spi_bridge_version,
			      NULL);
		if (gail_version >= 1008002 /* 1.8.2 */ ||
		    spi_bridge_version >= 1006005 /* 1.6.5 */)
			right_version = TRUE;
	}

	Then we can warn if we don't have something new enough for OO.o to work
well, without adding any new API we have to link to.

	Bill - would you accept a patch adding those properties to gail ? (and
adding some code to bridge.c to set the spi-bridge-version
appropriately) ?

	Thanks,

		Michael.

-- 
 michael meeks novell com  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]