From 6b2b0721636a759b87b5bc4ddff367325d87b18c Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Tue, 20 Jul 1999 08:35:50 +0000 Subject: [PATCH] Initializing some variables, fixing unhandled case statement warnings. --- widget/src/gtk/nsWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/widget/src/gtk/nsWindow.cpp b/widget/src/gtk/nsWindow.cpp index 378848a0f7df..e8b06810e518 100644 --- a/widget/src/gtk/nsWindow.cpp +++ b/widget/src/gtk/nsWindow.cpp @@ -306,6 +306,10 @@ NS_METHOD nsWindow::CreateNative(GtkWidget *parentWidget) GTK_SIGNAL_FUNC(handle_delete_event), this); } + case eBorderStyle_none: + case eBorderStyle_3DChildWindow: + default: + break; } // Initialize this window instance as a drag target. @@ -864,6 +868,9 @@ nsWindow::InitDrawEvent(GdkRectangle * aArea, aPaintEvent.widget = (nsWidget *) this; aPaintEvent.eventStructType = NS_PAINT_EVENT; + aPaintEvent.point.x = 0; + aPaintEvent.point.y = 0; + aPaintEvent.time = 0; if (aArea != NULL) {