Mercurial > pidgin.yaz
diff finch/libgnt/pygnt/example/rss/gntrss-ui.py @ 18727:778f4fc8cbcc
Parse HTML and show bold, italic etc. in the textview.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 30 Jul 2007 23:57:47 +0000 |
parents | 1aeda1e812a8 |
children | a03c8b79f39b |
line wrap: on
line diff
--- a/finch/libgnt/pygnt/example/rss/gntrss-ui.py Mon Jul 30 20:46:07 2007 +0000 +++ b/finch/libgnt/pygnt/example/rss/gntrss-ui.py Mon Jul 30 23:57:47 2007 +0000 @@ -36,6 +36,7 @@ """ import gntrss +import gnthtml import gnt import gobject import sys @@ -246,8 +247,8 @@ details.append_text_with_flags(str(item.link) + "\n", gnt.TEXT_FLAG_UNDERLINE) details.append_text_with_flags("Date: ", gnt.TEXT_FLAG_BOLD) details.append_text_with_flags(str(item.date) + "\n", gnt.TEXT_FLAG_NORMAL) - - details.append_text_with_flags("\n" + str(item.summary), gnt.TEXT_FLAG_NORMAL) + parser = gnthtml.GParser(details) + parser.parse(str(item.summary)) item.mark_unread(False) if old and old.unread: # If the last selected item is marked 'unread', then make sure it's bold