X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Ftranslate.c;h=7cda04c3f56c59919a03a10ee7774d9be7acc3bb;hb=c90da6da781932c2d178bfb7e39ec1d5003543b7;hp=5a45f16723e28693fbd727305cd17d87ff39cdb6;hpb=98c0c676dd5cc45a92bb9c90902de7f4c7d16528;p=chaz%2Fopenbox diff --git a/plugins/keyboard/translate.c b/plugins/keyboard/translate.c index 5a45f167..7cda04c3 100644 --- a/plugins/keyboard/translate.c +++ b/plugins/keyboard/translate.c @@ -1,4 +1,4 @@ -#include "../../kernel/openbox.h" +#include "kernel/openbox.h" #include #include @@ -15,7 +15,7 @@ static guint translate_modifier(char *str) !g_ascii_strcasecmp("C", str)) return ControlMask; else if (!g_ascii_strcasecmp("Shift", str) || !g_ascii_strcasecmp("S", str)) return ShiftMask; - g_message("Invalid modifier '%s' in binding.", str); + g_warning("Invalid modifier '%s' in binding.", str); return 0; } @@ -47,12 +47,12 @@ gboolean translate_key(char *str, guint *state, guint *keycode) /* figure out the keycode */ sym = XStringToKeysym(l); if (sym == NoSymbol) { - g_message("Invalid key name '%s' in key binding.", l); + g_warning("Invalid key name '%s' in key binding.", l); goto translation_fail; } *keycode = XKeysymToKeycode(ob_display, sym); if (!*keycode) { - g_message("Key '%s' does not exist on the display.", l); + g_warning("Key '%s' does not exist on the display.", l); goto translation_fail; }