summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2012-01-25 00:36:23 +0200
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-01-31 17:36:01 -0500
commit5db5c1dca04aab70c6da0d8e51099b4a60336357 (patch)
tree89909c4afa3548e7b41b7fd20a7fe8318285913d /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
parent0fc9a694d7469800fdb4849776d3de00cc1d2797 (diff)
downloadeclipse.platform.swt-5db5c1dca04aab70c6da0d8e51099b4a60336357.tar.gz
eclipse.platform.swt-5db5c1dca04aab70c6da0d8e51099b4a60336357.tar.xz
eclipse.platform.swt-5db5c1dca04aab70c6da0d8e51099b4a60336357.zip
Get rid of gtk_calendar_display_options.
This function has been used only for pre-2.4 GTK, is deprecated for long time and is removed in GTK 3.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
index 0d8c8097a6..020e8a958c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
@@ -343,11 +343,7 @@ void createHandle (int index) {
handle = OS.gtk_calendar_new ();
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
OS.gtk_container_add (fixedHandle, handle);
- if (OS.GTK_VERSION >= OS.VERSION(2, 4, 0)) {
- OS.gtk_calendar_set_display_options(handle, OS.GTK_CALENDAR_SHOW_HEADING | OS.GTK_CALENDAR_SHOW_DAY_NAMES);
- } else {
- OS.gtk_calendar_display_options(handle, OS.GTK_CALENDAR_SHOW_HEADING | OS.GTK_CALENDAR_SHOW_DAY_NAMES);
- }
+ OS.gtk_calendar_set_display_options(handle, OS.GTK_CALENDAR_SHOW_HEADING | OS.GTK_CALENDAR_SHOW_DAY_NAMES);
} else {
super.createHandle(index);
}