summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-01 10:36:48 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-01 10:36:48 -0400
commite9e22c53a60c9c658a4f6a4c696542fdb7101ed7 (patch)
tree5dc1b0087892f1bd97fb6d62d18a8c885fb01930 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
parent0d23f871e57d5ad4ac4223f8da9d549bb534627e (diff)
downloadeclipse.platform.swt-e9e22c53a60c9c658a4f6a4c696542fdb7101ed7.tar.gz
eclipse.platform.swt-e9e22c53a60c9c658a4f6a4c696542fdb7101ed7.tar.xz
eclipse.platform.swt-e9e22c53a60c9c658a4f6a4c696542fdb7101ed7.zip
add helper setHasWindow
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
index 895e41b9e7..5e8837eb58 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Composite.java
@@ -262,11 +262,7 @@ void createHandle (int index, boolean fixed, boolean scrolled) {
if (fixed) {
fixedHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0);
if (fixedHandle == 0) error (SWT.ERROR_NO_HANDLES);
- if (OS.GTK_VERSION >= OS.VERSION(2, 18, 0)) {
- OS.gtk_widget_set_has_window(fixedHandle, true);
- }else{
- OS.gtk_fixed_set_has_window (fixedHandle, true);
- }
+ setHasWindow (fixedHandle, true);
}
int /*long*/ vadj = OS.gtk_adjustment_new (0, 0, 100, 1, 10, 10);
if (vadj == 0) error (SWT.ERROR_NO_HANDLES);
@@ -277,11 +273,7 @@ void createHandle (int index, boolean fixed, boolean scrolled) {
}
handle = OS.g_object_new (display.gtk_fixed_get_type (), 0);
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
- if (OS.GTK_VERSION >= OS.VERSION(2, 18, 0)) {
- OS.gtk_widget_set_has_window(handle, true);
- }else{
- OS.gtk_fixed_set_has_window (handle, true);
- }
+ setHasWindow (handle, true);
OS.GTK_WIDGET_SET_FLAGS(handle, OS.GTK_CAN_FOCUS);
if ((style & SWT.EMBEDDED) == 0) {
if ((state & CANVAS) != 0) {