summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@t-online.de>2012-08-05 09:56:58 +0200
committerRico Tzschichholz <ricotz@t-online.de>2012-08-05 09:56:58 +0200
commite8dcfad441aad7e03a8a459f3818018bd6ff63c7 (patch)
treedf9792f8e9431a5f16df8b489f4038895229db7c /modules
parent1067627131ded97ece700dca73ef0502af075463 (diff)
downloadgtk+-e8dcfad441aad7e03a8a459f3818018bd6ff63c7.tar.gz
cups: Use IPP api when necessary with CUPS 1.6
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index d9110be158..c79fe9da21 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
{