aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2014-04-03 16:19:57 -0400
committerAlexander Kurtakov2014-04-03 16:19:57 -0400
commitfdc33a723aa604a4f9e0308d0c0a8d79e6a49e8f (patch)
tree3a7949667deb7cb0828ef57dc647f29fa39e0ff9
parent89e9775adff982b626f05e6cafef9495701a8c3a (diff)
downloadeclipse.platform.swt-fdc33a723aa604a4f9e0308d0c0a8d79e6a49e8f.zip
eclipse.platform.swt-fdc33a723aa604a4f9e0308d0c0a8d79e6a49e8f.tar.gz
eclipse.platform.swt-fdc33a723aa604a4f9e0308d0c0a8d79e6a49e8f.tar.xz
Bug 431789 - PrintDialog.open crashes with GTK 3.10
Include gtkunixprint.h only for gtk 2.14 or newer and individual headers for older versions. Change-Id: I93058e896cee8a142b9749d291b0b4e732783afe Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
index 69bbe4e..c6ee821 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h
@@ -29,7 +29,14 @@
#include <stdlib.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
+#if GTK_CHECK_VERSION(2,14,0)
#include <gtk/gtkunixprint.h>
+#else
+#include <gtk/gtkpagesetupunixdialog.h>
+#include <gtk/gtkprinter.h>
+#include <gtk/gtkprintjob.h>
+#include <gtk/gtkprintunixdialog.h>
+#endif
#if GTK_CHECK_VERSION(3,0,0)
#include <gtk/gtkx.h>
#include <gdk/gdkx.h>