Check-in [a6ba97bce0]
Overview
| Comment: | Let bookmarks channel use generic.load() to reapply scroll position y= after inserts. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a6ba97bce0ef5388e20fb2d0aaf1d207 |
| User & Date: | mario on 2015-04-22 20:49:26 |
| Other Links: | manifest | tags |
Context
|
2015-04-22
| ||
| 20:50 | Move DND insert_rows() into GenericChannel. Add load(y=) parameter to scroll back to previous position after insert_rows(). Reenable select_path("0") after reloading category list. (Fixes initial startup.) check-in: a5893e591c user: mario tags: trunk | |
| 20:49 | Let bookmarks channel use generic.load() to reapply scroll position y= after inserts. check-in: a6ba97bce0 user: mario tags: trunk | |
|
2015-04-21
| ||
| 22:07 | Remove old .ico workaround, as PIL2(Pillow) now integrates support. Leave the remaining code in shambles, and with excessive logging. Still needs a huge rewrite to optionalize Google reliance again. (The manual favicon fetching never worked, because the regexp is too crude for most sites; and URL joining is off too.) check-in: 743c60ff80 user: mario tags: trunk | |
Changes
Modified channels/bookmarks.py from [44aa6ec97b] to [4f1024300e].
| ︙ | ︙ | |||
108 109 110 111 112 113 114 |
self.streams["favourite"].append(row)
self.save()
self.load(self.default)
self.urls.append(row["url"])
# simplified gtk TreeStore display logic (just one category for the moment, always rebuilt)
| | | < | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
self.streams["favourite"].append(row)
self.save()
self.load(self.default)
self.urls.append(row["url"])
# simplified gtk TreeStore display logic (just one category for the moment, always rebuilt)
def load(self, category, force=False, y=None):
self.streams[category] = self.update_streams(category)
GenericChannel.load(self, category, force=False, y=y)
# add a categories[]/streams{} subcategory, update treeview
def add_category(self, cat, plugin=None):
if cat not in self.categories: # add category if missing
self.categories.append(cat)
self.display_categories()
|
| ︙ | ︙ |