[gnome-control-center] printers: Make sure IPP_STATE_IDLE is defined
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Make sure IPP_STATE_IDLE is defined
- Date: Tue, 24 Oct 2017 12:16:07 +0000 (UTC)
commit 614fb9e27a483acc41386cad169341a817668065
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]