diff options
author | Anatoly Spektor | 2012-10-17 17:50:06 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2012-10-17 18:51:35 +0000 |
commit | 35f130070627930dae79842022c951694c5a3dfa (patch) | |
tree | 2dbb544349562d0c5e42d0e19dd7deaece497962 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java | |
parent | ed640c3e8cb9e6f5b49b8c43cbe44d558e655cc7 (diff) | |
download | eclipse.platform.swt-35f130070627930dae79842022c951694c5a3dfa.tar.gz eclipse.platform.swt-35f130070627930dae79842022c951694c5a3dfa.tar.xz eclipse.platform.swt-35f130070627930dae79842022c951694c5a3dfa.zip |
Use gtk_widget_get_preferred_size() instead gtk_widget_size_request ()
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 | 2 |
1 files changed, 1 insertions, 1 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 2d282c4efb..4f7349216f 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 @@ -301,7 +301,7 @@ public Point getSize () { checkWidget (); if (handle == 0) return new Point (0,0); GtkRequisition requisition = new GtkRequisition (); - OS.gtk_widget_size_request (handle, requisition); + gtk_widget_get_preferred_size (handle, requisition); return new Point (requisition.width, requisition.height); } |