View | Details | Raw Unified | Return to bug 232685
Collapse All | Expand All

(-)a/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ScrollBar.java (-10 / +13 lines)
Lines 471-485 public void setIncrement (int value) { Link Here
471
 */
471
 */
472
public void setEnabled (boolean enabled) {
472
public void setEnabled (boolean enabled) {
473
	checkWidget();
473
	checkWidget();
474
//	if (enabled) {
474
	if (enabled) {
475
//		if ((state & DISABLED) == 0) return;
475
		if ((state & DISABLED) == 0) return;
476
//		state &= ~DISABLED;
476
		state &= ~DISABLED;
477
//		OS.EnableControl (handle);
477
		//OS.EnableControl (handle);
478
//	} else {
478
	} else {
479
//		if ((state & DISABLED) != 0) return;
479
		if ((state & DISABLED) != 0) return;
480
//		state |= DISABLED;
480
		state |= DISABLED;
481
//		OS.DisableControl (handle);
481
		//OS.DisableControl (handle);
482
//	}
482
	}
483
	view.setEnabled(enabled);
483
}
484
}
484
485
485
/**
486
/**
Lines 618-624 public void setValues (int selection, int minimum, int maximum, int thumb, int i Link Here
618
	if (thumb < 1) return;
619
	if (thumb < 1) return;
619
	if (increment < 1) return;
620
	if (increment < 1) return;
620
	if (pageIncrement < 1) return;
621
	if (pageIncrement < 1) return;
621
	thumb = Math.min (thumb, maximum - minimum);
622
	this.thumb = thumb = Math.min (thumb, maximum - minimum);
623
	this.maximum = maximum;
624
	this.minimum = minimum;
622
	this.increment = increment;
625
	this.increment = increment;
623
	this.pageIncrement = pageIncrement;
626
	this.pageIncrement = pageIncrement;
624
	updateBar(selection, minimum, maximum, thumb);
627
	updateBar(selection, minimum, maximum, thumb);

Return to bug 232685