<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I have a small application that shows thumbnail-images in a
gtk.IconView widget. <br>
The thumbnails are sortable on filename, file size and date. The
sorting seems to work fine.<br>
<br>
But the program crashes when I try to reload the thumbnails.<br>
<br>
Here is a picture of the application. <br>
<a class="moz-txt-link-freetext" href="http://bildr.no/view/595635">http://bildr.no/view/595635</a><br>
When I press the [Reload thumbnails] button 2'nd time, the program
crashes with "Segmentation fault". <br>
No other error messages appear.<br>
<br>
The crash happens at self.clear_display() function. It simply finds the
model/ListStore and clears it.<br>
<br>
model_sort = self.get_model()<br>
model = model_sort.get_model()<br>
model.clear()<br>
<br>
Can you help me to spot the error.<br>
<br>
The first version was un-sortable and it worked very well. But I really
want to make it sortable.<br>
Here is a complete test-code:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<a href="http://www.futuredesktop.com/tmp/Test6.zip">http://www.futuredesktop.com/tmp/Test6.zip</a><br>
<br>
My system is Ubuntu Linux 9.10, 64bit.<br>
-----<br>
Most kindly<br>
Moma Antero<br>
<br>
<br>
</body>
</html>