changeset 19707:44b070f6a3f8

Apparently, if the row-keys don't have a destructor function, things can go unpredictibly crashy.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 11 Sep 2007 07:10:52 +0000
parents 6d04b27c7f53
children 46ed3f3f780e
files finch/libgnt/pygnt/example/rss/gntrss.py finch/libgnt/pygnt/test.py
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/pygnt/example/rss/gntrss.py	Mon Sep 10 17:28:32 2007 +0000
+++ b/finch/libgnt/pygnt/example/rss/gntrss.py	Tue Sep 11 07:10:52 2007 +0000
@@ -61,6 +61,9 @@
         self.parent = parent
         self.unread = True
 
+    def __del__(self):
+        pass
+
     def remove(self):
         self.emit('delete', self.parent)
         if self.unread:
--- a/finch/libgnt/pygnt/test.py	Mon Sep 10 17:28:32 2007 +0000
+++ b/finch/libgnt/pygnt/test.py	Tue Sep 11 07:10:52 2007 +0000
@@ -16,6 +16,9 @@
         self.__gobject_init__()
         self.set_property(type, value)
 
+    def __del__(self):
+        pass
+
     def do_set_property(self, pspec, value):
         if pspec.name == 'string':
             self.string = value