}
static gint sort_column_number = 0;
+static GtkSortType sort_column_type = GTK_SORT_ASCENDING;
static gint list_case_sort(
GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2 )
} else {
/* Order groups before person */
if( aio1->type == ITEMTYPE_GROUP ) {
- return -1;
+ return (sort_column_type==GTK_SORT_ASCENDING) ? -1:+1;
} else if( aio2->type == ITEMTYPE_GROUP ) {
- return 1;
+ return (sort_column_type==GTK_SORT_ASCENDING) ? +1:-1;
}
return 0;
}
GtkWidget *hbox, *label, *arrow;
sort_column_number = col;
+ sort_column_type = sort_type;
gtk_clist_set_compare_func(clist, list_case_sort);
gtk_clist_set_sort_type(clist, sort_type);
gtk_clist_set_sort_column(clist, col);
atci->showInTree = TRUE;
atci->treeExpand = TRUE;
atci->treeLeaf = FALSE;
- atci->displayName = _( "LDAP Server" );
+ atci->displayName = _( "LDAP servers" );
atci->iconXpm = ldapxpm;
atci->maskXpm = ldapxpmmask;
atci->iconXpmOpen = ldapxpm;