8214252: Expanded & Collapsed nodes of a JTree look the same on GTK3
authorpbansal
Thu, 10 Jan 2019 16:38:02 +0530
changeset 53665 2121afe70084
parent 53190 8cc938aa8f74
child 53666 1a1c393b5c42
8214252: Expanded & Collapsed nodes of a JTree look the same on GTK3 Reviewed-by: serb, psadhukhan
src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c
--- 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);