summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-10-17 13:50:06 -0400
committerAlexander Kurtakov <akurtako@redhat.com>2012-10-17 21:51:35 +0300
commit35f130070627930dae79842022c951694c5a3dfa (patch)
tree2dbb544349562d0c5e42d0e19dd7deaece497962 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
parented640c3e8cb9e6f5b49b8c43cbe44d558e655cc7 (diff)
downloadeclipse.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/Shell.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java2
1 files changed, 1 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 f7f436bb6c..b71470f2b2 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
@@ -931,7 +931,7 @@ void forceResize () {
void forceResize (int width, int height) {
GtkRequisition requisition = new GtkRequisition ();
- OS.gtk_widget_size_request (vboxHandle, requisition);
+ gtk_widget_get_preferred_size (vboxHandle, requisition);
GtkAllocation allocation = new GtkAllocation ();
int border = OS.gtk_container_get_border_width (shellHandle);
allocation.x = border;