mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Unix can't sensibly enumerate printers (since they're defined as
being lpr commands), so the Unix config box now replaces the printer combo box with an ordinary edit box. [originally from svn r3063]
This commit is contained in:
@ -41,3 +41,17 @@ void printer_finish_job(printer_job *pj)
|
||||
pclose(pj->fp);
|
||||
sfree(pj);
|
||||
}
|
||||
|
||||
/*
|
||||
* There's no sensible way to enumerate printers under Unix, since
|
||||
* practically any valid Unix command is a valid printer :-) So
|
||||
* these are useless stub functions, and uxcfg.c will disable the
|
||||
* drop-down list in the printer configurer.
|
||||
*/
|
||||
printer_enum *printer_start_enum(int *nprinters_ptr) {
|
||||
*nprinters_ptr = 0;
|
||||
return NULL;
|
||||
}
|
||||
char *printer_get_name(printer_enum *pe, int i) { return NULL;
|
||||
}
|
||||
void printer_finish_enum(printer_enum *pe) { }
|
||||
|
Reference in New Issue
Block a user