summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
diff options
context:
space:
mode:
authorBilly Biggs <bbiggs>2005-02-11 20:57:29 +0000
committerBilly Biggs <bbiggs>2005-02-11 20:57:29 +0000
commit3e26cc4e76e098b351d3cf6aab1b97c2f5e7da4d (patch)
treecff214ebb8b326fb6c02ffa47efed0e8e8805358 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
parent84df4391d1db7f9eaa5181877d5c472921dcc901 (diff)
downloadeclipse.platform.swt-3e26cc4e76e098b351d3cf6aab1b97c2f5e7da4d.tar.gz
eclipse.platform.swt-3e26cc4e76e098b351d3cf6aab1b97c2f5e7da4d.tar.xz
eclipse.platform.swt-3e26cc4e76e098b351d3cf6aab1b97c2f5e7da4d.zip
22000, 84733, 84953. Clean up size allocation of controls.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java18
1 files changed, 2 insertions, 16 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
index cf23ea8ffc..52906a25a1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
@@ -104,7 +104,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
}
public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
- if ((state & ZERO_SIZED) != 0) forceResize ();
+ forceResize ();
int clientX = OS.GTK_WIDGET_X (clientHandle);
int clientY = OS.GTK_WIDGET_Y (clientHandle);
x -= clientX;
@@ -158,25 +158,12 @@ int /*long*/ eventHandle () {
return fixedHandle;
}
-void fixGroup () {
- /*
- * Force the container to allocate the size of its children.
- */
- int flags = OS.GTK_WIDGET_FLAGS (handle);
- OS.GTK_WIDGET_SET_FLAGS (handle, OS.GTK_VISIBLE);
- GtkRequisition requisition = new GtkRequisition ();
- OS.gtk_widget_size_request (handle, requisition);
- OS.gtk_container_resize_children (handle);
- if ((flags & OS.GTK_VISIBLE) == 0) {
- OS.GTK_WIDGET_UNSET_FLAGS (handle, OS.GTK_VISIBLE);
- }
-}
-
public Rectangle getClientArea () {
checkWidget();
if ((state & ZERO_SIZED) != 0) {
return new Rectangle (0, 0, 0, 0);
}
+ forceResize ();
int width = OS.GTK_WIDGET_WIDTH (clientHandle);
int height = OS.GTK_WIDGET_HEIGHT (clientHandle);
return new Rectangle (0, 0, width, height);
@@ -304,7 +291,6 @@ public void setText (String string) {
} else {
OS.gtk_frame_set_label_widget (handle, 0);
}
- fixGroup ();
}
void showWidget () {