aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--src/indicator-printers-service.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 16f5f5d..fad240b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+indicator-printers (0.1.6-0ubuntu3) UNRELEASED; urgency=low
+
+ * Cherry-pick a fix in trunk for FTBFS (cups changed its API):
+ - Don't access CUPS' ipp_attribute_t directly. Thanks Larsu
+
+ -- Didier Roche <didrocks@ubuntu.com> Fri, 07 Sep 2012 17:03:18 +0200
+
indicator-printers (0.1.6-0ubuntu2) quantal; urgency=low
* debian/control:
diff --git a/src/indicator-printers-service.c b/src/indicator-printers-service.c
index ad5ef88..fb85069 100644
--- a/src/indicator-printers-service.c
+++ b/src/indicator-printers-service.c
@@ -56,7 +56,7 @@ create_subscription ()
attr = ippFindAttribute (resp, "notify-subscription-id", IPP_TAG_INTEGER);
if (attr)
- id = attr->values[0].integer;
+ id = ippGetInteger (attr, 0);
else
g_warning ("ipp-create-printer-subscription response doesn't contain "
"subscription id.\n");