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.70 by sf-exg, Fri Aug 26 08:20:43 2011 UTC vs.
Revision 1.71 by sf-exg, Sun Aug 28 18:48:41 2011 UTC

29/*----------------------------------------------------------------------*/ 29/*----------------------------------------------------------------------*/
30 30
31/* 31/*
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 34void
35scrollBar_t::map (int map) 35scrollBar_t::map (int map)
36{ 36{
37 int change = 0;
38
39 if (map) 37 if (map)
40 { 38 {
41 state = STATE_IDLE; 39 state = STATE_IDLE;
42 40
43 if (!win) 41 if (!win)
44 resize (); 42 resize ();
45 43
46 if (win) 44 if (win)
47 { 45 {
48 XMapWindow (term->dpy, win); 46 XMapWindow (term->dpy, win);
49 change = 1;
50 } 47 }
51 } 48 }
52 else 49 else
53 { 50 {
54 state = STATE_OFF; 51 state = STATE_OFF;
55 XUnmapWindow (term->dpy, win); 52 XUnmapWindow (term->dpy, win);
56 change = 1;
57 } 53 }
58
59 return change;
60} 54}
61 55
62void 56void
63scrollBar_t::resize () 57scrollBar_t::resize ()
64{ 58{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines