Disable database/opensearch
[oi-userland.git] / components / library / gtk+ / patches / 14-handle-copies.patch
blob7d4426e90a2daa692719b52bba87bd0649e925be
1 --- gtk+-2.24.33/gtk/gtkprintoperation-unix.c.orig
2 +++ gtk+-2.24.33/gtk/gtkprintoperation-unix.c
3 @@ -606,7 +606,12 @@
4 priv->page_ranges = job->page_ranges;
5 priv->num_page_ranges = job->num_page_ranges;
7 - priv->manual_num_copies = job->num_copies;
8 + if (gtk_printer_get_capabilities (gtk_print_job_get_printer (job)) &
9 + GTK_PRINT_CAPABILITY_COPIES)
10 + priv->manual_num_copies = 1;
11 + else
12 + priv->manual_num_copies = job->num_copies;
14 priv->manual_collation = job->collate;
15 priv->manual_reverse = job->reverse;
16 priv->manual_page_set = job->page_set;