Check-in [99ee6c4ef4]
Overview
Comment: | Make .current a dynamic property for debugging. Skip load() update for category==None calls (doesn't happen with previous appstate). Undo default category setting. Now main.appstate_init values are used again. Don't position category liststore selection to #0. Enable "Format" station column. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
99ee6c4ef409ad7482b9455601636925 |
User & Date: | mario on 2015-04-17 21:13:26 |
Other Links: | manifest | tags |
Context
2015-04-17
| ||
21:14 | Remove remnant module .title/etc attributes, and .current category overwriting. check-in: a7b0cd39a2 user: mario tags: trunk | |
21:13 | Make .current a dynamic property for debugging. Skip load() update for category==None calls (doesn't happen with previous appstate). Undo default category setting. Now main.appstate_init values are used again. Don't position category liststore selection to #0. Enable "Format" station column. check-in: 99ee6c4ef4 user: mario tags: trunk | |
21:09 | Simplify appliation state restore. Don't override old .shown status / liststore position should be handled by GenericChannel. Suppress TreeView errors when clicking on empty station list area. check-in: 2687258c8c user: mario tags: trunk | |
Changes
Modified channels/__init__.py from [ac1734feec] to [9a39b12b72].
︙ | |||
46 47 48 49 50 51 52 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | - + - - - - + - - - - + + + + - - - - - - + + + + + + - + + + + + + + + + + | ] # generic channel module --------------------------------------- class GenericChannel(object): |
︙ | |||
227 228 229 230 231 232 233 234 235 | 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | + + + + + - + | row[0] = title # switch stream category, # load data, # update treeview content def load(self, category, force=False): # called to early if not category: print "load(None)" return # get data from cache or download |
︙ | |||
405 406 407 408 409 410 411 | 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 | - - + + + - - - - - + + + + + | self.reload_categories() except: __print__(dbg.ERR, "HTTP error or extraction failure.") self.categories = ["empty"] self.display_categories() # Select first category |
︙ | |||
461 462 463 464 465 466 467 | 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 | - + | uikit.tree(self.gtk_cat, self.categories, title="Category", icon=gtk.STOCK_OPEN); # if it's a short list of categories, there's probably subfolders if len(self.categories) < 20: self.gtk_cat.expand_all() # select any first element |
︙ |