mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 05:44:11 +01:00
fixed some Bool flags passed to WINgs functions to always set 1 or 0 values internally
This commit is contained in:
@@ -156,7 +156,7 @@ WMSetBrowserAllowMultipleSelection(WMBrowser *bPtr, Bool flag)
|
||||
{
|
||||
int i;
|
||||
|
||||
bPtr->flags.allowMultipleSelection = flag ? 1 : 0;
|
||||
bPtr->flags.allowMultipleSelection = ((flag==0) ? 0 : 1);
|
||||
for (i=0; i<bPtr->columnCount; i++) {
|
||||
WMSetListAllowMultipleSelection(bPtr->columns[i], flag);
|
||||
}
|
||||
@@ -168,7 +168,7 @@ WMSetBrowserAllowEmptySelection(WMBrowser *bPtr, Bool flag)
|
||||
{
|
||||
int i;
|
||||
|
||||
bPtr->flags.allowEmptySelection = flag ? 1 : 0;
|
||||
bPtr->flags.allowEmptySelection = ((flag==0) ? 0 : 1);
|
||||
for (i=0; i<bPtr->columnCount; i++) {
|
||||
WMSetListAllowEmptySelection(bPtr->columns[i], flag);
|
||||
}
|
||||
@@ -423,6 +423,8 @@ WMSetBrowserTitled(WMBrowser *bPtr, Bool flag)
|
||||
int i;
|
||||
int columnX, columnY;
|
||||
|
||||
flag = ((flag==0) ? 0 : 1);
|
||||
|
||||
if (bPtr->flags.isTitled == flag)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user