summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-07 20:51:40 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-10-07 20:51:40 +0000
commit668868fb1f5c698abba764b24379a3fc4c405abe (patch)
tree4fdd607bbf99ffb655709c64d3d90a9bb3fc8df4
parentbc5723a846f35064a4d6157c8a5de9923318a8e0 (diff)
parent99dfdfcd5e125f5c5ff501a8dc23353ecf90831e (diff)
downloadgtk+-668868fb1f5c698abba764b24379a3fc4c405abe.tar.gz
Merge branch 'master' into 'master'
Allow LPR backend to print PDF and PS file formats See merge request GNOME/gtk!418
-rw-r--r--modules/printbackends/gtkprintbackendlpr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/printbackends/gtkprintbackendlpr.c b/modules/printbackends/gtkprintbackendlpr.c
index ac30d93231..2d50971bfc 100644
--- a/modules/printbackends/gtkprintbackendlpr.c
+++ b/modules/printbackends/gtkprintbackendlpr.c
@@ -373,9 +373,13 @@ gtk_print_backend_lpr_init (GtkPrintBackendLpr *backend)
{
GtkPrinter *printer;
- printer = gtk_printer_new (_("Print to LPR"),
- GTK_PRINT_BACKEND (backend),
- TRUE);
+ printer = g_object_new (GTK_TYPE_PRINTER,
+ "name", _("Print to LPR"),
+ "backend", backend,
+ "is-virtual", FALSE,
+ "accepts-pdf", TRUE,
+ "accepts-ps", TRUE,
+ NULL);
gtk_printer_set_has_details (printer, TRUE);
gtk_printer_set_icon_name (printer, "printer");
gtk_printer_set_is_active (printer, TRUE);