summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
diff options
context:
space:
mode:
authoraspektor <aspektor@redhat.com>2012-09-14 12:51:03 -0400
committeraspektor <aspektor@redhat.com>2012-09-14 12:51:03 -0400
commit581453749640c1d130107d787c034295f9ba07ba (patch)
tree6fb010e26dfd0c666ab270b61e726c74622fc4f3 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
parenteda05e5e1bfd7a8e6860cccbab7bfcd105765ca8 (diff)
parente146916783f37aa41636cc83669e5f610cf7343a (diff)
downloadeclipse.platform.swt-581453749640c1d130107d787c034295f9ba07ba.tar.gz
eclipse.platform.swt-581453749640c1d130107d787c034295f9ba07ba.tar.xz
eclipse.platform.swt-581453749640c1d130107d787c034295f9ba07ba.zip
Merge branch 'master' of http://git.eclipse.org/gitroot/platform/eclipse.platform.swt.git
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.java6
1 files changed, 5 insertions, 1 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 98f73da4c0..7b07001b15 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
@@ -295,9 +295,13 @@ void clear () {
if (parent.currentItem == this) return;
if (cached || (parent.style & SWT.VIRTUAL) == 0) {
int columnCount = OS.gtk_tree_model_get_n_columns (parent.modelHandle);
- for (int i=Tree.CHECKED_COLUMN; i<columnCount; i++) {
+ /* the columns before FOREGROUND_COLUMN contain int values, subsequent columns contain pointers */
+ for (int i=Tree.CHECKED_COLUMN; i<Tree.FOREGROUND_COLUMN; i++) {
OS.gtk_tree_store_set (parent.modelHandle, handle, i, 0, -1);
}
+ for (int i=Tree.FOREGROUND_COLUMN; i<columnCount; i++) {
+ OS.gtk_tree_store_set (parent.modelHandle, handle, i, (int /*long*/)0, -1);
+ }
/*
* Bug in GTK. When using fixed-height-mode,
* row changes do not cause the row to be repainted. The fix is to