notify_init_bar() modified to use window_t type
This commit is contained in:
parent
17160a9b08
commit
f4d0b56de7
@ -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
|
* Calcurse - text-based organizer
|
||||||
@ -83,14 +83,15 @@ notify_init_vars(void)
|
|||||||
* number of columns, y and x are its coordinates).
|
* number of columns, y and x are its coordinates).
|
||||||
*/
|
*/
|
||||||
void
|
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 = (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->mutex, NULL);
|
||||||
pthread_mutex_init(¬ify_app->mutex, NULL);
|
pthread_mutex_init(¬ify_app->mutex, NULL);
|
||||||
notify_app->got_app = 0;
|
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();
|
notify_extract_aptsfile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user