summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 39b2cab)
raw | patch | inline | side by side (parent: 39b2cab)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 2 Jun 2006 14:12:25 +0000 (14:12 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 2 Jun 2006 14:12:25 +0000 (14:12 +0000) |
src/shortcuts.cpp | patch | blob | history |
diff --git a/src/shortcuts.cpp b/src/shortcuts.cpp
index cf7f485c6d9197bb94c51942b286f00dce1eb642..12657410c9b66b35bfc46e53304c1ef699cb4b18 100644 (file)
--- a/src/shortcuts.cpp
+++ b/src/shortcuts.cpp
}
gchar const *keyval_name=iter->attribute("key");
- if (!keyval_name) {
+ if (!keyval_name || !*keyval_name) {
// that's ok, it's just listed for reference without assignment, skip it
continue;
}
guint keyval=gdk_keyval_from_name(keyval_name);
- if (keyval == GDK_VoidSymbol) {
+ if (keyval == GDK_VoidSymbol || keyval == 0) {
g_warning("Unknown keyval %s for %s", keyval_name, verb_name);
continue;
}