ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/scrollbar.C
(Generate patch)

Comparing rxvt-unicode/src/scrollbar.C (file contents):
Revision 1.67 by sf-exg, Mon Aug 22 17:08:52 2011 UTC vs.
Revision 1.68 by sf-exg, Mon Aug 22 17:09:46 2011 UTC

49 change = 1; 49 change = 1;
50 } 50 }
51 } 51 }
52 else 52 else
53 { 53 {
54 state = 0; 54 state = STATE_OFF;
55 XUnmapWindow (term->dpy, win); 55 XUnmapWindow (term->dpy, win);
56 change = 1; 56 change = 1;
57 } 57 }
58 58
59 return change; 59 return change;
141 141
142void 142void
143scrollBar_t::setup (rxvt_term *term) 143scrollBar_t::setup (rxvt_term *term)
144{ 144{
145 int i; 145 int i;
146 short style, width; 146 short width;
147 const char *scrollalign, *scrollstyle, *thickness; 147 const char *scrollalign, *scrollstyle, *thickness;
148 enum sb_style style;
148 149
149 this->term = term; 150 this->term = term;
150 scrollalign = term->rs[Rs_scrollBar_align]; 151 scrollalign = term->rs[Rs_scrollBar_align];
151 scrollstyle = term->rs[Rs_scrollstyle]; 152 scrollstyle = term->rs[Rs_scrollstyle];
152 thickness = term->rs[Rs_scrollBar_thickness]; 153 thickness = term->rs[Rs_scrollBar_thickness];
208 if (strncasecmp (scrollalign, "top", 3) == 0) 209 if (strncasecmp (scrollalign, "top", 3) == 0)
209 align = R_SB_ALIGN_TOP; 210 align = R_SB_ALIGN_TOP;
210 else if (strncasecmp (scrollalign, "bottom", 6) == 0) 211 else if (strncasecmp (scrollalign, "bottom", 6) == 0)
211 align = R_SB_ALIGN_BOTTOM; 212 align = R_SB_ALIGN_BOTTOM;
212 } 213 }
213 last_state = 0; 214 last_state = STATE_OFF;
214 /* cursor scrollBar: Black-on-White */ 215 /* cursor scrollBar: Black-on-White */
215 leftptr_cursor = XCreateFontCursor (term->dpy, XC_left_ptr); 216 leftptr_cursor = XCreateFontCursor (term->dpy, XC_left_ptr);
216} 217}
217 218
218void 219void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines