Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Yan2018-06-13 11:50:00 -0400
committerXi Yan2018-06-13 11:50:56 -0400
commit6ddc7540f104b11a128dcc0bdfca8a3ccb79de7c (patch)
treebbc7d1bb9d9170dd5fb3ec660db6947c072cf58f
parent1212561354697147333ca77e0d23d900b3db42e0 (diff)
downloadeclipse.platform.swt-6ddc7540f104b11a128dcc0bdfca8a3ccb79de7c.tar.gz
eclipse.platform.swt-6ddc7540f104b11a128dcc0bdfca8a3ccb79de7c.tar.xz
eclipse.platform.swt-6ddc7540f104b11a128dcc0bdfca8a3ccb79de7c.zip
Bug 138909 - GTK - Vertical line in Tree with text that spans columns
Used gtk_tree_view_get_background_area instead of gtk_tree_view_get_cell_area in RendererRender method of Tree to prevent vertical border being rendered between columns. Change-Id: I480e9e7f7e63021e8ff00e2989fc25a95db931be Signed-off-by: Xi Yan <xixiyan@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
index 7865e488fb..6d05e95570 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
@@ -3146,7 +3146,7 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo
if (wasSelected) drawState |= SWT.SELECTED;
GdkRectangle rect = new GdkRectangle ();
long /*int*/ path = GTK.gtk_tree_model_get_path (modelHandle, iter);
- GTK.gtk_tree_view_get_cell_area (handle, path, columnHandle, rect);
+ GTK.gtk_tree_view_get_background_area (handle, path, columnHandle, rect);
GTK.gtk_tree_path_free (path);
// A workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=459117
if (cr != 0 && GTK.GTK_VERSION > OS.VERSION(3, 9, 0) && GTK.GTK_VERSION <= OS.VERSION(3, 14, 8)) {

Back to the top