changeset 19903:184d2fbcb4f0

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:06:00 +0000
parents c45e06d1901c
children 6829aa32b16c
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	Fri Sep 07 06:06:15 2007 +0000
+++ b/finch/libgnt/pygnt/example/rss/gntrss.py	Tue Sep 11 07:06:00 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	Fri Sep 07 06:06:15 2007 +0000
+++ b/finch/libgnt/pygnt/test.py	Tue Sep 11 07:06:00 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