diff options
author | Veronika Irvine <veronika> | 2006-02-07 17:07:32 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2006-02-07 17:07:32 +0000 |
commit | 2f93230ae30da8f85824cba121fae696511f771f (patch) | |
tree | 183ed0df6119b6d6a549a610bb7adb4691b5a693 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java | |
parent | 5e503a8165623af85ab952fdb7996b74c0d04c42 (diff) | |
download | eclipse.platform.swt-2f93230ae30da8f85824cba121fae696511f771f.tar.gz eclipse.platform.swt-2f93230ae30da8f85824cba121fae696511f771f.tar.xz eclipse.platform.swt-2f93230ae30da8f85824cba121fae696511f771f.zip |
Bug126299 - clear is removing column id and causing a new tree item to be created every time
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 7717eeb032..bcf1ba836c 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 @@ -208,10 +208,9 @@ 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=0; i<columnCount; i++) { + for (int i=Tree.CHECKED_COLUMN; i<columnCount; i++) { OS.gtk_tree_store_set (parent.modelHandle, handle, i, 0, -1); } - OS.gtk_tree_store_set (parent.modelHandle, handle, Tree.ID_COLUMN, -1, -1); /* * Bug in GTK. When using fixed-height-mode on versions before 2.6.3, * row changes do not cause the row to be repainted. The fix is to @@ -222,6 +221,7 @@ void clear () { if ((OS.GTK_WIDGET_FLAGS (parent.handle) & OS.GTK_REALIZED) != 0) { int /*long*/ parentHandle = parent.handle; int /*long*/ path = OS.gtk_tree_model_get_path (parent.modelHandle, handle); + // TODO scrolling affects rect GdkRectangle rect = new GdkRectangle (); OS.gtk_tree_view_get_cell_area (parentHandle, path, 0, rect); OS.gtk_tree_path_free (path); |