mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
GTK: replaced FileInFilenameMasks with MatchesMaskList
git-svn-id: trunk@11593 -
This commit is contained in:
parent
77381cc8d4
commit
e480c8112a
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user