mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-21 22:44:14 +01:00
replaced linked list with WMBag in WMList
replaced WMAddSorted*** with WMSort*** fixed crash bug in icon chooser
This commit is contained in:
@@ -433,18 +433,10 @@ WMSetBrowserTitled(WMBrowser *bPtr, Bool flag)
|
||||
}
|
||||
|
||||
|
||||
WMListItem*
|
||||
WMAddSortedBrowserItem(WMBrowser *bPtr, int column, char *text, Bool isBranch)
|
||||
void
|
||||
WMSortBrowserColumn(WMBrowser *bPtr, int column)
|
||||
{
|
||||
WMListItem *item;
|
||||
|
||||
if (column < 0 || column >= bPtr->columnCount)
|
||||
return NULL;
|
||||
|
||||
item = WMAddSortedListItem(bPtr->columns[column], text);
|
||||
item->isBranch = isBranch;
|
||||
|
||||
return item;
|
||||
WMSortListItems(bPtr->columns[column]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user