[g-a-devel]test-simple in at-spi



When running this program I came across a problem because GailButton now 
implements AtkText interface.

The attached patch gets around that problem. OK to commmit?

Padraig
Index: test-simple.c
===================================================================
RCS file: /cvs/gnome/at-spi/test/test-simple.c,v
retrieving revision 1.31
diff -u -p -r1.31 test-simple.c
--- test-simple.c	17 Nov 2002 13:54:00 -0000	1.31
+++ test-simple.c	15 Jan 2003 15:59:26 -0000
@@ -295,7 +295,16 @@ static void
 test_text (AccessibleText *text)
 {
 	char *str;
+	static gboolean done = FALSE;
 
+	if (done)
+		return;
+	done = TRUE;
+	/*
+	 * A GtkButton now supports the Text interface so only want
+	 * to call this function once.
+	 */
+	
 	fprintf (stderr, "Testing text ...\n");
 
 	g_assert (AccessibleText_getCharacterCount (text) ==


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