Rename new_container to workspace_layout

This commit is contained in:
Michael Stapelberg 2011-04-02 21:49:35 +02:00
parent 650eebc347
commit c3b4006f6b
2 changed files with 6 additions and 6 deletions

View File

@ -96,7 +96,7 @@ default_orientation { return TOK_ORIENTATION; }
horizontal { return TOK_HORIZ; } horizontal { return TOK_HORIZ; }
vertical { return TOK_VERT; } vertical { return TOK_VERT; }
auto { return TOK_AUTO; } auto { return TOK_AUTO; }
new_container { return TOKNEWCONTAINER; } workspace_layout { return TOK_WORKSPACE_LAYOUT; }
new_window { return TOKNEWWINDOW; } new_window { return TOKNEWWINDOW; }
normal { return TOK_NORMAL; } normal { return TOK_NORMAL; }
none { return TOK_NONE; } none { return TOK_NONE; }

View File

@ -228,7 +228,7 @@ void parse_file(const char *f) {
%token TOK_HORIZ "horizontal" %token TOK_HORIZ "horizontal"
%token TOK_VERT "vertical" %token TOK_VERT "vertical"
%token TOK_AUTO "auto" %token TOK_AUTO "auto"
%token TOKNEWCONTAINER "new_container" %token TOK_WORKSPACE_LAYOUT "workspace_layout"
%token TOKNEWWINDOW "new_window" %token TOKNEWWINDOW "new_window"
%token TOK_NORMAL "normal" %token TOK_NORMAL "normal"
%token TOK_NONE "none" %token TOK_NONE "none"
@ -256,7 +256,7 @@ line:
| mode | mode
| floating_modifier | floating_modifier
| orientation | orientation
| new_container | workspace_layout
| new_window | new_window
| focus_follows_mouse | focus_follows_mouse
| workspace_bar | workspace_bar
@ -394,8 +394,8 @@ direction:
| TOK_AUTO { $<number>$ = NO_ORIENTATION; } | TOK_AUTO { $<number>$ = NO_ORIENTATION; }
; ;
new_container: workspace_layout:
TOKNEWCONTAINER WHITESPACE layout_mode TOK_WORKSPACE_LAYOUT WHITESPACE layout_mode
{ {
DLOG("new containers will be in mode %d\n", $<number>3); DLOG("new containers will be in mode %d\n", $<number>3);
config.default_layout = $<number>3; config.default_layout = $<number>3;
@ -419,7 +419,7 @@ new_container:
} }
#endif #endif
} }
| TOKNEWCONTAINER WHITESPACE TOKSTACKLIMIT WHITESPACE TOKSTACKLIMIT WHITESPACE NUMBER | TOK_WORKSPACE_LAYOUT WHITESPACE TOKSTACKLIMIT WHITESPACE TOKSTACKLIMIT WHITESPACE NUMBER
{ {
DLOG("stack-limit %d with val %d\n", $<number>5, $<number>7); DLOG("stack-limit %d with val %d\n", $<number>5, $<number>7);
config.container_stack_limit = $<number>5; config.container_stack_limit = $<number>5;