diff options
author | Christophe Cornu <ccornu> | 2003-02-20 18:51:11 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2003-02-20 18:51:11 +0000 |
commit | a58accec9382396f576ddc7ebd58a8cbebc811ff (patch) | |
tree | 46eace03553aae75f78a2d051614c9f15698e0c0 | |
parent | 32d52dce8a12f09c8a7f87d38cc5f75cbcfbbaaa (diff) | |
download | eclipse.platform.swt-a58accec9382396f576ddc7ebd58a8cbebc811ff.tar.gz eclipse.platform.swt-a58accec9382396f576ddc7ebd58a8cbebc811ff.tar.xz eclipse.platform.swt-a58accec9382396f576ddc7ebd58a8cbebc811ff.zip |
no warnings sent anymore in GTK 2.0.6
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 8 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 4 |
2 files changed, 0 insertions, 12 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index 862ec4a743..842909ebc0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -468,11 +468,7 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re * Force the container to allocate the size of its children. */ int parentHandle = parent.parentingHandle (); - Display display = getDisplay (); - boolean warnings = display.getWarnings (); - display.setWarnings (false); OS.gtk_container_resize_children (parentHandle); - display.setWarnings (warnings); } if ((flags & OS.GTK_VISIBLE) == 0) { OS.GTK_WIDGET_UNSET_FLAGS (topHandle, OS.GTK_VISIBLE); @@ -2304,11 +2300,7 @@ void setInitialSize () { * Force the container to allocate the size of its children. */ int parentHandle = parent.parentingHandle (); - Display display = getDisplay (); - boolean warnings = display.getWarnings (); - display.setWarnings (false); OS.gtk_container_resize_children (parentHandle); - display.setWarnings (warnings); } /**
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 b764dbf1a7..7e1cf4683c 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 @@ -798,11 +798,7 @@ void resizeBounds (int width, int height, boolean notify) { } OS.gtk_fixed_move (fixedHandle, scrolledHandle, 0, menuHeight); OS.gtk_widget_set_size_request (scrolledHandle, width, height); - Display display = getDisplay (); - boolean warnings = display.getWarnings (); - display.setWarnings (false); OS.gtk_container_resize_children (fixedHandle); - display.setWarnings (warnings); if (notify) { sendEvent (SWT.Resize); if (layout != null) layout.layout (this, false); |