[gnome-settings-daemon] common: Print whether a device is a (non-Wacom) tablet in test app
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] common: Print whether a device is a (non-Wacom) tablet in test app
- Date: Wed, 19 Dec 2012 17:36:06 +0000 (UTC)
commit 403f6d90f594a2c28e510dac85a78c664b105e16
Author: Bastien Nocera <hadess hadess net>
Date: Wed Dec 19 18:34:56 2012 +0100
common: Print whether a device is a (non-Wacom) tablet in test app
plugins/common/test-input-helper.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/test-input-helper.c b/plugins/common/test-input-helper.c
index 1871dbb..3362c6b 100644
--- a/plugins/common/test-input-helper.c
+++ b/plugins/common/test-input-helper.c
@@ -104,6 +104,10 @@ int main (int argc, char **argv)
g_print ("Device %d is trackball:\t\t\t%s\n", (int) device_info[i].id, "yes");
continue;
}
+ if (device_info_is_tablet (&device_info[i])) {
+ g_print ("Device %d is tablet:\t\t\t%s\n", (int) device_info[i].id, "yes");
+ continue;
+ }
gdk_error_trap_push ();
device = XOpenDevice (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), device_info[i].id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]