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.75 by sf-exg, Thu Sep 1 08:16:07 2011 UTC vs.
Revision 1.76 by sf-exg, Tue Oct 2 10:29:12 2012 UTC

71 window_sb_x, 0, 71 window_sb_x, 0,
72 total_width (), 72 total_width (),
73 term->szHint.height, 73 term->szHint.height,
74 0, 74 0,
75 term->pix_colors[Color_fg], 75 term->pix_colors[Color_fg],
76 term->pix_colors[Color_border]); 76 term->pix_colors[color ()]);
77 XDefineCursor (term->dpy, win, leftptr_cursor); 77 XDefineCursor (term->dpy, win, leftptr_cursor);
78 78
79 XSelectInput (term->dpy, win, 79 XSelectInput (term->dpy, win,
80 ExposureMask | ButtonPressMask | ButtonReleaseMask 80 ExposureMask | ButtonPressMask | ButtonReleaseMask
81 | Button1MotionMask | Button2MotionMask 81 | Button1MotionMask | Button2MotionMask
231 if (botShadowGC) XFreeGC (term->dpy, botShadowGC); 231 if (botShadowGC) XFreeGC (term->dpy, botShadowGC);
232 if (scrollbarGC) XFreeGC (term->dpy, scrollbarGC); 232 if (scrollbarGC) XFreeGC (term->dpy, scrollbarGC);
233#endif 233#endif
234} 234}
235 235
236int
237scrollBar_t::color ()
238{
239 if (style == SB_STYLE_RXVT && shadow)
240 return Color_trough;
241 else
242 return Color_border;
243}
244
236void 245void
237scrollBar_t::update_data () 246scrollBar_t::update_data ()
238{ 247{
239#if defined(PLAIN_SCROLLBAR) 248#if defined(PLAIN_SCROLLBAR)
240 if (style == SB_STYLE_PLAIN) 249 if (style == SB_STYLE_PLAIN)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines