[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:
parent
0d43d81ee0
commit
92e4391056
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user