]> git.mdlowis.com Git - proto/labwc.git/commitdiff
keybind: s/add/create/
authorJohan Malm <jgm323@gmail.com>
Wed, 2 Sep 2020 20:05:28 +0000 (21:05 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 2 Sep 2020 20:05:28 +0000 (21:05 +0100)
include/config/keybind.h
src/config/keybind.c
src/config/rcxml.c

index 8742ca48583e0215c6f5de16bc577f674a5ffd21..136f2e717ac30256402e0065e7739726826b640f 100644 (file)
@@ -14,9 +14,9 @@ struct keybind {
 };
 
 /**
- * keybind_add - parse keybind and add to linked list
+ * keybind_create - parse keybind and add to linked list
  * @keybind: key combination
  */
-struct keybind *keybind_add(const char *keybind);
+struct keybind *keybind_create(const char *keybind);
 
 #endif /* __LABWC_KEYBIND_H */
index cac1047edab0e12c26b23568673f52a9df54d71d..06c536b04f8eb44f66e28512d5e83a69c14e5bf8 100644 (file)
@@ -22,7 +22,7 @@ static uint32_t parse_modifier(const char *symname)
                return 0;
 }
 
-struct keybind *keybind_add(const char *keybind)
+struct keybind *keybind_create(const char *keybind)
 {
        struct keybind *k = calloc(1, sizeof(struct keybind));
        xkb_keysym_t keysyms[32];
index f447076d6d76ee710d03fb21747f523dc4eecb68..03e67e6751d44545fbcfe9bd17311499a0aed8b5 100644 (file)
@@ -44,7 +44,7 @@ static void fill_keybind(char *nodename, char *content)
                return;
        rstrip(nodename, ".keybind.keyboard");
        if (!strcmp(nodename, "key"))
-               current_keybind = keybind_add(content);
+               current_keybind = keybind_create(content);
        /* We expect <keybind key=""> to come first */
        BUG_ON(!current_keybind);
        if (!strcmp(nodename, "name.action")) {
@@ -223,7 +223,7 @@ static void bind(const char *binding, const char *action)
 {
        if (!binding || !action)
                return;
-       struct keybind *k = keybind_add(binding);
+       struct keybind *k = keybind_create(binding);
        if (k)
                k->action = strdup(action);
        info("binding %s: %s", binding, action);