diff options
author | scuri <scuri> | 2010-11-10 00:21:39 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-11-10 00:21:39 +0000 |
commit | 4cdf38a35ab9d082ae4ef6437452508a1156f152 (patch) | |
tree | 36dea90810de1f873f20eef7cc1d6148aedee094 /src | |
parent | a17a4f5f15f041e8da07a1a8d2b67ca5a2e1ea41 (diff) |
*** empty log message ***
Diffstat (limited to 'src')
-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) { |