diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-02-06 15:36:59 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-02-06 17:34:23 +0000 |
commit | abda749ca123f9c773bb0d0dfb3cffc0ba454879 (patch) | |
tree | 1cf5e5491c1d72a0a1aed05e3b15406709693b7c | |
parent | 9fc4e7b727af8a04f6ddd5ce17bd65005d094157 (diff) |
lib: Rename the FEATURE_GROUP constant
It loads the "Features" group, so FEATURES_GROUP is better.
-rw-r--r-- | libwacom/libwacom-database.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c index 91d163b..f0c22cb 100644 --- a/libwacom/libwacom-database.c +++ b/libwacom/libwacom-database.c @@ -37,7 +37,7 @@ #include <stdio.h> #define SUFFIX ".tablet" -#define FEATURE_GROUP "Features" +#define FEATURES_GROUP "Features" #define DEVICE_GROUP "Device" static WacomClass @@ -252,22 +252,22 @@ libwacom_parse_tablet_keyfile(const char *path) } /* Features */ - if (g_key_file_get_boolean(keyfile, FEATURE_GROUP, "Stylus", NULL)) + if (g_key_file_get_boolean(keyfile, FEATURES_GROUP, "Stylus", NULL)) device->features |= FEATURE_STYLUS; - if (g_key_file_get_boolean(keyfile, FEATURE_GROUP, "Touch", NULL)) + if (g_key_file_get_boolean(keyfile, FEATURES_GROUP, "Touch", NULL)) device->features |= FEATURE_TOUCH; - if (g_key_file_get_boolean(keyfile, FEATURE_GROUP, "Ring", NULL)) + if (g_key_file_get_boolean(keyfile, FEATURES_GROUP, "Ring", NULL)) device->features |= FEATURE_RING; - if (g_key_file_get_boolean(keyfile, FEATURE_GROUP, "Ring2", NULL)) + if (g_key_file_get_boolean(keyfile, FEATURES_GROUP, "Ring2", NULL)) device->features |= FEATURE_RING2; - if (g_key_file_get_boolean(keyfile, FEATURE_GROUP, "BuiltIn", NULL)) + if (g_key_file_get_boolean(keyfile, FEATURES_GROUP, "BuiltIn", NULL)) device->features |= FEATURE_BUILTIN; - if (g_key_file_get_boolean(keyfile, FEATURE_GROUP, "Reversible", NULL)) + if (g_key_file_get_boolean(keyfile, FEATURES_GROUP, "Reversible", NULL)) device->features |= FEATURE_REVERSIBLE; if (device->features & FEATURE_BUILTIN && @@ -278,8 +278,8 @@ libwacom_parse_tablet_keyfile(const char *path) (device->features & FEATURE_RING2)) g_warning ("Table '%s' has Ring2 but no Ring. This is impossible", device->match); - device->num_strips = g_key_file_get_integer(keyfile, FEATURE_GROUP, "NumStrips", NULL); - device->num_buttons = g_key_file_get_integer(keyfile, FEATURE_GROUP, "Buttons", NULL); + device->num_strips = g_key_file_get_integer(keyfile, FEATURES_GROUP, "NumStrips", NULL); + device->num_buttons = g_key_file_get_integer(keyfile, FEATURES_GROUP, "Buttons", NULL); out: if (keyfile) |