diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-24 06:02:38 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-24 06:02:38 +0000 |
| commit | 5be0a82a353b67160142134de1cc51fa31d72759 (patch) | |
| tree | 333f0e70a6cf4f2cb5252c2e16922a1b6408dc06 /plugins/keyboard | |
| parent | 230abdc5a0848cd05dc3a007826a2a6b8a73c0a5 (diff) | |
use ob_debug for any debug printing and only display the output when its a debug build or when --debug is passed to it
Diffstat (limited to 'plugins/keyboard')
| -rw-r--r-- | plugins/keyboard/keyboard.c | 2 | ||||
| -rw-r--r-- | plugins/keyboard/translate.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 33f8409e..a583a2e6 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -146,7 +146,7 @@ gboolean kbind(GList *keylist, Action *action) while (t->first_child) t = t->first_child; if (conflict) { - g_message("conflict with binding"); + g_warning("conflict with binding"); tree_destroy(tree); return FALSE; } diff --git a/plugins/keyboard/translate.c b/plugins/keyboard/translate.c index 05887e6b..7cda04c3 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_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; } |
