diff options
author | Qball Cow <qball@gmpclient.org> | 2014-05-22 00:38:14 +0200 |
---|---|---|
committer | Qball Cow <qball@gmpclient.org> | 2014-05-22 00:38:14 +0200 |
commit | beced5d36e9d375d99ce9d2058a6c3e62777d552 (patch) | |
tree | ae0a2018cbfe60fb9564e7056086bcbc76b471e1 /config/config.c | |
parent | f29751b573a5bf56c3fb5b7f7f86d090fa1bc861 (diff) |
Use true/false for hmode and fixed-num-lines
* Also update man page to reflect this.
Diffstat (limited to 'config/config.c')
-rw-r--r-- | config/config.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/config/config.c b/config/config.c index 8519112b..854f9437 100644 --- a/config/config.c +++ b/config/config.c @@ -68,13 +68,13 @@ Settings config = { // Location of the window. WL_CENTER, WL_NORTH_WEST, WL_NORTH,WL_NORTH_EAST, etc. .location = WL_CENTER, // Mode of window, list (Vertical) or dmenu like (Horizontal) - .hmode = VERTICAL, + .hmode = FALSE, // Padding of the window. .padding = 5, .show_title = 1, .y_offset = 0, .x_offset = 0, - .fixed_num_lines = 0 + .fixed_num_lines = FALSE }; /** @@ -106,7 +106,7 @@ void config_sanity_check( void ) exit(1); } - if ( !( config.hmode == VERTICAL || config.hmode == HORIZONTAL ) ) + if ( !( config.hmode == TRUE || config.hmode == FALSE ) ) { fprintf(stderr, "config.hmode is invalid.\n"); exit(1); @@ -140,9 +140,8 @@ void config_print( void ) } printf("# Lines: %3d\n", config.menu_lines); printf("# Columns: %3d\n", config.menu_columns); - printf("Fixed number of lines: %5s\n", config.fixed_num_lines?"true":"false"); - printf("Drawing mode: %10s\n", - config.hmode == VERTICAL?"Vertical":"Horizontal"); + printf("Fixed number of lines: %5s\n", config.fixed_num_lines?"true":"false"); + printf("Horizontal model: %5s\n", config.hmode == TRUE?"true":"false"); printf("Font: %35s\n", config.menu_font); |