os/2 patch

This commit is contained in:
Asbjørn Pettersen 2000-01-27 18:44:35 +00:00
parent bed181a998
commit b6c9232fbe
3 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2000-01-28 Asbjorn Pettersen <asbjornP@dualog.no>
* plug-ins/print/print-ps.c: use g_strcasecmp() instead of
strcasecmp().
* plug-ins/print/print.c: Fix output_to,driver settings
for OS/2 version.
Fri Jan 28 10:48:55 CET 2000 Sven Neumann <sven@gimp.org>
* libgimp/libgimp-intl.h: bind gimp-libgimp domain

View File

@ -33,6 +33,9 @@
* Revision History:
*
* $Log$
* Revision 1.18 2000/01/27 18:42:27 asbjoer
* os/2 patch
*
* Revision 1.17 2000/01/26 16:00:48 neo
* updated print plug-in
*
@ -445,7 +448,7 @@ ps_parameters(int model, /* I - Printer model */
if (sscanf(line, "*%s %[^/:]", lname, loption) != 2)
continue;
if (strcasecmp(lname, name) == 0)
if (g_strcasecmp(lname, name) == 0)
{
valptrs[(*count)] = malloc(strlen(loption) + 1);
strcpy(valptrs[(*count)], loption);
@ -1124,7 +1127,7 @@ ppd_find(char *ppd_file, /* I - Name of PPD file */
if (line[0] != '*')
continue;
if (strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL)
if (g_strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL)
{
sscanf(line, "%*s%d", order);
continue;
@ -1132,8 +1135,8 @@ ppd_find(char *ppd_file, /* I - Name of PPD file */
else if (sscanf(line, "*%s %[^/:]", lname, loption) != 2)
continue;
if (strcasecmp(lname, name) == 0 &&
strcasecmp(loption, option) == 0)
if (g_strcasecmp(lname, name) == 0 &&
g_strcasecmp(loption, option) == 0)
{
opt = strchr(line, ':') + 1;
while (*opt == ' ' || *opt == '\t')

View File

@ -3204,8 +3204,8 @@ get_printers(void)
for (i = 1; i <= pnum; i++)
{
sprintf(plist[plist_count].name, "LPT%d:", i);
sprintf(plist[plist_count].output_to, "PRINT /D:LPT%d /B ", i);
strcpy(plist[plist_count].driver, "ps2");
sprintf(plist[plist_count].v.output_to, "PRINT /D:LPT%d /B ", i);
strcpy(plist[plist_count].v.driver, "ps2");
initialize_printer(&plist[plist_count]);
plist_count ++;
}