| 156 details.append_text_with_flags(str(item.title) + "\n", gnt.TEXT_FLAG_BOLD) |
156 details.append_text_with_flags(str(item.title) + "\n", gnt.TEXT_FLAG_BOLD) |
| 157 details.append_text_with_flags(str(item.summary), gnt.TEXT_FLAG_NORMAL) |
157 details.append_text_with_flags(str(item.summary), gnt.TEXT_FLAG_NORMAL) |
| 158 details.scroll(0) |
158 details.scroll(0) |
| 159 if item.unread: |
159 if item.unread: |
| 160 item.set_property('unread', False) |
160 item.set_property('unread', False) |
| 161 win.give_focus_to_child(browser) |
|
| 162 |
161 |
| 163 # |
162 # |
| 164 # Look for action keys in the feed-item list. |
163 # Look for action keys in the feed-item list. |
| 165 def item_key_pressed(tree, text): |
164 def item_key_pressed(tree, text): |
| 166 current = tree.get_selection_data() |
165 current = tree.get_selection_data() |
| 194 box.add_widget(feeds) |
193 box.add_widget(feeds) |
| 195 box.add_widget(items) |
194 box.add_widget(items) |
| 196 |
195 |
| 197 win.add_widget(box) |
196 win.add_widget(box) |
| 198 |
197 |
| 199 win.add_widget(gnt.Line(vertical = False)) |
198 line = gnt.Line(vertical = False) |
| |
199 win.add_widget(line) |
| 200 |
200 |
| 201 # The textview to show the details of a feed |
201 # The textview to show the details of a feed |
| 202 details = gnt.TextView() |
202 details = gnt.TextView() |
| 203 |
203 |
| 204 win.add_widget(details) |
204 win.add_widget(details) |