Hello,

the Java applet makes use of deprecated method hide() when setVisible() ought
to be used.
Additionally it doesn't implement isAppletVisible().

The attached patch fixes both of those shortcomings.
Thanks
-- 
Greetings, 
A. Huillet
diff -urB turbovnc-1.0.2.tar.gz/vnc_javasrc/VncViewer.java turbovnc-1.0.2-amg-fix/vnc_javasrc/VncViewer.java
--- turbovnc-1.0.2.tar.gz/vnc_javasrc/VncViewer.java	2010-07-08 00:23:35.000000000 +0200
+++ turbovnc-1.0.2-amg-fix/vnc_javasrc/VncViewer.java	2011-12-20 09:38:54.254535349 +0100
@@ -1000,14 +1000,18 @@
     if (rfb != null)
       disconnect();
 
-    vncContainer.hide();
+    vncContainer.setVisible(false);
 
     if (!inAnApplet) {
       System.exit(0);
     }
   }
 
-  //
+  public boolean isAppletVisible() {
+    return vncContainer.isVisible();
+  }
+
+    //
   // Ignore window events we're not interested in.
   //
 
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
VirtualGL-Devel mailing list
VirtualGL-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-devel

Reply via email to