summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-02 10:09:35 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-02 10:09:35 -0400
commit28693b715394e6d7185e331f748190abf197da68 (patch)
tree73e88f8f1b6b98a6d45dbd6e21ac9a103dd97932 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
parentb007515cbcde96bb54766bf477a070088005e41e (diff)
downloadeclipse.platform.swt-28693b715394e6d7185e331f748190abf197da68.tar.gz
eclipse.platform.swt-28693b715394e6d7185e331f748190abf197da68.tar.xz
eclipse.platform.swt-28693b715394e6d7185e331f748190abf197da68.zip
Bug 393156 - [ GTK+ 3 ] Shell.forceResize() gives Critical error when running with GTK+3
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
index 19489b2c1d..3c19f203cf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
@@ -606,8 +606,10 @@ void resizeHandle (int width, int height) {
* alignment to fail. The fix is to set the child size to the size
* of the button.
*/
- if ((style & (SWT.CHECK | SWT.RADIO)) != 0) {
- OS.gtk_widget_set_size_request (boxHandle, width, -1);
+ if (OS.GTK_VERSION < OS.VERSION (3, 0, 0)) {
+ if ((style & (SWT.CHECK | SWT.RADIO)) != 0) {
+ OS.gtk_widget_set_size_request (boxHandle, width, -1);
+ }
}
}