Home
last modified time | relevance | path

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

/external/libcups/cups/
Ddest.c451 CFMutableArrayRef newlocations; /* New locations array */ in _cupsAppleSetDefaultPrinter() local
485 newlocations = CFArrayCreateMutableCopy(kCFAllocatorDefault, 0, in _cupsAppleSetDefaultPrinter()
489 CFArrayRemoveValueAtIndex(newlocations, locindex); in _cupsAppleSetDefaultPrinter()
492 newlocations = CFArrayCreateMutable(kCFAllocatorDefault, 0, in _cupsAppleSetDefaultPrinter()
499 if (newlocation && newlocations) in _cupsAppleSetDefaultPrinter()
507 CFArrayInsertValueAtIndex(newlocations, 0, newlocation); in _cupsAppleSetDefaultPrinter()
513 while (CFArrayGetCount(newlocations) > 10) in _cupsAppleSetDefaultPrinter()
514 CFArrayRemoveValueAtIndex(newlocations, 10); in _cupsAppleSetDefaultPrinter()
520 CFPreferencesSetAppValue(kLastUsedPrintersKey, newlocations, in _cupsAppleSetDefaultPrinter()
529 if (newlocations) in _cupsAppleSetDefaultPrinter()
[all …]