--- rxvt-unicode/src/rxvt.h 2004/01/31 00:20:21 1.27 +++ rxvt-unicode/src/rxvt.h 2004/01/31 04:12:10 1.29 @@ -184,7 +184,7 @@ #define scrollBar_esc 30 #define menuBar_margin 2 /* margin below text */ -#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) +#if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) # define HAVE_SCROLLBARS #endif @@ -202,9 +202,11 @@ #define R_SB_RXVT 0 #define R_SB_NEXT 1 #define R_SB_XTERM 2 +#define R_SB_PLAIN 4 #define SB_WIDTH_NEXT 19 -#define SB_WIDTH_XTERM 7 +#define SB_WIDTH_XTERM 15 +#define SB_WIDTH_PLAIN 7 #ifndef SB_WIDTH_RXVT # define SB_WIDTH_RXVT 10 #endif @@ -950,6 +952,10 @@ GC xscrollbarGC, ShadowGC; #endif +#ifdef PLAIN_SCROLLBAR + GC pscrollbarGC, + pShadowGC; +#endif #ifdef NEXT_SCROLLBAR GC blackGC, whiteGC, @@ -1294,20 +1300,22 @@ void init_scrollbar_stuff (); void drawBevel (Drawable d, int x1, int y1, int w, int h); int scrollbar_show_next (int update, int last_top, int last_bot, int scrollbar_len); -# define scrollbar_update scrollbar_show_next // HACK #endif #if defined(RXVT_SCROLLBAR) // scrollbar-rxvt.C void Draw_button (int x, int y, int state, int dirn); int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len); -# define scrollbar_update scrollbar_show_rxvt // HACK #endif #if defined(XTERM_SCROLLBAR) // scrollbar-xterm.C int scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len); -# define scrollbar_update scrollbar_show_xterm // HACK +#endif + +#if defined(PLAIN_SCROLLBAR) + // scrollbar-plain.C + int scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len); #endif // scrollbar.C