]> Dogcows Code - chaz/openbox/blobdiff - plugins/keyboard/translate.c
ignore cparse.c
[chaz/openbox] / plugins / keyboard / translate.c
index 75c077fda0beab6f3da2c38eac49c707b669cdcd..d18c604b3f8abfcbedabace7b44ddad17b429f91 100644 (file)
@@ -1,9 +1,8 @@
 #include "../../kernel/openbox.h"
-#include "keyboard.h"
 #include <glib.h>
 #include <string.h>
 
-guint keyboard_translate_modifier(char *str)
+static guint translate_modifier(char *str)
 {
     if (!strcmp("Mod1", str) || !strcmp("A", str)) return Mod1Mask;
     else if (!strcmp("Mod2", str)) return Mod2Mask;
@@ -36,7 +35,7 @@ gboolean translate_key(char *str, guint *state, guint *keycode)
     /* figure out the mod mask */
     *state = 0;
     for (i = 0; parsed[i] != l; ++i) {
-       guint m = keyboard_translate_modifier(parsed[i]);
+       guint m = translate_modifier(parsed[i]);
        if (!m) goto translation_fail;
        *state |= m;
     }
This page took 0.020687 seconds and 4 git commands to generate.