changeset 54154:2121afe70084

8214252: Expanded & Collapsed nodes of a JTree look the same on GTK3 Reviewed-by: serb, psadhukhan
author pbansal
date Thu, 10 Jan 2019 16:38:02 +0530
parents 8cc938aa8f74
children 1a1c393b5c42
files src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c	Tue Jan 08 13:40:57 2019 +0530
+++ b/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c	Thu Jan 10 16:38:02 2019 +0530
@@ -1612,7 +1612,11 @@
 
     GtkStateFlags flags = get_gtk_flags(state_type);
     if (expander_style == GTK_EXPANDER_EXPANDED) {
-        flags |= GTK_STATE_FLAG_ACTIVE;
+        if (gtk3_version_3_14) {
+            flags |= GTK_STATE_FLAG_CHECKED;
+        } else {
+            flags |= GTK_STATE_FLAG_ACTIVE;
+        }
     }
 
     fp_gtk_style_context_set_state(context, flags);