diff options
Diffstat (limited to 'src/cairo')
-rw-r--r-- | src/cairo/cdcairoprn_unix.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo/cdcairoprn_unix.c b/src/cairo/cdcairoprn_unix.c index d770031..67fad83 100644 --- a/src/cairo/cdcairoprn_unix.c +++ b/src/cairo/cdcairoprn_unix.c @@ -9,11 +9,14 @@ #include <string.h> #include <gtk/gtk.h> +#if GTK_CHECK_VERSION(2, 10, 0) #include <gtk/gtkprintunixdialog.h> +#endif #include "cdcairoctx.h" #include "cdprint.h" +#if GTK_CHECK_VERSION(2, 10, 0) static gboolean print_enum(GtkPrinter *printer, GtkPrinter **ret_printer) { if (gtk_printer_is_default(printer)) @@ -173,6 +176,12 @@ static void cdcreatecanvas(cdCanvas* canvas, void *data) g_object_unref(settings); } +#else +static void cdcreatecanvas(cdCanvas* canvas, void *data) +{ + /* do nothing */ +} +#endif static void cdinittable(cdCanvas* canvas) { |