mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-31 13:05:52 +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 WMSortListItems(WMList *lPtr);
|
||||||
|
|
||||||
void WMSortListItemsWithComparer(WMList *lPtr,
|
void WMSortListItemsWithComparer(WMList *lPtr, WMCompareDataProc *func);
|
||||||
int (f)(const void*, const void*));
|
|
||||||
|
|
||||||
int WMFindRowOfListItemWithTitle(WMList *lPtr, char *title);
|
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 WMSortBrowserColumn(WMBrowser *bPtr, int column);
|
||||||
|
|
||||||
void WMSortBrowserColumnWithComparer(WMBrowser *bPtr, int column,
|
void WMSortBrowserColumnWithComparer(WMBrowser *bPtr, int column,
|
||||||
int (f)(const void*, const void*));
|
WMCompareDataProc *func);
|
||||||
|
|
||||||
/* Don't free the returned string. */
|
/* Don't free the returned string. */
|
||||||
char* WMSetBrowserPath(WMBrowser *bPtr, char *path);
|
char* WMSetBrowserPath(WMBrowser *bPtr, char *path);
|
||||||
|
|||||||
@@ -442,9 +442,9 @@ WMSortBrowserColumn(WMBrowser *bPtr, int column)
|
|||||||
|
|
||||||
void
|
void
|
||||||
WMSortBrowserColumnWithComparer(WMBrowser *bPtr, int column,
|
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
|
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);
|
paintList(lPtr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user