fix UMRs as reported by the great and powerful bruce. this closes bug 10625.

This commit is contained in:
blizzard%redhat.com 1999-07-28 02:02:21 +00:00
parent a71748f63e
commit 1a3600fea2
3 changed files with 6 additions and 1 deletions

View File

@ -260,6 +260,8 @@ void nsScrollbar::CreateNative(Window aParent, nsRect aRect)
NS_IMETHODIMP nsScrollbar::Show(PRBool bState)
{
PR_LOG(XlibScrollbarLM, PR_LOG_DEBUG, ("nsScrollbar::Show(): %s\n",
(bState == PR_TRUE) ? "true" : "false"));
nsWidget::Show(bState);
if (bState) {
if (mBar) {
@ -314,6 +316,8 @@ nsresult nsScrollbar::NextPage(void)
sevent.widget = (nsWidget *)this;
sevent.eventStructType = NS_SCROLLBAR_EVENT;
sevent.position = (mPosition);
sevent.point.x = 0;
sevent.point.y = 0;
// send the event
result = ConvertStatus((*mEventCallback) (&sevent));
// the gtk code indicates that the callback can

View File

@ -76,6 +76,7 @@ nsWidget::nsWidget() : nsBaseWidget()
mBaseWindow = 0;
mBackground = NS_RGB(192, 192, 192);
mBorderRGB = NS_RGB(192, 192, 192);
mBackgroundPixel = xlib_rgb_xpixel_from_rgb(mBackground);
mBackground = NS_RGB(192, 192, 192);
mBorderPixel = xlib_rgb_xpixel_from_rgb(mBorderRGB);

View File

@ -26,7 +26,7 @@ nsWindow::nsWindow() : nsWidget()
mName = "nsWindow";
mBackground = NS_RGB(255, 255, 255);
mBackgroundPixel = xlib_rgb_xpixel_from_rgb(mBackground);
mBackground = NS_RGB(255, 255, 255);
mBorderRGB = NS_RGB(255,255,255);
mBorderPixel = xlib_rgb_xpixel_from_rgb(mBorderRGB);
}