repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 7f9d70eee7f65c7360e645db05f0016263f54bf5:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 7f9d70eee7f65c7360e645db05f0016263f54bf5
Author: Emanuele Giaquinta 
Date:   Sat Dec 29 14:43:44 2007 +0000

    Rename 'sb_shadow' scrollBar_t field to 'shadow'.

diff --git a/src/scrollbar-plain.C b/src/scrollbar-plain.C
index fc42e09207387e5dbf06a85d9f49651d736f3d6e..
index ..2a9f8aa673d12aa243c8d4df486c5fba35cd1525 100644
--- a/src/scrollbar-plain.C
+++ b/src/scrollbar-plain.C
@@ -49,12 +49,12 @@ rxvt_term::scrollbar_show_plain (int update, int last_top, int last_bot, int scr
     {
       if (last_top < scrollBar.top)
         XClearArea (dpy, scrollBar.win,
-                    scrollBar.sb_shadow, last_top,
+                    scrollBar.shadow, last_top,
                     sbwidth + 1, scrollBar.top - last_top, False);

       if (scrollBar.bot < last_bot)
         XClearArea (dpy, scrollBar.win,
-                    scrollBar.sb_shadow, scrollBar.bot,
+                    scrollBar.shadow, scrollBar.bot,
                     sbwidth + 1, last_bot - scrollBar.bot, False);
     }
   else
diff --git a/src/scrollbar-rxvt.C b/src/scrollbar-rxvt.C
index 2de6741d2d6feeacad5f4ccb985d3b3dba08f60f..
index ..7dd6396ebd05ad921d3c800f39261dc9f99655e7 100644
--- a/src/scrollbar-rxvt.C
+++ b/src/scrollbar-rxvt.C
@@ -149,7 +149,7 @@ draw_button (rxvt_term *term, int x, int y, int state, int dirn)
 int
 rxvt_term::scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len)
 {
-  int sbshadow = scrollBar.sb_shadow;
+  int sbshadow = scrollBar.shadow;
   int sbwidth = (int)scrollBar.width;

   if ((scrollBar.init & R_SB_RXVT) == 0)
diff --git a/src/scrollbar-xterm.C b/src/scrollbar-xterm.C
index 161f55546ff4625ffe8bf933c49b6d2778e70c4a..
index ..a083e6114071d4a01a0ad78903ce51286e61ef5e 100644
--- a/src/scrollbar-xterm.C
+++ b/src/scrollbar-xterm.C
@@ -65,12 +65,12 @@ rxvt_term::scrollbar_show_xterm (int update, int last_top, int last_bot, int scr
     {
       if (last_top < scrollBar.top)
         XClearArea (dpy, scrollBar.win,
-                   scrollBar.sb_shadow + xsb, last_top,
+                   scrollBar.shadow + xsb, last_top,
                    sbwidth, (scrollBar.top - last_top), False);

       if (scrollBar.bot < last_bot)
         XClearArea (dpy, scrollBar.win,
-                   scrollBar.sb_shadow + xsb, scrollBar.bot,
+                   scrollBar.shadow + xsb, scrollBar.bot,
                    sbwidth, (last_bot - scrollBar.bot), False);
     }
   else
diff --git a/src/scrollbar.C b/src/scrollbar.C
index e0a23ed0c3521f90c0b2d05368e94ed1ac4ca9db..
index ..f0e35a6ad2d90d87424bf9819cdbe37ee04b316e 100644
--- a/src/scrollbar.C
+++ b/src/scrollbar.C
@@ -72,9 +72,9 @@ rxvt_term::resize_scrollbar ()
 #define R_SCROLLBEG_NEXT	0
 #define R_SCROLLEND_NEXT	szHint.height - (SB_BUTTON_TOTAL_HEIGHT + \
                                                     SB_PADDING)
-#define R_SCROLLBEG_RXVT	(scrollBar.width + 1) + scrollBar.sb_shadow
+#define R_SCROLLBEG_RXVT	(scrollBar.width + 1) + scrollBar.shadow
 #define R_SCROLLEND_RXVT	szHint.height - R_SCROLLBEG_RXVT - \
-                                    (2 * scrollBar.sb_shadow)
+                                    (2 * scrollBar.shadow)

 #if defined(PLAIN_SCROLLBAR)
   if (scrollBar.style == R_SB_PLAIN)
@@ -232,7 +232,7 @@ rxvt_term::setup_scrollbar (const char *scrollalign, const char *scrollstyle, co

 # ifdef RXVT_SCROLLBAR
   if (! option (Opt_scrollBar_floating) && style == R_SB_RXVT)
-    scrollBar.sb_shadow = SHADOW_WIDTH;
+    scrollBar.shadow = SHADOW_WIDTH;
 # endif

   scrollBar.style = style;
diff --git a/src/scrollbar.h b/src/scrollbar.h
index 92a35bb21424f0fed392f7a178c86ed6bd55ebea..
index ..c2102a0ef17f2ec4167c83cc02239c989c856517 100644
--- a/src/scrollbar.h
+++ b/src/scrollbar.h
@@ -14,7 +14,7 @@ typedef struct {
   unsigned int    bot;          /* slider bottom position                   */
   unsigned int    style;        /* style: rxvt, xterm, next                 */
   unsigned int    width;        /* scrollbar width                          */
-  int             sb_shadow;    /* scrollbar shadow width                   */
+  int             shadow;       /* scrollbar shadow width                   */
   Window          win;
   int             (rxvt_term::*update)(int, int, int, int);

@@ -24,7 +24,7 @@ typedef struct {
   void setDn()     { state = 'D'; }
 } scrollBar_t;

-#define scrollbar_TotalWidth()  (scrollBar.width + scrollBar.sb_shadow * 2)
+#define scrollbar_TotalWidth()  (scrollBar.width + scrollBar.shadow * 2)
 #define scrollbar_isMotion()    (scrollBar.state == 'm')
 #define scrollbar_isUp()        (scrollBar.state == 'U')
 #define scrollbar_isDn()        (scrollBar.state == 'D')

-----END OF PAGE-----