printing: Show correct status of a job

"job-state" is IPP_TAG_ENUM not IPP_TAG_INTEGER.
This commit is contained in:
Marek Kasik 2013-06-05 18:00:54 +02:00
parent ca27a7de70
commit f29841a03e

View File

@ -1655,7 +1655,7 @@ cups_request_job_info_cb (GtkPrintBackendCups *print_backend,
state = 0;
#ifdef HAVE_CUPS_API_1_6
attr = ippFindAttribute (response, "job-state", IPP_TAG_INTEGER);
attr = ippFindAttribute (response, "job-state", IPP_TAG_ENUM);
state = ippGetInteger (attr, 0);
#else
for (attr = response->attrs; attr != NULL; attr = attr->next)