mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-12 01:14:21 +01:00
Fixed bug with sorting list items in WINGs
This commit is contained in:
@@ -3,6 +3,7 @@ changes since wmaker 0.61.1:
|
||||
|
||||
- fixed WMInsertInBag(). It ignored index, and always put the new item at end.
|
||||
- added WMSaveUserDefaults().
|
||||
- fixed bug with sorting list items.
|
||||
|
||||
|
||||
changes since wmaker 0.61.0:
|
||||
|
||||
@@ -130,8 +130,8 @@ WMCreateList(WMWidget *parent)
|
||||
static int
|
||||
comparator(const void *a, const void *b)
|
||||
{
|
||||
WMListItem *item1 = (WMListItem*)a;
|
||||
WMListItem *item2 = (WMListItem*)b;
|
||||
WMListItem *item1 = *(WMListItem**)a;
|
||||
WMListItem *item2 = *(WMListItem**)b;
|
||||
|
||||
if (strcmp(item1->text, item2->text) < 0)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user