cups: Use IPP api when necessary with CUPS 1.6

This commit is contained in:
Rico Tzschichholz 2012-08-05 09:56:58 +02:00
parent 1067627131
commit e8dcfad441

View File

@ -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
{