summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2011-03-28 10:06:56 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2011-03-30 07:28:23 +1000
commit2d55e561956dc7beb0aa6fd2d814c0540e654e34 (patch)
tree5c61cddf1ec4d3778766dcfec4e5821b17f973cc /tools
parent32d14dc4a9787356024020fd25e463a90a25f349 (diff)
Change hardcoded string to already-defined constant
WACOM_PROP_BUTTON_ACTIONS is already defined in wacom-properties.h Lets use it instead of all those magic constants. Signed-off-by: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/xsetwacom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 9df0403..1cc3da9 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -126,6 +126,7 @@ static param_t parameters[] =
{
.name = "Button",
.desc = "X11 event to which the given button should be mapped. ",
+ .prop_name = WACOM_PROP_BUTTON_ACTIONS,
.set_func = map_button,
.get_func = get_button,
},
@@ -1298,7 +1299,7 @@ static void special_map_buttons(Display *dpy, XDevice *dev, param_t* param,
TRACE("Special %s map for device %ld.\n", param->name, dev->device_id);
- btnact_prop = XInternAtom(dpy, "Wacom Button Actions", True);
+ btnact_prop = XInternAtom(dpy, WACOM_PROP_BUTTON_ACTIONS, True);
if (!btnact_prop)
return;
@@ -1726,7 +1727,7 @@ static int get_special_button_map(Display *dpy, XDevice *dev,
int i;
char buff[1024] = {0};
- btnact_prop = XInternAtom(dpy, "Wacom Button Actions", True);
+ btnact_prop = XInternAtom(dpy, WACOM_PROP_BUTTON_ACTIONS, True);
if (!btnact_prop)
return 0;