Mercurial > pidgin
comparison finch/libgnt/pygnt/example/rss/gntrss.py @ 19948: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 | 2e41a68009ba |
children | 6829aa32b16c |
comparison
equal
deleted
inserted
replaced
19947:c45e06d1901c | 19948:184d2fbcb4f0 |
---|---|
58 self.title = item['title'].encode('utf8') | 58 self.title = item['title'].encode('utf8') |
59 self.summary = item['summary'].encode('utf8') | 59 self.summary = item['summary'].encode('utf8') |
60 self.link = item['link'] | 60 self.link = item['link'] |
61 self.parent = parent | 61 self.parent = parent |
62 self.unread = True | 62 self.unread = True |
63 | |
64 def __del__(self): | |
65 pass | |
63 | 66 |
64 def remove(self): | 67 def remove(self): |
65 self.emit('delete', self.parent) | 68 self.emit('delete', self.parent) |
66 if self.unread: | 69 if self.unread: |
67 self.parent.set_property('unread', self.parent.unread - 1) | 70 self.parent.set_property('unread', self.parent.unread - 1) |