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 <killert...@gmail.com>
---
 tools/xsetwacom.c |    5 +++--
 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;
-- 
1.7.4.1


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to