List/TreeStore and threads



Hi,

my application fills some TreeStrores and ListStores at runtime but the data is read from large files and the computation of some values takes time. Therefore I put a progress bar in a splash window and fill the store in another thread.
The TreeView fills oddly: once the lines do not fit anymore on the 
display, the scollbar is not updated. I tried to add 
gdk_threads_entrer() and gdk_threads_leave() before and after the calls 
to XXXStore::append() but it did not change anything.
First question: are the stores really thread unsafe? I tend to consider 
them as non-UI classes, so TreeView should be the one handling the 
thread-safety…
Second question: how do I make sure I do not mess up with the thread 
safety when filling my stores?
Thanks a lot,
yann


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