changeset 53436:08ad9eaa0c61

8218473: JOptionPane display issue with GTKLookAndFeel Reviewed-by: prr, serb
author ssadetsky
date Fri, 15 Feb 2019 11:22:37 -0800
parents b5e12076c1f7
children d2cf708a52ae
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 11:20:50 2019 -0800
+++ b/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c	Fri Feb 15 11:22:37 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);