/* * Toggle the visibility of the scrollbars. */ void ToggleScrollBar(XtermWidget w) { register TScreen *screen = &w->screen; if (screen->fullVwin.scrollbar) { ScrollBarOff (screen); } else { ScrollBarOn (w, FALSE, FALSE); } update_scrollbar(); }
/* * Toggle the visibility of the scrollbars. */ void ToggleScrollBar(XtermWidget xw) { TScreen *screen = TScreenOf(xw); if (IsIcon(screen)) { Bell(xw, XkbBI_MinorError, 0); } else { TRACE(("ToggleScrollBar{{\n")); if (screen->fullVwin.sb_info.width) { ScrollBarOff(xw); } else { ScrollBarOn(xw, False); } update_scrollbar(); TRACE(("...ToggleScrollBar}}\n")); } }