aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-09-07 16:55:16 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-09-07 16:55:16 +0200
commitfe48eac5838c85e434fb0ec8e798b4a5b5a69802 (patch)
tree9232ccfa1c44314b4d5d69e2efd2c3439c1231d4 /src
parent23bbf5f139059e38e1c555682a775ec7af50b850 (diff)
downloadayatana-indicator-printers-fe48eac5838c85e434fb0ec8e798b4a5b5a69802.tar.gz
ayatana-indicator-printers-fe48eac5838c85e434fb0ec8e798b4a5b5a69802.tar.bz2
ayatana-indicator-printers-fe48eac5838c85e434fb0ec8e798b4a5b5a69802.zip
Don't access CUPS' ipp_attribute_t directly
CUPS doesn't support that anymore.
Diffstat (limited to 'src')
-rw-r--r--src/indicator-printers-service.c2
1 files changed, 1 insertions, 1 deletions
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");