mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
printing: Show correct status of a job
"job-state" is IPP_TAG_ENUM not IPP_TAG_INTEGER.
This commit is contained in:
parent
1a4132a72e
commit
7b5e7a72fc
@ -1544,7 +1544,7 @@ cups_request_job_info_cb (GtkPrintBackendCups *print_backend,
|
|||||||
state = 0;
|
state = 0;
|
||||||
|
|
||||||
#ifdef HAVE_CUPS_API_1_6
|
#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);
|
state = ippGetInteger (attr, 0);
|
||||||
#else
|
#else
|
||||||
for (attr = response->attrs; attr != NULL; attr = attr->next)
|
for (attr = response->attrs; attr != NULL; attr = attr->next)
|
||||||
|
Loading…
Reference in New Issue
Block a user