mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-30 18:32:34 +01:00
Small bugfix, and more updates to typedef'ed functions.
This commit is contained in:
@@ -1059,8 +1059,7 @@ WMListItem *WMInsertListItem(WMList *lPtr, int row, char *text);
|
||||
|
||||
void WMSortListItems(WMList *lPtr);
|
||||
|
||||
void WMSortListItemsWithComparer(WMList *lPtr,
|
||||
int (f)(const void*, const void*));
|
||||
void WMSortListItemsWithComparer(WMList *lPtr, WMCompareDataProc *func);
|
||||
|
||||
int WMFindRowOfListItemWithTitle(WMList *lPtr, char *title);
|
||||
|
||||
@@ -1123,7 +1122,7 @@ WMListItem *WMInsertBrowserItem(WMBrowser *bPtr, int column, int row, char *text
|
||||
void WMSortBrowserColumn(WMBrowser *bPtr, int column);
|
||||
|
||||
void WMSortBrowserColumnWithComparer(WMBrowser *bPtr, int column,
|
||||
int (f)(const void*, const void*));
|
||||
WMCompareDataProc *func);
|
||||
|
||||
/* Don't free the returned string. */
|
||||
char* WMSetBrowserPath(WMBrowser *bPtr, char *path);
|
||||
|
||||
@@ -442,9 +442,9 @@ WMSortBrowserColumn(WMBrowser *bPtr, int column)
|
||||
|
||||
void
|
||||
WMSortBrowserColumnWithComparer(WMBrowser *bPtr, int column,
|
||||
int (f)(const void*, const void*))
|
||||
WMCompareDataProc *func)
|
||||
{
|
||||
WMSortListItemsWithComparer(bPtr->columns[column], f);
|
||||
WMSortListItemsWithComparer(bPtr->columns[column], func);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -152,9 +152,9 @@ WMSortListItems(WMList *lPtr)
|
||||
|
||||
|
||||
void
|
||||
WMSortListItemsWithComparer(WMList *lPtr, int (f)(const void*, const void*))
|
||||
WMSortListItemsWithComparer(WMList *lPtr, WMCompareDataProc *func)
|
||||
{
|
||||
WMSortArray(lPtr->items, f);
|
||||
WMSortArray(lPtr->items, func);
|
||||
|
||||
paintList(lPtr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user