diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder2.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder2.java | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder2.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder2.java index 6b5075e97f..54f56a4243 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder2.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder2.java @@ -1721,11 +1721,7 @@ void onMouseDoubleClick(Event event) { minmaxListeners[i].maximize(e); } } - if (e.doit) { - maximized = !restore; - redraw(maxRect.x, maxRect.y, maxRect.width, maxRect.height, false); - update(); - } + if (e.doit) setMaximized(!restore); } @@ -1935,11 +1931,7 @@ void onMouse(Event event) { minmaxListeners[i].minimize(e); } } - if (e.doit) { - minimized = !restore; - redraw(minRect.x, minRect.y, minRect.width, minRect.height, false); - update(); - } + if (e.doit) setMinimized(!restore); return; } if (maxRect.contains(x, y)) { @@ -1958,11 +1950,7 @@ void onMouse(Event event) { minmaxListeners[i].maximize(e); } } - if (e.doit) { - maximized = !restore; - redraw(maxRect.x, maxRect.y, maxRect.width, maxRect.height, false); - update(); - } + if (e.doit) setMaximized(!restore); return; } for (int i=0; i<items.length; i++) { |