diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-08-01 10:36:48 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-08-01 10:36:48 -0400 |
commit | e9e22c53a60c9c658a4f6a4c696542fdb7101ed7 (patch) | |
tree | 5dc1b0087892f1bd97fb6d62d18a8c885fb01930 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | |
parent | 0d23f871e57d5ad4ac4223f8da9d549bb534627e (diff) | |
download | eclipse.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/Label.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java index 048a08897e..838e3f5658 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java @@ -202,11 +202,7 @@ void createHandle (int index) { state |= HANDLE | THEME_BACKGROUND; 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); if ((style & SWT.SEPARATOR) != 0) { if ((style & SWT.HORIZONTAL)!= 0) { handle = OS.gtk_hseparator_new (); |