+2006-06-16 Matthias Clasen <mclasen@redhat.com>
+
+ * modules/printbackends/cups/gtkprintbackendcups.c: Include
+ gtkprinter-private.h (#345038, Christian Persch)
+
2006-06-15 Matthias Clasen <mclasen@redhat.com>
- * modules/printbackends/pdf/gtkprintbackendcups.c: Use the
+ * modules/printbackends/pdf/gtkprintbackendpdf.c: Use the
stock floppy icon.
* gtk/gtkprintoperation-unix.c: Set the GENERATE_PDF capability
+2006-06-16 Matthias Clasen <mclasen@redhat.com>
+
+ * modules/printbackends/cups/gtkprintbackendcups.c: Include
+ gtkprinter-private.h (#345038, Christian Persch)
+
2006-06-15 Matthias Clasen <mclasen@redhat.com>
- * modules/printbackends/pdf/gtkprintbackendcups.c: Use the
+ * modules/printbackends/pdf/gtkprintbackendpdf.c: Use the
stock floppy icon.
* gtk/gtkprintoperation-unix.c: Set the GENERATE_PDF capability
#include <gtk/gtkprintsettings.h>
#include <gtk/gtkprintbackend.h>
#include <gtk/gtkprinter.h>
+#include <gtk/gtkprinter-private.h>
#include "gtkprintbackendcups.h"
#include "gtkprintercups.h"
gpointer user_data,
GDestroyNotify dnotify);
static cairo_surface_t * cups_printer_create_cairo_surface (GtkPrinter *printer,
+ GtkPrintSettings *settings,
gdouble width,
gdouble height,
gint cache_fd);
static cairo_surface_t *
cups_printer_create_cairo_surface (GtkPrinter *printer,
+ GtkPrintSettings *settings,
gdouble width,
gdouble height,
gint cache_fd)
surface = cairo_ps_surface_create_for_stream (_cairo_write_to_cups, GINT_TO_POINTER (cache_fd), width, height);
/* TODO: DPI from settings object? */
- cairo_ps_surface_set_dpi (surface, 300, 300);
+ cairo_surface_set_fallback_resolution (surface, 300, 300);
return surface;
}
cups_printer = GTK_PRINTER_CUPS (printer);
error = NULL;
-
+ /* FIXME this can return NULL! */
http = httpConnectEncrypt(cups_printer->hostname,
cups_printer->port,
cupsEncryption());
cups_printer->reading_ppd = TRUE;
print_backend = gtk_printer_get_backend (printer);
-
+
cups_request_execute (GTK_PRINT_BACKEND_CUPS (print_backend),
request,
(GtkPrintCupsResponseCallbackFunc) cups_request_ppd_cb,