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



commit fc3161bb1074756b4ea5cdbf52b2dee734390e92
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 79a6301..98474ef 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]