[gnome-control-center/gnome-3-24] printers: Make sure IPP_STATE_IDLE is defined



commit 6b05846d2d70ece60b5f9c1f44fc2f121d364b64
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Oct 24 11:53:28 2017 +0200

    printers: Make sure IPP_STATE_IDLE is defined
    
    This changes are necessary because we don't require cups >= 1.4,
    due to downstreams still shipping old cups versions.
    
    The IPP_STATE_IDLE symbol has been introduced in cups 1.7. The
    IPP_IDLE constant has been deprecated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789397

 panels/printers/pp-printer.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/printers/pp-printer.c b/panels/printers/pp-printer.c
index a7def7c..b7896af 100644
--- a/panels/printers/pp-printer.c
+++ b/panels/printers/pp-printer.c
@@ -22,6 +22,10 @@
 
 #include "pp-job.h"
 
+#if (CUPS_VERSION_MAJOR == 1) && (CUPS_VERSION_MINOR <= 6)
+#define IPP_STATE_IDLE IPP_IDLE
+#endif
+
 typedef struct _PpPrinter        PpPrinter;
 typedef struct _PpPrinterPrivate PpPrinterPrivate;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]