[tests] Verify cursor position

Print out the cursor and selection positions in order to verify
the behaviour of the Text actor.

This is a likely candidate for a conformance test unit as well.
This commit is contained in:
Emmanuele Bassi 2009-05-14 12:05:57 +01:00
parent 0d43d81ee0
commit 92e4391056

View File

@ -28,7 +28,10 @@ static void
on_entry_activate (ClutterText *text,
gpointer data)
{
g_print ("Text activated: %s\n", clutter_text_get_text (text));
g_print ("Text activated: %s (cursor: %d, selection at: %d)\n",
clutter_text_get_text (text),
clutter_text_get_cursor_position (text),
clutter_text_get_selection_bound (text));
}
static ClutterActor *