projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d59c9c
)
print an error for invalid modifier keys
author
Dana Jansens
<danakj@orodu.net>
Mon, 30 Dec 2002 07:38:45 +0000
(07:38 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 30 Dec 2002 07:38:45 +0000
(07:38 +0000)
src/bindings.cc
patch
|
blob
|
history
diff --git
a/src/bindings.cc
b/src/bindings.cc
index fff4b47b224a698dbd403a9f6d3528e0f7aa819e..606eff322e9b515eedf7af7cd9347f33d0e25958 100644
(file)
--- a/
src/bindings.cc
+++ b/
src/bindings.cc
@@
-9,6
+9,9
@@
extern "C" {
#include <X11/Xlib.h>
+
+#include "gettext.h"
+#define _(str) gettext(str)
}
namespace ob {
@@
-80,6
+83,7
@@
bool OBBindings::translate(const std::string &str, Binding &b)
mod == "Mod5") {
mods |= Mod5Mask;
} else { // invalid
+ printf(_("Invalid modifier element in key binding: %s\n"), mod.c_str());
return false;
}
begin = end + 1;