diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java index cdc66eae45..4e8d1aaaf2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java @@ -509,7 +509,7 @@ Rectangle getBoundsInPixels () { int [] buffer = new int [1]; GTK.gtk_tree_path_free (path); - GTK.gtk_widget_style_get (parentHandle, OS.horizontal_separator, buffer, 0); + if (!GTK.GTK4) GTK.gtk_widget_style_get (parentHandle, OS.horizontal_separator, buffer, 0); int horizontalSeparator = buffer[0]; rect.x += horizontalSeparator; @@ -971,7 +971,7 @@ Rectangle getTextBoundsInPixels (int index) { int [] buffer = new int [1]; GTK.gtk_tree_path_free (path); - GTK.gtk_widget_style_get (parentHandle, OS.horizontal_separator, buffer, 0); + if (!GTK.GTK4) GTK.gtk_widget_style_get (parentHandle, OS.horizontal_separator, buffer, 0); int horizontalSeparator = buffer[0]; rect.x += horizontalSeparator; gtk_tree_view_column_cell_get_position (column, textRenderer, x, null); |