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