From f4d0b56de7e9cb7d07d9faf5fa135fca9d4e317d Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Fri, 20 Jul 2007 19:10:51 +0000 Subject: notify_init_bar() modified to use window_t type --- src/notify.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/notify.c') 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(¬ify->mutex, NULL); pthread_mutex_init(¬ify_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(); } -- cgit v1.2.3-54-g00ecf