Home
last modified time | relevance | path

Searched refs:newlocations (Results 1 – 1 of 1) sorted by relevance

/external/libcups/cups/
Ddest.c435 CFMutableArrayRef newlocations; /* New locations array */ in _cupsAppleSetDefaultPrinter() local
469 newlocations = CFArrayCreateMutableCopy(kCFAllocatorDefault, 0, in _cupsAppleSetDefaultPrinter()
473 CFArrayRemoveValueAtIndex(newlocations, locindex); in _cupsAppleSetDefaultPrinter()
476 newlocations = CFArrayCreateMutable(kCFAllocatorDefault, 0, in _cupsAppleSetDefaultPrinter()
483 if (newlocation && newlocations) in _cupsAppleSetDefaultPrinter()
491 CFArrayInsertValueAtIndex(newlocations, 0, newlocation); in _cupsAppleSetDefaultPrinter()
497 while (CFArrayGetCount(newlocations) > 10) in _cupsAppleSetDefaultPrinter()
498 CFArrayRemoveValueAtIndex(newlocations, 10); in _cupsAppleSetDefaultPrinter()
504 CFPreferencesSetAppValue(kLastUsedPrintersKey, newlocations, in _cupsAppleSetDefaultPrinter()
513 if (newlocations) in _cupsAppleSetDefaultPrinter()
[all …]