summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java
diff options
context:
space:
mode:
authorAlexander Kurtakov <akurtako@redhat.com>2013-07-12 17:13:43 +0300
committerAlexander Kurtakov <akurtako@redhat.com>2013-07-12 17:13:43 +0300
commit7d865938b30c1ae03ba599023ba96f0087c84faf (patch)
treebd657d67236b1ed9f6d43d07aa29f980979eea49 /bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java
parentd2e5c07029c231cf71046f566a084417747c40b0 (diff)
downloadeclipse.platform.swt-7d865938b30c1ae03ba599023ba96f0087c84faf.tar.gz
eclipse.platform.swt-7d865938b30c1ae03ba599023ba96f0087c84faf.tar.xz
eclipse.platform.swt-7d865938b30c1ae03ba599023ba96f0087c84faf.zip
org.eclipse.swt.printing - Clean pre-2.8 GTK checks.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java
index 13dcf09f96..258d7eaa03 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java
@@ -91,7 +91,7 @@ static void gtk_init() {
*/
public static PrinterData[] getPrinterList() {
printerList = new PrinterData [0];
- if (OS.GTK_VERSION < OS.VERSION (2, 10, 0) || disablePrinting) {
+ if (disablePrinting) {
return printerList;
}
gtk_init();
@@ -139,7 +139,7 @@ static long /*int*/ GtkPrinterFunc_List (long /*int*/ printer, long /*int*/ user
*/
public static PrinterData getDefaultPrinterData() {
findData = null;
- if (OS.GTK_VERSION < OS.VERSION (2, 10, 0) || disablePrinting) {
+ if (disablePrinting) {
return null;
}
gtk_init();
@@ -748,7 +748,7 @@ public Rectangle computeTrim(int x, int y, int width, int height) {
*/
protected void create(DeviceData deviceData) {
this.data = (PrinterData)deviceData;
- if (OS.GTK_VERSION < OS.VERSION (2, 10, 0) || disablePrinting) SWT.error(SWT.ERROR_NO_HANDLES);
+ if (disablePrinting) SWT.error(SWT.ERROR_NO_HANDLES);
printer = gtkPrinterFromPrinterData(data);
if (printer == 0) SWT.error(SWT.ERROR_NO_HANDLES);
}