changeset 13493:dcae196c2af1

8218473: JOptionPane display issue with GTKLookAndFeel Reviewed-by: prr, serb
author ssadetsky
date Fri, 15 Feb 2019 10:06:25 -0800
parents d9da27985291
children 6a54110f573c
files src/solaris/native/sun/awt/gtk3_interface.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/gtk3_interface.c	Wed Mar 20 15:37:02 2019 +0000
+++ b/src/solaris/native/sun/awt/gtk3_interface.c	Fri Feb 15 10:06:25 2019 -0800
@@ -2274,6 +2274,11 @@
 
     init_containers();
 
+    if (widget_type == TEXT_FIELD && state_type == GTK_STATE_SELECTED &&
+        color_type == TEXT_BACKGROUND) {
+        widget_type = TEXT_AREA;
+    }
+
     gtk3_widget = gtk3_get_widget(widget_type);
 
     GtkStyleContext* context = fp_gtk_widget_get_style_context(gtk3_widget);