mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 22:04:12 +01:00
fixed some Bool flags passed to WINgs functions to always set 1 or 0 values internally
This commit is contained in:
@@ -145,14 +145,14 @@ WMCreateList(WMWidget *parent)
|
||||
void
|
||||
WMSetListAllowMultipleSelection(WMList *lPtr, Bool flag)
|
||||
{
|
||||
lPtr->flags.allowMultipleSelection = flag ? 1 : 0;
|
||||
lPtr->flags.allowMultipleSelection = ((flag==0) ? 0 : 1);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WMSetListAllowEmptySelection(WMList *lPtr, Bool flag)
|
||||
{
|
||||
lPtr->flags.allowEmptySelection = flag ? 1 : 0;
|
||||
lPtr->flags.allowEmptySelection = ((flag==0) ? 0 : 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user