gtk_clist_set_sort_column (?)



Hi,

I am kinda phreak'n out here, all I want to do is sort <n> column of my
clist I made.  It keeps on sorting column 0 (first column) no matter what
I do. Using gtk version 1.2.5.

Code snippet (trying to sort column 4 or any column minus 0):

   gtk_clist_set_sort_column(GTK_CLIST(main_clist), 3);
   gtk_clist_set_sort_type(GTK_CLIST(main_clist), GTK_SORT_ASCENDING);
   gtk_clist_set_compare_func(GTK_CLIST(main_clist), 
(GtkCListCompareFunc)MyStrcmp);
    gtk_clist_set_auto_sort(GTK_CLIST(main_clist), TRUE);

Did I miss/mess up something?

Paul




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]