changeset 13499:8c0ae4357017

8214112: The whole text in target JPasswordField image are not selected Reviewed-by: serb, psadhukhan
author pbansal
date Tue, 05 Mar 2019 14:03:21 +0530
parents 94230f2a671e
children 708b820b474e
files src/solaris/native/sun/awt/gtk3_interface.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/gtk3_interface.c	Fri Jan 18 13:36:16 2019 +0530
+++ b/src/solaris/native/sun/awt/gtk3_interface.c	Tue Mar 05 14:03:21 2019 +0530
@@ -2356,9 +2356,11 @@
 
     init_containers();
 
-    if (widget_type == TEXT_FIELD && state_type == GTK_STATE_SELECTED &&
-        color_type == TEXT_BACKGROUND) {
-        widget_type = TEXT_AREA;
+    if (gtk3_version_3_20) {
+        if ((widget_type == TEXT_FIELD || widget_type == PASSWORD_FIELD || widget_type == SPINNER_TEXT_FIELD ||
+            widget_type == FORMATTED_TEXT_FIELD) && state_type == GTK_STATE_SELECTED && color_type == TEXT_BACKGROUND) {
+            widget_type = TEXT_AREA;
+        }
     }
 
     GtkStyleContext* context = NULL;