[gtk+/composite-templates] cups: Use IPP api when necessary with CUPS 1.6
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/composite-templates] cups: Use IPP api when necessary with CUPS 1.6
- Date: Fri, 14 Sep 2012 21:09:46 +0000 (UTC)
commit b0b2bc51bcab8ef2cdde572c57edb36f3032fff7
Author: Rico Tzschichholz <ricotz t-online de>
Date: Sun Aug 5 09:56:58 2012 +0200
cups: Use IPP api when necessary with CUPS 1.6
modules/printbackends/cups/gtkprintbackendcups.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index d9110be..c79fe9d 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -1835,9 +1835,9 @@ cups_printer_handle_attribute (GtkPrintBackendCups *cups_backend,
info->auth_info_required[i] = g_strdup (ippGetString (attr, i, NULL));
}
}
- else if (strcmp (attr->name, "number-up-default") == 0)
+ else if (strcmp (ippGetName (attr), "number-up-default") == 0)
{
- info->default_number_up = attr->values[0].integer;
+ info->default_number_up = ippGetInteger (attr, 0);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]