summaryrefslogtreecommitdiff
path: root/plugins/keyboard/translate.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-05 00:10:47 +0000
committerDana Jansens <danakj@orodu.net>2003-04-05 00:10:47 +0000
commit98c0c676dd5cc45a92bb9c90902de7f4c7d16528 (patch)
treed79919ff615bbdf4ec4c732a3f5c6dd224031366 /plugins/keyboard/translate.c
parentd77ac21a62d4e57dd39de6a707ca1d278cbb1e0a (diff)
initialize all vars.
change warnings to messages
Diffstat (limited to 'plugins/keyboard/translate.c')
-rw-r--r--plugins/keyboard/translate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/keyboard/translate.c b/plugins/keyboard/translate.c
index 25e1c6a6..5a45f167 100644
--- a/plugins/keyboard/translate.c
+++ b/plugins/keyboard/translate.c
@@ -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_warning("Invalid modifier '%s' in binding.", str);
+ g_message("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_warning("Invalid key name '%s' in key binding.", l);
+ g_message("Invalid key name '%s' in key binding.", l);
goto translation_fail;
}
*keycode = XKeysymToKeycode(ob_display, sym);
if (!*keycode) {
- g_warning("Key '%s' does not exist on the display.", l);
+ g_message("Key '%s' does not exist on the display.", l);
goto translation_fail;
}