/hg/icedtea-web: Fix itweb-settings Cache Panel Tooltip

ldracz at icedtea.classpath.org ldracz at icedtea.classpath.org
Mon Sep 15 18:09:36 UTC 2014


changeset d8e057783109 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=d8e057783109
author: Lukasz Dracz <ldracz at redhat.com>
date: Mon Sep 15 14:09:30 2014 -0400

	Fix itweb-settings Cache Panel Tooltip
	2014-09-15  Lukasz Dracz  <ldracz at redhat.com>

		Fix itweb-settings Cache Panel Tooltip
		* netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java:
		Tooltip appears when spinner is enabled and hovered over
		* netx/net/sourceforge/jnlp/resources/Messages.properties:
		Removed not needed html tags


diffstat:

 ChangeLog                                                               |  8 ++++++++
 netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java |  3 ++-
 netx/net/sourceforge/jnlp/resources/Messages.properties                 |  5 +++--
 3 files changed, 13 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r 1e274216ee4c -r d8e057783109 ChangeLog
--- a/ChangeLog	Mon Sep 15 11:42:08 2014 -0400
+++ b/ChangeLog	Mon Sep 15 14:09:30 2014 -0400
@@ -1,3 +1,11 @@
+2014-09-15  Lukasz Dracz  <ldracz at redhat.com>
+
+	Fix itweb-settings Cache Panel Tooltip
+	* netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java:
+	Tooltip appears when spinner is enabled and hovered over
+	* netx/net/sourceforge/jnlp/resources/Messages.properties:
+	Removed not needed html tags
+
 2014-09-15  Jie Kang  <jkang at redhat.com>
 
     Moved translator responsibility from JNLPRuntime to Translator
diff -r 1e274216ee4c -r d8e057783109 netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java
--- a/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java	Mon Sep 15 11:42:08 2014 -0400
+++ b/netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java	Mon Sep 15 14:09:30 2014 -0400
@@ -348,7 +348,6 @@
                 showCompressionAndLocationGUIElements(true);
 
                 if (cacheSizeSpinnerValue > usableDiskSpace) {
-                    cacheSizeSpinner.setToolTipText(null);
                     cacheSizeWarningLabel.setText(Translator.R("TIFPCacheSizeSpinnerValueTooLargeWarning", usableDiskSpace));
                 } else if (cacheSizeSpinnerValue == 0) {
                     cacheSizeWarningLabel.setText(Translator.R("TIFPCacheSizeSetToNoCaching"));
@@ -402,9 +401,11 @@
         cacheSizeWarningLabel.setEnabled(bool);
 
         if(bool == false) {
+            cacheSizeSpinner.setToolTipText(null);
             cacheSizeWarningLabel.setText(Translator.R("TIFPCacheSizeSpinnerLargeValueWarning", usableDiskSpace));
         } else {
 
+            cacheSizeSpinner.setToolTipText(Translator.R("TIFPCacheSizeSpinnerTooltip", CACHE_MIN_SIZE, CACHE_MAX_SIZE));
             final long cacheSizeSpinnerValue = (long) cacheSizeSpinner.getValue();
             if(cacheSizeSpinnerValue > usableDiskSpace) {
                 cacheSizeWarningLabel.setText(Translator.R("TIFPCacheSizeSpinnerValueTooLargeWarning", usableDiskSpace));
diff -r 1e274216ee4c -r d8e057783109 netx/net/sourceforge/jnlp/resources/Messages.properties
--- a/netx/net/sourceforge/jnlp/resources/Messages.properties	Mon Sep 15 11:42:08 2014 -0400
+++ b/netx/net/sourceforge/jnlp/resources/Messages.properties	Mon Sep 15 14:09:30 2014 -0400
@@ -805,8 +805,9 @@
 TIFPFileChooserChooseButton=Choose
 TIFPLimitCacheSize=Limit cache size
 TIFPCacheSizeSpinnerValueTooLargeWarning=<html><b>WARNING:</b> Uses more space than {0} MB available</html>
-TIFPCacheSizeSpinnerLargeValueWarning=<html> Available: {0} MB</html>
-TIFPCacheSizeSetToNoCaching=<html>Cached files will be deleted on icedtea-web close.</html>
+TIFPCacheSizeSpinnerLargeValueWarning=Available: {0} MB
+TIFPCacheSizeSetToNoCaching=Cached files will be deleted when IcedTea-Web terminates.
+TIFPCacheSizeSpinnerTooltip=Minimum: {0} Maximum: {1}
 
 # Control Panel - Cache Viewer
 CVCPDialogTitle=Cache Viewer


More information about the distro-pkg-dev mailing list