diff --git a/ChangeLog b/ChangeLog index 047e727aca..213466236b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-01-28 Asbjorn Pettersen + + * 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 * libgimp/libgimp-intl.h: bind gimp-libgimp domain diff --git a/plug-ins/print/print-ps.c b/plug-ins/print/print-ps.c index ccc555d078..85a203124e 100644 --- a/plug-ins/print/print-ps.c +++ b/plug-ins/print/print-ps.c @@ -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') diff --git a/plug-ins/print/print.c b/plug-ins/print/print.c index 4d76a4ed32..4dc1e1caff 100644 --- a/plug-ins/print/print.c +++ b/plug-ins/print/print.c @@ -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 ++; }