summaryrefslogtreecommitdiff
path: root/src/cairo/cdcairoprn_unix.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-10-29 02:31:12 +0000
committerscuri <scuri>2010-10-29 02:31:12 +0000
commit0ad7222139515af5a859ce682ba02715a7350c6e (patch)
tree2426ec63efce5a3f5e60613957508d1ee885275a /src/cairo/cdcairoprn_unix.c
parent6ae414b1a73a593431fcae033434267170e505b0 (diff)
*** empty log message ***
Diffstat (limited to 'src/cairo/cdcairoprn_unix.c')
-rw-r--r--src/cairo/cdcairoprn_unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairo/cdcairoprn_unix.c b/src/cairo/cdcairoprn_unix.c
index fa13522..d770031 100644
--- a/src/cairo/cdcairoprn_unix.c
+++ b/src/cairo/cdcairoprn_unix.c
@@ -79,7 +79,7 @@ static void cdcreatecanvas(cdCanvas* canvas, void *data)
GtkPrintUnixDialog* dialog = NULL;
GtkPrinter* printer;
GtkPrintSettings* settings;
- GtkPageSetup* page_setup;
+ GtkPageSetup* page_setup = NULL;
GtkPrintJob* job;
int show_dialog = 0;
@@ -136,7 +136,9 @@ static void cdcreatecanvas(cdCanvas* canvas, void *data)
gtk_enumerate_printers((GtkPrinterFunc)print_enum, &printer, NULL, TRUE);
if (!printer)
return;
+#if GTK_CHECK_VERSION(2, 13, 0)
page_setup = gtk_printer_get_default_page_size(printer);
+#endif
if (!page_setup)
page_setup = gtk_page_setup_new(); /* ?????? */