[gtk+/gtk-3-8] printing: Show correct status of a job



commit 8dee19fca8fe10dd830ab7ac2e3149a574ae992e
Author: Marek Kasik <mkasik redhat com>
Date:   Wed Jun 5 18:00:54 2013 +0200

    printing: Show correct status of a job
    
    "job-state" is IPP_TAG_ENUM not IPP_TAG_INTEGER.

 modules/printbackends/cups/gtkprintbackendcups.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c 
b/modules/printbackends/cups/gtkprintbackendcups.c
index 0093c31..e2ffc7b 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]