Changeset 4022
- Timestamp:
- Nov 23, 2009, 2:09:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/configuration.c
r4014 r4022 367 367 368 368 #define IS_OPTION(t) (!strncmp(argv, t, strlen(argv))) 369 #define IS_OPTION_TRUE (IS_OPTION("true") || IS_OPTION("1")) 370 369 371 int set_window_manager(const char *argv, struct screen_list *screen_list) 370 372 { … … 393 395 int set_thumbnails(const char *argv, struct screen_list *screen_list) 394 396 { 395 if (IS_OPTION ("true") || IS_OPTION("1"))397 if (IS_OPTION_TRUE) 396 398 screen_list->mini = 1; 397 399 else … … 403 405 int set_status_bar(const char *argv, struct screen_list *screen_list) 404 406 { 405 if (IS_OPTION ("true") || IS_OPTION("1"))407 if (IS_OPTION_TRUE) 406 408 screen_list->status = 1; 407 409 else … … 434 436 int set_lock_on_detach(const char *argv, struct screen_list *screen_list) 435 437 { 436 if (IS_OPTION ("true") || IS_OPTION("1"))438 if (IS_OPTION_TRUE) 437 439 screen_list->lock_on_detach = 1; 438 440 else … … 443 445 int set_eyecandy(const char *argv, struct screen_list *screen_list) 444 446 { 445 if (IS_OPTION ("true") || IS_OPTION("1"))447 if (IS_OPTION_TRUE) 446 448 screen_list->eyecandy = 1; 447 449 else … … 452 454 int set_border(const char *argv, struct screen_list *screen_list) 453 455 { 454 if (IS_OPTION ("true") || IS_OPTION("1"))456 if (IS_OPTION_TRUE) 455 457 screen_list->border_size = 1; 456 458 else
Note: See TracChangeset
for help on using the changeset viewer.