mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 05:44:11 +01:00
multiview and vertical splitview
some bug fixes configurable default font size etc
This commit is contained in:
@@ -130,15 +130,7 @@ WMCreateList(WMWidget *parent)
|
||||
static int
|
||||
comparator(const void *a, const void *b)
|
||||
{
|
||||
WMListItem *item1 = *(WMListItem**)a;
|
||||
WMListItem *item2 = *(WMListItem**)b;
|
||||
|
||||
if (strcmp(item1->text, item2->text) < 0)
|
||||
return -1;
|
||||
else if (strcmp(item1->text, item2->text) > 0)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
return (strcmp((*(WMListItem**)a)->text, (*(WMListItem**)b)->text));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user