From 2a4c9db6cda3d7adaa157e4881c61f48e923bd25 Mon Sep 17 00:00:00 2001 From: "kyle.yuan%sun.com" Date: Wed, 9 Apr 2003 01:36:03 +0000 Subject: [PATCH] Bug 156712 Webclient can't do File->New Window on Unix r=edburns --- .../webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java | 4 ++-- java/webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java b/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java index 7dadc14592f..4abde84d8c7 100644 --- a/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java +++ b/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java @@ -42,7 +42,7 @@ import java.awt.Dimension; * There is one instance of GtkBrowserControlCanvas per top level awt Frame. - * @version $Id: GtkBrowserControlCanvas.java,v 1.2 2002-10-01 00:39:21 edburns%acm.org Exp $ + * @version $Id: GtkBrowserControlCanvas.java,v 1.3 2003-04-09 01:36:02 kyle.yuan%sun.com Exp $ * * @see org.mozilla.webclient.BrowserControlCanvasFactory * @@ -57,7 +57,7 @@ public class GtkBrowserControlCanvas extends BrowserControlCanvas /* implements GtkBrowserControlCanvas.loadMainDll(); } - static private boolean firstTime = true; + private boolean firstTime = true; private int gtkWinID; private int gtkTopWindow; private int canvasWinID; diff --git a/java/webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp b/java/webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp index 6eaa2e5a36d..fed7469fbb5 100644 --- a/java/webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp +++ b/java/webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp @@ -107,7 +107,6 @@ JNIEXPORT jint JNICALL Java_org_mozilla_webclient_wrapper_1native_gtk_GtkBrowser GtkWidget * window = (GtkWidget *) parent; gtk_widget_realize(GTK_WIDGET(window)); - gtk_widget_set_uposition(window, screenWidth + 20, screenHeight + 20); gtk_widget_show(window); PR_LOG(prLogModuleInfo, PR_LOG_DEBUG,