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.34 by root, Wed Jan 25 21:09:21 2006 UTC vs.
Revision 1.35 by root, Tue Jan 31 20:07:18 2006 UTC

32 * Map or unmap a scrollbar. Returns non-zero upon change of state 32 * Map or unmap a scrollbar. Returns non-zero upon change of state
33 */ 33 */
34int 34int
35rxvt_term::scrollbar_mapping (int map) 35rxvt_term::scrollbar_mapping (int map)
36{ 36{
37 int change = 0; 37 int change = 0;
38 38
39#ifdef HAVE_SCROLLBARS 39#ifdef HAVE_SCROLLBARS
40 if (map) 40 if (map)
41 { 41 {
42 scrollBar.setIdle (); 42 scrollBar.setIdle ();
55 scrollBar.state = 0; 55 scrollBar.state = 0;
56 XUnmapWindow (xdisp, scrollBar.win); 56 XUnmapWindow (xdisp, scrollBar.win);
57 change = 1; 57 change = 1;
58 } 58 }
59#endif 59#endif
60
60 return change; 61 return change;
61} 62}
62 63
63void 64void
64rxvt_term::resize_scrollbar () 65rxvt_term::resize_scrollbar ()
228 if (thickness && (i = atoi (thickness)) >= SB_WIDTH_MINIMUM) 229 if (thickness && (i = atoi (thickness)) >= SB_WIDTH_MINIMUM)
229 width = min (i, SB_WIDTH_MAXIMUM); 230 width = min (i, SB_WIDTH_MAXIMUM);
230 231
231# ifdef RXVT_SCROLLBAR 232# ifdef RXVT_SCROLLBAR
232 if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT) 233 if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT)
233 sb_shadow = 2; 234 sb_shadow = SHADOW_WIDTH;
234# endif 235# endif
235 236
236 scrollBar.style = style; 237 scrollBar.style = style;
237 scrollBar.width = width; 238 scrollBar.width = width;
238 239

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines