openbsd-ports/palm/pose/patches/patch-SrcUnix_espws-2_0_FileChooser2_cxx
2007-04-01 17:50:25 +00:00

85 lines
2.9 KiB
Plaintext

$OpenBSD: patch-SrcUnix_espws-2_0_FileChooser2_cxx,v 1.2 2007/04/01 17:50:25 martynas Exp $
--- SrcUnix/espws-2.0/FileChooser2.cxx.orig Fri Mar 29 15:11:11 2002
+++ SrcUnix/espws-2.0/FileChooser2.cxx Sun Apr 1 17:53:43 2007
@@ -83,7 +83,7 @@ FileChooser::directory(const char *d) // I - Directory
#else
if (d[0] != '/' && d[0] != '\\')
#endif /* WIN32 || __EMX__ */
- filename_absolute(directory_, d);
+ fl_filename_absolute(directory_, d);
else
{
strncpy(directory_, d, sizeof(directory_) - 1);
@@ -170,7 +170,7 @@ FileChooser::count()
pathname[sizeof(pathname) - 1] = '\0';
}
- if (filename_isdir(pathname) && !directory_chooser_)
+ if (fl_filename_isdir(pathname) && !directory_chooser_)
return (0);
else
return (1);
@@ -189,7 +189,7 @@ FileChooser::count()
pathname[sizeof(pathname) - 1] = '\0';
}
- if (!filename_isdir(pathname) || directory_chooser_)
+ if (!fl_filename_isdir(pathname) || directory_chooser_)
count ++;
}
@@ -237,7 +237,7 @@ FileChooser::value(int f) // I - File number
name = fileList->text(i);
sprintf(pathname, "%s/%s", directory_, name);
- if (!filename_isdir(pathname) || directory_chooser_)
+ if (!fl_filename_isdir(pathname) || directory_chooser_)
{
// Nope, see if this this is "the one"...
count ++;
@@ -264,7 +264,7 @@ FileChooser::value(const char *filename) // I - Filena
// See if the filename is actually a directory...
- if (filename == NULL || filename_isdir(filename))
+ if (filename == NULL || fl_filename_isdir(filename))
{
// Yes, just change the current directory...
directory(filename);
@@ -424,7 +424,7 @@ FileChooser::fileListCB()
if ((strlen(pathname) == 2 && pathname[1] == ':') ||
filename_isdir(pathname))
#else
- if (filename_isdir(pathname))
+ if (fl_filename_isdir(pathname))
#endif /* WIN32 || __EMX__ */
{
directory(pathname);
@@ -437,7 +437,7 @@ FileChooser::fileListCB()
{
fileName->value(filename);
- if (!filename_isdir(pathname) || directory_chooser_)
+ if (!fl_filename_isdir(pathname) || directory_chooser_)
okButton->activate();
}
}
@@ -500,7 +500,7 @@ FileChooser::fileNameCB()
if (((strlen(pathname) == 2 && pathname[1] == ':') ||
filename_isdir(pathname)) && !directory_chooser_)
#else
- if (filename_isdir(pathname) && !directory_chooser_)
+ if (fl_filename_isdir(pathname) && !directory_chooser_)
#endif /* WIN32 || __EMX__ */
directory(pathname);
else if (type_ == CREATE || access(pathname, 0) == 0)
@@ -632,7 +632,7 @@ FileChooser::fileNameCB()
sprintf(pathname, "%s/%s", directory_, fileName->value());
if ((type_ == CREATE || access(pathname, 0) == 0) &&
- (!filename_isdir(pathname) || directory_chooser_))
+ (!fl_filename_isdir(pathname) || directory_chooser_))
okButton->activate();
else
okButton->deactivate();