]> Dogcows Code - chaz/openbox/blobdiff - plugins/keyboard/keyparse.c
start of showing/rendering menus. woot!
[chaz/openbox] / plugins / keyboard / keyparse.c
index 611686418c610b2d881e83bc6f57e93f51b1504f..61c7cd9d62aff97a15958c3f82057bfec7de7b02 100644 (file)
@@ -17,11 +17,11 @@ void keyparse(ParseToken *token)
         /* just fall through and free the token */
     } else if (top == NULL) {
         if (token->type == TOKEN_IDENTIFIER &&
-            !g_ascii_strcasecmp("key", token->data.identifier)) {
+            !g_ascii_strcasecmp("kbind", token->data.identifier)) {
             top = token->data.identifier;
             return;
         } else {
-            yyerror("syntax error (expected Key)");
+            yyerror("syntax error (expected kbind)");
             err = TRUE;
         }
     } else if (chain == NULL) {
@@ -82,6 +82,8 @@ void keyparse(ParseToken *token)
         /* these use the argument */
         if (action->func == action_execute || action->func == action_restart)
             action->data.execute.path = g_strdup(arg_str);
+        else if (action->func == action_showmenu)
+            action->data.showmenu.name = g_strdup(arg_str);
         if ((action->func == action_desktop ||
              action->func == action_send_to_desktop) &&
             arg_int)
@@ -95,7 +97,7 @@ void keyparse(ParseToken *token)
         if (kbind(strchain, action))
             action = NULL; /* don't free this if kbind succeeds */
         else
-            yyerror("failed to add binding");
+            yyerror("failed to add key binding");
         /* free the char*'s */
         g_list_free(strchain);
 
This page took 0.020986 seconds and 4 git commands to generate.