aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-08-15 15:33:01 +0000
committerFrederic Culot <calcurse@culot.org>2007-08-15 15:33:01 +0000
commit470ea56514c8cf57f9e8b65a7af9dabad44873a3 (patch)
tree36d53245b9ff49107c357fa5e30d78ca5b900bfe /src
parent2525ec6e8b697681e8bc42d8bf1d59218585001f (diff)
downloadcalcurse-470ea56514c8cf57f9e8b65a7af9dabad44873a3.tar.gz
calcurse-470ea56514c8cf57f9e8b65a7af9dabad44873a3.zip
notify_init_bar() updated to use static win variable
Diffstat (limited to 'src')
-rwxr-xr-xsrc/notify.c8
-rwxr-xr-xsrc/notify.h4
2 files changed, 7 insertions, 5 deletions
diff --git a/src/notify.c b/src/notify.c
index 6033bcd..ab0a50c 100755
--- a/src/notify.c
+++ b/src/notify.c
@@ -1,4 +1,4 @@
-/* $calcurse: notify.c,v 1.18 2007/08/04 14:34:03 culot Exp $ */
+/* $calcurse: notify.c,v 1.19 2007/08/15 15:33:01 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -85,7 +85,7 @@ extract_aptsfile(void)
* number of columns, y and x are its coordinates).
*/
void
-notify_init_bar(window_t *win)
+notify_init_bar(void)
{
notify = (struct notify_vars_s *) malloc(sizeof(struct notify_vars_s));
notify_app = (struct notify_app_s *)
@@ -93,7 +93,9 @@ notify_init_bar(window_t *win)
pthread_mutex_init(&notify->mutex, NULL);
pthread_mutex_init(&notify_app->mutex, NULL);
notify_app->got_app = 0;
- notify->win = newwin(win->h, win->w, win->y, win->x);
+ notify->win = newwin(wins_prop(NOTIFY, HEIGHT),
+ wins_prop(NOTIFY, WIDTH), wins_prop(NOTIFY, YPOS),
+ wins_prop(NOTIFY, XPOS));
extract_aptsfile();
}
diff --git a/src/notify.h b/src/notify.h
index 85ae733..dccfa2d 100755
--- a/src/notify.h
+++ b/src/notify.h
@@ -1,4 +1,4 @@
-/* $calcurse: notify.h,v 1.11 2007/07/28 13:11:42 culot Exp $ */
+/* $calcurse: notify.h,v 1.12 2007/08/15 15:33:01 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -52,7 +52,7 @@ struct notify_app_s {
int notify_bar(void);
void notify_init_vars(void);
-void notify_init_bar(window_t *);
+void notify_init_bar(void);
void notify_start_main_thread(void);
void notify_stop_main_thread(void);
void notify_reinit_bar(int, int, int, int);