random clist resort problem



Hi everyone,

hope this hasn't been covered yet, but I've looked through the list archives 
and haven't found anything.

I've got the following problem:

I have a clist. Its content is updated every three seconds without a clear.
Among others I have the button_press_event signal (?) connected to a function 
to check for right-clicks and double-clicks on the list.
I've set the list to autosort=false and have my own compare function set up.

Everthing works nicely, but sometimes the clist suddenly reverts to an 
'unsorted' order [*] when I click somewhere on the clist. It remains 
'unsorted' like this until the list is updated (and gtk_clist_sort called) 
the next time, ie. after a maximum of 3 seconds.

I'm not sure when this happens and the only way I can reproduce this is by 
randomly clicking somewhere on the clist (ca. 30-50x).

I don't have the slightest clue what the problem may be.

None of the other signal functions that I have hooked up are called in this 
case (apart from row_selected), neither is my sort function.

Also I've tried to do a gtk_clist_sort() after every click, but that doesn't 
solve the problem.

Any ideas what the problem may be?

Thanks a lot in advance
-Tim

[*] unsorted order meaning the same order in which I appended the rows to the 
clist.



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