[gnome-settings-daemon] common: Add define for Wacom serial IDs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] common: Add define for Wacom serial IDs
- Date: Wed, 14 Dec 2011 18:56:27 +0000 (UTC)
commit 5be1bb4ca3e7f7d3c336075a589453ae9480afcc
Author: Bastien Nocera <hadess hadess net>
Date: Wed Dec 14 16:30:34 2011 +0000
common: Add define for Wacom serial IDs
plugins/common/gsd-input-helper.c | 2 +-
plugins/common/gsd-input-helper.h | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/gsd-input-helper.c b/plugins/common/gsd-input-helper.c
index a4d09c3..f06882e 100644
--- a/plugins/common/gsd-input-helper.c
+++ b/plugins/common/gsd-input-helper.c
@@ -303,7 +303,7 @@ xdevice_get_last_tool_id (int deviceid)
gdk_display_sync (gdk_display_get_default ());
- prop = XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), "Wacom Serial IDs", False);
+ prop = XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), WACOM_SERIAL_IDS_PROP, False);
if (!prop)
return id;
diff --git a/plugins/common/gsd-input-helper.h b/plugins/common/gsd-input-helper.h
index 0f35af9..3a774ea 100644
--- a/plugins/common/gsd-input-helper.h
+++ b/plugins/common/gsd-input-helper.h
@@ -27,6 +27,8 @@ G_BEGIN_DECLS
#include <X11/extensions/XInput.h>
#include <X11/extensions/XIproto.h>
+#define WACOM_SERIAL_IDS_PROP "Wacom Serial IDs"
+
typedef enum {
COMMAND_DEVICE_ADDED,
COMMAND_DEVICE_REMOVED,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]