tests: Print the device name, as well as its Id

The test-devices interactive test should display the device name along
with the id.
This commit is contained in:
Emmanuele Bassi 2010-01-15 11:40:01 +00:00
parent 66740e8000
commit 850dd5a38f

View File

@ -79,7 +79,8 @@ test_devices_main (int argc, char **argv)
device_type = clutter_input_device_get_device_type (device); device_type = clutter_input_device_get_device_type (device);
if (device_type == CLUTTER_POINTER_DEVICE) if (device_type == CLUTTER_POINTER_DEVICE)
{ {
g_print ("got a pointer device with id %d...\n", g_print ("got a pointer device '%s' with id %d...\n",
clutter_input_device_get_device_name (device),
clutter_input_device_get_device_id (device)); clutter_input_device_get_device_id (device));
hand = clutter_texture_new_from_file (TESTS_DATADIR hand = clutter_texture_new_from_file (TESTS_DATADIR