8218473: JOptionPane display issue with GTKLookAndFeel
authorssadetsky
Fri, 15 Feb 2019 10:06:25 -0800
changeset 53802 e3451d08503a
parent 53801 2a3bc7e69b31
child 53803 33b96cbd16f3
8218473: JOptionPane display issue with GTKLookAndFeel Reviewed-by: prr, serb
src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c
--- 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);