Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 258196
Collapse All | Expand All

(-)Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java (-1 / +5 lines)
Lines 37-43 Link Here
37
	Tree parent;
37
	Tree parent;
38
	Font font;
38
	Font font;
39
	Font[] cellFont;
39
	Font[] cellFont;
40
	boolean cached, grayed;
40
	boolean cached, grayed, updated;
41
	static final int EXPANDER_EXTRA_PADDING = 4;
41
	static final int EXPANDER_EXTRA_PADDING = 4;
42
42
43
/**
43
/**
Lines 1351-1356 Link Here
1351
		}
1351
		}
1352
	}
1352
	}
1353
	cached = true;
1353
	cached = true;
1354
    updated = true;
1354
}
1355
}
1355
1356
1356
/**
1357
/**
Lines 1402-1407 Link Here
1402
		}
1403
		}
1403
	}
1404
	}
1404
	cached = true;
1405
	cached = true;
1406
    updated = true;
1405
	
1407
	
1406
	if (font != null) {
1408
	if (font != null) {
1407
		boolean customDraw = (parent.columnCount == 0)  ? parent.firstCustomDraw : parent.columns [index].customDraw;
1409
		boolean customDraw = (parent.columnCount == 0)  ? parent.firstCustomDraw : parent.columns [index].customDraw;
Lines 1638-1643 Link Here
1638
		}
1640
		}
1639
	}
1641
	}
1640
	cached = true;
1642
	cached = true;
1643
	updated = true;
1641
}
1644
}
1642
1645
1643
public void setImage (Image image) {
1646
public void setImage (Image image) {
Lines 1723-1728 Link Here
1723
		}
1726
		}
1724
	}
1727
	}
1725
	cached = true;
1728
	cached = true;
1729
	updated = true;
1726
}
1730
}
1727
1731
1728
public void setText (String string) {
1732
public void setText (String string) {
(-)Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java (-1 / +6 lines)
Lines 238-243 Link Here
238
	}
238
	}
239
	if (modelIndex == -1) return 0;
239
	if (modelIndex == -1) return 0;
240
	boolean setData = false;
240
	boolean setData = false;
241
	boolean updated = false;
241
	if ((style & SWT.VIRTUAL) != 0) {
242
	if ((style & SWT.VIRTUAL) != 0) {
242
		/*
243
		/*
243
		* Feature in GTK.  On GTK before 2.4, fixed_height_mode is not
244
		* Feature in GTK.  On GTK before 2.4, fixed_height_mode is not
Lines 266-271 Link Here
266
			//lastIndexOf = index [0];
267
			//lastIndexOf = index [0];
267
			setData = checkData (item);
268
			setData = checkData (item);
268
		}
269
		}
270
        if (item.updated) {
271
            item.updated = false;
272
            updated = true;
273
        }
269
	}
274
	}
270
	int /*long*/ [] ptr = new int /*long*/ [1];
275
	int /*long*/ [] ptr = new int /*long*/ [1];
271
	if (setData) {
276
	if (setData) {
Lines 309-315 Link Here
309
			}
314
			}
310
		}
315
		}
311
	}
316
	}
312
	if (setData) {
317
	if (setData || updated) {
313
		ignoreCell = cell;
318
		ignoreCell = cell;
314
		setScrollWidth (tree_column, item);
319
		setScrollWidth (tree_column, item);
315
		ignoreCell = 0;
320
		ignoreCell = 0;

Return to bug 258196