diff options
| author | Marcin Zelent <zelent.marcin@gmail.com> | 2018-01-29 16:18:37 +0100 |
|---|---|---|
| committer | Marcin Zelent <zelent.marcin@gmail.com> | 2018-01-29 16:18:37 +0100 |
| commit | ab8473fc2ed48cb299f8d6a7766a8e77046c58b8 (patch) | |
| tree | 41e2a862b815a015cbe6dad34d43535e700f76d1 | |
| parent | d43d0070aab571173baeb5c5299693fde5c9f06b (diff) | |
Changed the method of displaying activities to a list made m.
| -rw-r--r-- | timetracker.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/timetracker.c b/timetracker.c index 7596171..828bdc4 100644 --- a/timetracker.c +++ b/timetracker.c @@ -2,10 +2,11 @@ #include <time.h> #include <string.h> #include <ncurses.h> +#include <form.h> +#include <menu.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <form.h> #include <dirent.h> typedef struct activity { @@ -17,7 +18,6 @@ typedef struct activity { activity new; activity activities[100]; - void print_new(WINDOW *win) { time_t now = time(NULL); @@ -31,11 +31,28 @@ void print_new(WINDOW *win) void print_activities(WINDOW *win) { - for (int i = 0 |