Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2


Diff

Differences From Artifact [00795f8f6f]:

To Artifact [90a3b1d53c]:

  • Executable file st2.py — part of check-in [8a68105eeb] at 2015-05-18 22:19:42 on branch trunk — Delay window title updating logic and ui_cht callback via uikit.do() wrapper.

    Seems to fix both: - Gdk:ERROR:/build/buildd/gtk+2.0-2.24.23/gdk/gdkregion-generic.c:1114:miUnionNonO: assertion failed: (r->x1 < r->x2) - Error in `python': double free or corruption (fasttop): 0x0..... (user: mario, size: 21732) [annotate] [blame] [check-ins using]


240
241
242
243
244
245
246

247

248
249
250
251

252
253
254
255
256
257
258
259
240
241
242
243
244
245
246
247

248
249
250


251

252
253
254
255
256
257
258







+
-
+


-
-
+
-






        return self.channel_names[self.notebook_channels.get_current_page()]
    
        
    # Notebook tab has been clicked (receives numeric page_num), but *NOT* yet changed (visually).
    def channel_switch(self, notebook, page, page_num=0, *args):
        self.current_channel = notebook.get_menu_label_text(notebook.get_nth_page(page_num))
        log.UI("main.channel_switch() :=", self.current_channel)
        # update window title, call plugin (e.g. channel link in toolbar)
        self.update_title()
        uikit.do(self.update_title)
        # if first selected, load current category
        # (run in thread, to make it look speedy on first startup)
        self.thread( 
          self.channel().first_show
        self.thread(self.channel().first_show)
        )

    # Invoked from the menu instead, uses module name instead of numeric tab id
    def channel_switch_by_name(self, name):
        self.notebook_channels.set_current_page(self.channel_names.index(name))

    # Mirror selected channel tab into main window title
    def update_title(self, *x, **y):