]> Pileus Git - lackey/blobdiff - views/todo.c
Start keeping track of calendars
[lackey] / views / todo.c
index e4527946a31ddc67aa020c612eb10595eada62a0..58c3b8b37bcb62d5ca5cf98fa50c50abd23fc3d4 100644 (file)
@@ -1,16 +1,16 @@
 /*
  * Copyright (C) 2012 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
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
@@ -29,7 +29,7 @@ static int     rows;
 
 static int show_new      = 1;
 static int show_started  = 1;
-static int show_finished = 1;
+static int show_finished = 0;
 
 /* Helper functions */
 static int print_todos(WINDOW *win, int row, todo_t *todos, status_t low, status_t high)
@@ -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)
@@ -110,5 +112,5 @@ int todo_run(int key, mmask_t btn, int row, int col)
                todo_draw();
                wrefresh(win);
        }
-       return 0;
+       return ref;
 }