GTK: replaced FileInFilenameMasks with MatchesMaskList

git-svn-id: trunk@11593 -
This commit is contained in:
tombo 2007-07-22 14:19:32 +00:00
parent 77381cc8d4
commit e480c8112a
2 changed files with 3 additions and 3 deletions

View File

@ -3532,8 +3532,8 @@ begin
begin
repeat
if ((Info.Attr and faDirectory) <> faDirectory) then begin
//debugln('PopulateFileAndDirectoryLists CurFileMask="',CurFileMask,'" Info.Name="',Info.Name,'" ',dbgs(FileInFilenameMasks(Info.Name,CurFileMask)));
if (CurFileMask='') or (FileInFilenameMasks(Info.Name,CurFileMask)) then
//debugln('PopulateFileAndDirectoryLists CurFileMask="',CurFileMask,'" Info.Name="',Info.Name,'" ',dbgs(MatchesMaskList(Info.Name,CurFileMask)));
if (CurFileMask='') or (MatchesMaskList(Info.Name,CurFileMask)) then
begin
Strlist.Add(Info.Name);
end;

View File

@ -43,7 +43,7 @@ uses
glib, gdk, gtk, {$Ifndef NoGdkPixbufLib}gdkpixbuf,{$EndIf}
{$ENDIF}
Math, // after gtk to get the correct Float type
LMessages, LCLProc, LCLStrConsts, LCLIntf, LCLType, DynHashArray, Maps,
LMessages, LCLProc, LCLStrConsts, LCLIntf, LCLType, DynHashArray, Maps, Masks,
GraphType, GraphMath, Graphics, GTKWinApiWindow, LResources, Controls, Forms,
Buttons, Menus, StdCtrls, ComCtrls, CommCtrl, ExtCtrls, Dialogs, ExtDlgs,
FileUtil, ImgList, GtkFontCache, GTKGlobals, gtkDef, GtkExtra;