diff options
author | Steve Northover <steve> | 2004-10-14 20:52:29 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2004-10-14 20:52:29 +0000 |
commit | ceb350ceef223d5f8431571aa830704c0503b8fe (patch) | |
tree | 71cbf3d9c6502561d35eaa72e8fb0b7f33ac798f /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | |
parent | 570ef2648f9466fd8f7f08699fa8bbb40ecb50cb (diff) | |
download | eclipse.platform.swt-ceb350ceef223d5f8431571aa830704c0503b8fe.tar.gz eclipse.platform.swt-ceb350ceef223d5f8431571aa830704c0503b8fe.tar.xz eclipse.platform.swt-ceb350ceef223d5f8431571aa830704c0503b8fe.zip |
missing client resize from scroll bar
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java index ce50b61d4f..b2e71e6284 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java @@ -672,27 +672,7 @@ public void setValues (int selection, int minimum, int maximum, int thumb, int i */ public void setVisible (boolean visible) { checkWidget (); - int /*long*/ scrolledHandle = parent.scrolledHandle; - int [] hsp = new int [1], vsp = new int [1]; - OS.gtk_scrolled_window_get_policy (scrolledHandle, hsp, vsp); - int policy = visible ? OS.GTK_POLICY_ALWAYS : OS.GTK_POLICY_NEVER; - if ((style & SWT.HORIZONTAL) != 0) { - if (hsp [0] == policy) return; - hsp [0] = policy; - } else { - if (vsp [0] == policy) return; - vsp [0] = policy; - } - OS.gtk_scrolled_window_set_policy (scrolledHandle, hsp [0], vsp [0]); - - /* - * Force the container to allocate the size of its children. - */ - int /*long*/ parentHandle = parent.scrolledHandle; - OS.gtk_container_resize_children (parentHandle); - - parent.sendEvent (SWT.Resize); - sendEvent (visible ? SWT.Show : SWT.Hide); + parent.setScrollBarVisible (this, visible); } } |