/hg/icedtea-web: Fix regression in showing certificate info dialogs

omajid at icedtea.classpath.org omajid at icedtea.classpath.org
Thu Oct 28 13:21:37 PDT 2010


changeset 3571cd24829e in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=3571cd24829e
author: Omair Majid <omajid at redhat.com>
date: Thu Oct 28 16:18:36 2010 -0400

	Fix regression in showing certificate info dialogs

	2010-10-28 Omair Majid <omajid at redhat.com>

	 * netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java
	(showMoreInfoDialog): Make dialog modal. (showCertInfoDialog):
	Likewise. (showSingleCertInfoDialog): Likewise.
	(initDialog): Use setModality instead of setModal.


diffstat:

2 files changed, 12 insertions(+), 1 deletion(-)
ChangeLog                                                     |    8 ++++++++
netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java |    5 ++++-

diffs (51 lines):

diff -r 5566a5487109 -r 3571cd24829e ChangeLog
--- a/ChangeLog	Wed Oct 27 15:55:55 2010 -0700
+++ b/ChangeLog	Thu Oct 28 16:18:36 2010 -0400
@@ -1,3 +1,11 @@ 2010-10-27  Deepak Bhole <dbhole at redhat.
+2010-10-28  Omair Majid  <omajid at redhat.com>
+
+	* netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java
+	(showMoreInfoDialog): Make dialog modal.
+	(showCertInfoDialog): Likewise.
+	(showSingleCertInfoDialog): Likewise.
+	(initDialog): Use setModality instead of setModal.
+
 2010-10-27  Deepak Bhole <dbhole at redhat.com>
 
 	* plugin/icedteanp/IcedTeaNPPlugin.cc (plugin_create_applet_tag): Escape
diff -r 5566a5487109 -r 3571cd24829e netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java
--- a/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java	Wed Oct 27 15:55:55 2010 -0700
+++ b/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java	Thu Oct 28 16:18:36 2010 -0400
@@ -167,6 +167,7 @@ public class SecurityWarningDialog exten
                 SecurityWarningDialog dialog =
                         new SecurityWarningDialog(DialogType.MORE_INFO, null, null,
                         jarSigner);
+                dialog.setModalityType(ModalityType.APPLICATION_MODAL);
                 dialog.setVisible(true);
                 dialog.dispose();
         }
@@ -181,6 +182,7 @@ public class SecurityWarningDialog exten
                 SecurityWarningDialog dialog = new SecurityWarningDialog(DialogType.CERT_INFO,
                         null, null, jarSigner);
                 dialog.setLocationRelativeTo(parent);
+                dialog.setModalityType(ModalityType.APPLICATION_MODAL);
                 dialog.setVisible(true);
                 dialog.dispose();
         }
@@ -195,6 +197,7 @@ public class SecurityWarningDialog exten
                         JDialog parent) {
                 SecurityWarningDialog dialog = new SecurityWarningDialog(DialogType.SINGLE_CERT_INFO, c);
                         dialog.setLocationRelativeTo(parent);
+                        dialog.setModalityType(ModalityType.APPLICATION_MODAL);
                         dialog.setVisible(true);
                         dialog.dispose();
         }
@@ -219,7 +222,7 @@ public class SecurityWarningDialog exten
                         dialogTitle = "Security Warning";
 
                 setTitle(dialogTitle);
-                setModal(false);
+                setModalityType(ModalityType.MODELESS);
 
                 setDefaultCloseOperation(DISPOSE_ON_CLOSE);
 



More information about the distro-pkg-dev mailing list