]> Pileus Git - lackey/blobdiff - views/todo.c
Add bit flags for event and todo line items
[lackey] / views / todo.c
index 784d6e15bc6147f23362523eebc073bcbdfbcf0f..8ab6c9cb36537624d25b1a9a3b2860a76b1041be 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2012-2013 Andy Spencer <andy753421@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ static int print_todos(WINDOW *win, int row, todo_t *todos, status_t low, status
        int n = 0;
        for (todo_t *cur = todos; cur; cur = cur->next)
                if (low <= cur->status && cur->status <= high)
-                       todo_line(win, cur, row+n++, 4, COLS-4, 1);
+                       todo_line(win, cur, row+n++, 4, COLS-4, SHOW_DETAILS);
        return n;
 }
 
@@ -47,7 +47,9 @@ static int print_group(WINDOW *win, int row, todo_t *todos,
        int n = 1;
 
        /* Label */
+       wattron(win, A_BOLD);
        mvwprintw(win, row, 0, "%s", label);
+       wattroff(win, A_BOLD);
 
        /* Todos */
        if (show)