summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-07-20 19:10:51 +0000
committerFrederic Culot <calcurse@culot.org>2007-07-20 19:10:51 +0000
commitf4d0b56de7e9cb7d07d9faf5fa135fca9d4e317d (patch)
treeab59c82f503dfb3235fc7411f9bb154f11d404c4 /src
parent17160a9b08acc04cac3abc7a85fdaf581221faf3 (diff)
downloadcalcurse-f4d0b56de7e9cb7d07d9faf5fa135fca9d4e317d.tar.gz
calcurse-f4d0b56de7e9cb7d07d9faf5fa135fca9d4e317d.zip
notify_init_bar() modified to use window_t type
Diffstat (limited to 'src')
-rwxr-xr-xsrc/notify.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/notify.c b/src/notify.c
index 919eb1e..35bde07 100755
--- a/src/notify.c
+++ b/src/notify.c
@@ -1,4 +1,4 @@
-/* $calcurse: notify.c,v 1.13 2007/07/01 17:57:05 culot Exp $ */
+/* $calcurse: notify.c,v 1.14 2007/07/20 19:10:51 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -83,14 +83,15 @@ notify_init_vars(void)
* number of columns, y and x are its coordinates).
*/
void
-notify_init_bar(int l, int c, int y, int x)
+notify_init_bar(window_t *win)
{
notify = (struct notify_vars_s *) malloc(sizeof(struct notify_vars_s));
- notify_app = (struct notify_app_s *) malloc(sizeof(struct notify_app_s));
+ notify_app = (struct notify_app_s *)
+ malloc(sizeof(struct notify_app_s));
pthread_mutex_init(&notify->mutex, NULL);
pthread_mutex_init(&notify_app->mutex, NULL);
notify_app->got_app = 0;
- notify->win = newwin(l, c, y, x);
+ notify->win = newwin(win->h, win->w, win->y, win->x);
notify_extract_aptsfile();
}