# HG changeset patch # User Sadrul Habib Chowdhury # Date 1186805835 0 # Node ID 2e41a68009ba0b5aee70191b7af05451c38ebd64 # Parent 6f2e068cf6297a9cc8de782e12d2d9a2ebe5122b Fix a few small bugs in the example code. diff -r 6f2e068cf629 -r 2e41a68009ba finch/libgnt/pygnt/example/rss/gntrss-ui.py --- a/finch/libgnt/pygnt/example/rss/gntrss-ui.py Sat Aug 11 04:15:11 2007 +0000 +++ b/finch/libgnt/pygnt/example/rss/gntrss-ui.py Sat Aug 11 04:17:15 2007 +0000 @@ -73,6 +73,7 @@ if first: self.set_active(first) self.set_selected(first) + return True def __init__(self): self.active = None diff -r 6f2e068cf629 -r 2e41a68009ba finch/libgnt/pygnt/example/rss/gntrss.py --- a/finch/libgnt/pygnt/example/rss/gntrss.py Sat Aug 11 04:15:11 2007 +0000 +++ b/finch/libgnt/pygnt/example/rss/gntrss.py Sat Aug 11 04:17:15 2007 +0000 @@ -55,8 +55,7 @@ item['date'] = self.date = time.ctime() self.date_parsed = feedparser._parse_date(self.date) - self.title = item['title'] - sum = item['summary'] + self.title = item['title'].encode('utf8') self.summary = item['summary'].encode('utf8') self.link = item['link'] self.parent = parent @@ -79,7 +78,7 @@ gobject.type_register(FeedItem) def item_hash(item): - return str(item['date'] + item['title']) + return str(item['title']) """ The Feed class. It will update the 'link', 'title', 'desc' and 'items' @@ -171,6 +170,7 @@ self.set_property('unread', unread) for hv in tmp: + self.items.remove(tmp[hv]) tmp[hv].remove() "Also notify the UI about the count change"