mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
[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,
|
on_entry_activate (ClutterText *text,
|
||||||
gpointer data)
|
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 *
|
static ClutterActor *
|
||||||
|
Loading…
Reference in New Issue
Block a user