diff options
author | Steve Northover <steve> | 2005-01-24 23:23:02 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-01-24 23:23:02 +0000 |
commit | 15aa185134d2af68b5fd6cb53a67800e47c1fe24 (patch) | |
tree | 8815ff99f0b8e97356029929ed51372e7def10fb /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt | |
parent | b6f6293d4d346f2d9ec3450138267efbb050a46d (diff) | |
download | eclipse.platform.swt-15aa185134d2af68b5fd6cb53a67800e47c1fe24.tar.gz eclipse.platform.swt-15aa185134d2af68b5fd6cb53a67800e47c1fe24.tar.xz eclipse.platform.swt-15aa185134d2af68b5fd6cb53a67800e47c1fe24.zip |
reset resize flag when child created
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 7 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 1db02263bd..9d2aa12979 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -101,7 +101,7 @@ import org.eclipse.swt.events.*; */ public class Shell extends Decorations { int /*long*/ shellHandle, tooltipsHandle; - boolean hasFocus, mapped, moved, resized; + boolean hasFocus, mapped, moved, resized, opened; int oldX, oldY, oldWidth, oldHeight; int minWidth, minHeight; Control lastActive; @@ -435,6 +435,10 @@ void checkBorder () { /* Do nothing */ } +void checkOpen () { + if (!opened) resized = false; +} + /** * Requests that the window manager close the receiver in * the same way it would be closed when the user clicks on @@ -1287,6 +1291,7 @@ public void setVisible (boolean visible) { if ((style & mask) != 0) { OS.gdk_pointer_ungrab (OS.GDK_CURRENT_TIME); } + opened = true; if (!moved) { moved = true; Point location = getLocation(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java index d7fabd452e..f21f56eea5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java @@ -240,6 +240,10 @@ static int checkBits (int style, int int0, int int1, int int2, int int3, int int return style; } +void checkOpen () { + /* Do nothing */ +} + void checkOrientation (Widget parent) { style &= ~SWT.MIRRORED; if ((style & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT)) == 0) { @@ -266,6 +270,7 @@ void checkOrientation (Widget parent) { void checkParent (Widget parent) { if (parent == null) error (SWT.ERROR_NULL_ARGUMENT); parent.checkWidget (); + parent.checkOpen (); } /** |