From c823b5666b631ef8c90ff5c29851267919f0eab0 Mon Sep 17 00:00:00 2001
From: Frederic Culot <calcurse@culot.org>
Date: Sun, 21 Oct 2007 13:39:07 +0000
Subject: window_t structure updated to store WINDOW pointer window_e enum
 updated to shorten names winprop_e and wins_prop() suppressed

---
 src/wins.h | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

(limited to 'src')

diff --git a/src/wins.h b/src/wins.h
index 2bc4ac7..629a6e4 100755
--- a/src/wins.h
+++ b/src/wins.h
@@ -1,4 +1,4 @@
-/*	$Id: wins.h,v 1.3 2007/08/15 15:32:33 culot Exp $	*/
+/*	$Id: wins.h,v 1.4 2007/10/21 13:39:07 culot Exp $	*/
 
 /*
  * Calcurse - text-based organizer
@@ -30,37 +30,31 @@
 #include "vars.h"
 
 typedef enum {
-	CALENDAR, 
-	APPOINTMENT, 
-	TODO,
-	NOTIFY,
-	STATUS,
+	CAL, 
+	APP, 
+	TOD,
+	NOT,
+	STA,
 	NBWINS
 } window_e;
 
-typedef enum {
-	WIDTH,
-	HEIGHT,
-	XPOS,
-	YPOS,
-	NBPROPS
-} winprop_e;
-
 /* Window properties */
 typedef struct {
+	WINDOW	*p;	/* pointer to window */
 	unsigned w;	/* width */
 	unsigned h;	/* height */
 	int	 x;	/* x position */
 	int	 y;	/* y position */
 } window_t;
 
+extern window_t         win[NBWINS];
+
 int		wins_layout(void);
 void		wins_set_layout(int);
 void		wins_slctd_init(void);
 window_e	wins_slctd(void);
 void		wins_slctd_set(window_e);
 void		wins_slctd_next(void);
-int		wins_prop(window_e, winprop_e);
 void 		wins_init(void);
 void 		wins_reinit(void);
 void 		wins_show(WINDOW *, char *);
-- 
cgit v1.2.3-70-g09d2