fc06b6ad4e
Update to 3.9.90 OBS-URL: https://build.opensuse.org/request/show/195751 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-settings-daemon?expand=0&rev=173
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
commit 6b745854b14feccf1d9950f1e3c124136cebfeaf
|
|
Author: Dominique Leuenberger <dimstar@opensuse.org>
|
|
Date: Tue Aug 20 22:22:18 2013 +0200
|
|
|
|
printer: allow building against cups 1.5
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=706442
|
|
|
|
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c b/plugins/print-notifications/gsd-print-notifications-manager.c
|
|
index 33eadae..6cd7d21 100644
|
|
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
|
|
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
|
|
@@ -62,6 +62,17 @@
|
|
#define ippGetStatusCode(ipp) ipp->request.status.status_code
|
|
#define ippGetInteger(attr, element) attr->values[element].integer
|
|
#define ippGetString(attr, element, language) attr->values[element].string.text
|
|
+#define ippGetName(attr) attr->name
|
|
+#define ippGetCount(attr) attr->num_values
|
|
+#define ippGetBoolean(attr, index) attr->values[index].boolean
|
|
+
|
|
+static ipp_attribute_t *
|
|
+ippNextAttribute (ipp_t *ipp)
|
|
+{
|
|
+ if (!ipp || !ipp->current)
|
|
+ return (NULL);
|
|
+ return (ipp->current = ipp->current->next);
|
|
+}
|
|
#endif
|
|
|
|
struct GsdPrintNotificationsManagerPrivate
|