changeset 54983:e3451d08503a

8218473: JOptionPane display issue with GTKLookAndFeel Reviewed-by: prr, serb
author ssadetsky
date Fri, 15 Feb 2019 10:06:25 -0800
parents 2a3bc7e69b31
children 33b96cbd16f3
files src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c	Fri Feb 15 10:01:16 2019 -0800
+++ b/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c	Fri Feb 15 10:06:25 2019 -0800
@@ -2360,6 +2360,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);