changeset 2279:94f30c67c2f9

Set handle when creating panel, and remove the redundant reframe called afterwards.
author Andrew Su <asu@redhat.com>
date Fri, 01 Oct 2010 11:39:33 -0400
parents 14ed93e7ecc5
children 748a45decac0
files ChangeLog plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
diffstat 2 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Sep 30 11:10:01 2010 +0100
+++ b/ChangeLog	Fri Oct 01 11:39:33 2010 -0400
@@ -1,3 +1,10 @@
+2010-10-01  Andrew Su  <asu@redhat.com>
+
+	* PluginAppletViewer.java:
+	(createPanel): Changed call to reframe with handle 0 to the handle
+	passed in.
+	(handleMessage): Removed the redundant reframe from initialization.
+
 2010-09-29  Andrew John Hughes  <ahughes@redhat.com>
 
 	* Makefile.am:
--- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java	Thu Sep 30 11:10:01 2010 +0100
+++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java	Fri Oct 01 11:39:33 2010 -0400
@@ -139,8 +139,8 @@
 
          
 
-         // put inside initial 0 handle frame
-         PluginAppletViewer.reFrame(null, identifier, System.out, 0, panel);
+         // create the frame.
+         PluginAppletViewer.reFrame(null, identifier, System.out, handle, panel);
          
          panel.init();
 
@@ -557,10 +557,6 @@
 
                  if (!status.get(identifier).equals(PAV_INIT_STATUS.INIT_COMPLETE))
                      throw new Exception("Applet initialization timeout");
-
-                 PluginAppletViewer oldFrame = applets.get(identifier);
-                 reFrame(oldFrame, oldFrame.identifier, oldFrame.statusMsgStream, 
-                         handle, oldFrame.panel);
                  
              } else {
                  PluginDebug.debug ("Handling message: " + message + " instance " + identifier + " " + Thread.currentThread());