changeset 13496:0ff0f14d5346

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 0efb8d935281
children fbed78affeea
files src/solaris/native/sun/awt/gtk3_interface.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/gtk3_interface.c	Tue Mar 05 13:09:15 2019 +0530
+++ b/src/solaris/native/sun/awt/gtk3_interface.c	Thu Jan 10 16:38:02 2019 +0530
@@ -1708,7 +1708,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);