summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMarek Kasik <mkasik@redhat.com>2013-06-05 18:00:54 +0200
committerMarek Kasik <mkasik@redhat.com>2013-06-06 11:09:36 +0200
commitf29841a03e798408a7d236e96a115c2acaa531dd (patch)
tree7d271d9dd444acee1a78abbc12009d41c61d79cb /modules
parentca27a7de70fadbfa03c361a689adc784df9edf77 (diff)
downloadgtk+-f29841a03e798408a7d236e96a115c2acaa531dd.tar.gz
printing: Show correct status of a job
"job-state" is IPP_TAG_ENUM not IPP_TAG_INTEGER.
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 5656615606..ff8bb7f9b8 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -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)