mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-22 10:05:46 +01:00
fixed some Bool flags passed to WINgs functions to always set 1 or 0 values internally
This commit is contained in:
@@ -451,20 +451,20 @@ WMSetFilePanelDirectory(WMFilePanel *panel, char *path)
|
||||
void
|
||||
WMSetFilePanelCanChooseDirectories(WMFilePanel *panel, Bool flag)
|
||||
{
|
||||
panel->flags.canChooseDirectories = flag;
|
||||
panel->flags.canChooseDirectories = ((flag==0) ? 0 : 1);
|
||||
}
|
||||
|
||||
void
|
||||
WMSetFilePanelCanChooseFiles(WMFilePanel *panel, Bool flag)
|
||||
{
|
||||
panel->flags.canChooseFiles = flag;
|
||||
panel->flags.canChooseFiles = ((flag==0) ? 0 : 1);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WMSetFilePanelAutoCompletion(WMFilePanel *panel, Bool flag)
|
||||
{
|
||||
panel->flags.autoCompletion = flag;
|
||||
panel->flags.autoCompletion = ((flag==0) ? 0 : 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user