Hello,

I have a small application that shows thumbnail-images in a gtk.IconView widget. The thumbnails are sortable on filename, file size and date. The sorting seems to work fine.

But the program crashes when I try to reload the thumbnails.

Here is a picture of the application.
http://bildr.no/view/595635
When I press the [Reload thumbnails] button 2'nd time, the program crashes with "Segmentation fault". No other error messages appear.

The crash happens at self.clear_display() function. It simply finds the model/ListStore and clears it.

model_sort = self.get_model()
model = model_sort.get_model()
model.clear()

Can you help me to spot the error.

The first version was un-sortable and it worked very well. But I really want to make it sortable.
Here is a complete test-code: http://www.futuredesktop.com/tmp/Test6.zip

My system is Ubuntu Linux 9.10, 64bit.
-----
Most kindly
 Moma Antero


_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to