Blame SOURCES/0001-printers-Fix-compilation-with-RHEL-cups-version.patch

5daad5
From 5c7cc82171f1312c9af2df6b5d5cc07c5f17be50 Mon Sep 17 00:00:00 2001
5daad5
From: Rui Matos <tiagomatos@gmail.com>
5daad5
Date: Mon, 23 Oct 2017 16:06:14 +0200
5daad5
Subject: [PATCH] printers: Fix compilation with RHEL cups version
5daad5
5daad5
---
5daad5
 panels/printers/pp-printer.c | 2 +-
5daad5
 1 file changed, 1 insertion(+), 1 deletion(-)
5daad5
5daad5
diff --git a/panels/printers/pp-printer.c b/panels/printers/pp-printer.c
5daad5
index 79a6301a0..bec3b962c 100644
5daad5
--- a/panels/printers/pp-printer.c
5daad5
+++ b/panels/printers/pp-printer.c
5daad5
@@ -551,7 +551,7 @@ print_file_thread (GTask        *task,
5daad5
     {
5daad5
       if (ippGetState (response) == IPP_ERROR)
5daad5
         g_warning ("An error has occured during printing of test page.");
5daad5
-      if (ippGetState (response) == IPP_STATE_IDLE)
5daad5
+      if (ippGetState (response) == IPP_IDLE)
5daad5
         ret = TRUE;
5daad5
 
5daad5
       ippDelete (response);
5daad5
-- 
5daad5
2.13.6
5daad5
5daad5
--- gnome-control-center-3.28.1/panels/printers/pp-job.c.orig	2018-04-10 15:18:04.000000000 +0200
5daad5
+++ gnome-control-center-3.28.1/panels/printers/pp-job.c	2018-05-17 16:52:50.139979170 +0200
5daad5
@@ -449,7 +449,7 @@
5daad5
 
5daad5
       length = g_strv_length (auth_info);
5daad5
 
5daad5
-      request = ippNewRequest (IPP_OP_CUPS_AUTHENTICATE_JOB);
5daad5
+      request = ippNewRequest (CUPS_AUTHENTICATE_JOB);
5daad5
       ippAddString (request, IPP_TAG_OPERATION, IPP_TAG_URI,
5daad5
                     "job-uri", NULL, job_uri);
5daad5
       ippAddString (request, IPP_TAG_OPERATION, IPP_TAG_NAME,