+2005-07-15 Bill Haneman <bill.haneman@sun.com>
+
+ * tests/test-simple.c:
+ (key_listener_cb): Ensure that the keystring is dup'ed instead of
+ relying on the old string from the key event hanging around after
+ the event handler returns. Fixes broken 'make check'.
+
2005-06-06 Swapnil Hajare <dreamil@gmail.com>
* Added Marathi (mr_IN) translations.
AccessibleKeystroke *s = user_data;
*s = *stroke;
+ if (stroke->keystring) s->keystring = g_strdup (stroke->keystring);
if (s->type == SPI_KEY_PRESSED)
key_press_received = TRUE;
else if (s->type == SPI_KEY_RELEASED)
key_release_received = TRUE;
-
+
return TRUE;
}
g_assert (SPI_generateKeyboardEvent ('=', NULL, SPI_KEY_SYM));
while (!(key_press_received))
g_main_context_iteration (NULL, TRUE);
- fprintf (stderr, "p");
+ fprintf (stderr, "p [%s]", stroke.keystring);
g_assert (!strcmp (stroke.keystring, "="));
while (!(key_release_received))
g_main_context_iteration (NULL, TRUE);
- fprintf (stderr, "r ");
+ fprintf (stderr, "r [%s]", stroke.keystring);
key_press_received = FALSE;
key_release_received = FALSE;
}