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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [9930020237]

Overview
Comment:Fix uikit.do spool appending with len(idle_tasks) instead of -1. Unpack window state treepath tuple conversion into 1:2:3 strings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 99300202370df03d1cecbfe0c5310b879ce46dcc
User & Date: mario on 2015-04-27 16:32:31
Other Links: manifest | tags
Context
2015-04-27
16:32
Readd `default`, and fix forgotten `favicon` import. check-in: fe2dfd27e1 user: mario tags: trunk
16:32
Fix uikit.do spool appending with len(idle_tasks) instead of -1. Unpack window state treepath tuple conversion into 1:2:3 strings. check-in: 9930020237 user: mario tags: trunk
2015-04-26
23:49
Document changes, fixes, new features in 2.1.7 check-in: 3cc9821dbb user: mario tags: trunk, 2.1.7
Changes

Modified uikit.py from [80c9deb8b2] to [33d6c42a98].

405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
    @staticmethod
    def do(callback, *args, **kwargs):
        name = inspect.getsource(callback).strip() if callback.__name__=='<lambda>' else str(callback)
        if kwargs.get("immediate"):
            del kwargs["immediate"]
            pos = 0
        else:
            pos = -1
        # Run callback right away
        if uikit.in_idle or conf.nothreads:
            log.UIKIT_RUN_NOW(name)
            callback(*args, **kwargs)
        # Spool them for Gtk idle handling
        else:
            log.UIKIT_SPOOL(name)







|







405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
    @staticmethod
    def do(callback, *args, **kwargs):
        name = inspect.getsource(callback).strip() if callback.__name__=='<lambda>' else str(callback)
        if kwargs.get("immediate"):
            del kwargs["immediate"]
            pos = 0
        else:
            pos = len(uikit.idle_tasks)
        # Run callback right away
        if uikit.in_idle or conf.nothreads:
            log.UIKIT_RUN_NOW(name)
            callback(*args, **kwargs)
        # Spool them for Gtk idle handling
        else:
            log.UIKIT_SPOOL(name)
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565

#-- Gtk3 wrappers

# Use a str of "1:2:3" as treepath,
# literally in Gtk2, TreePath-wrapped for Gtk3
def treepath(ls):
    if isinstance(ls, (list,tuple)):
        ls = ls[0]
    if ver==2:
        return str(ls)
    else:
        return gtk.TreePath.new_from_string(str(ls))
#
def treepath_to_str(tp):
    if ver==2:
        return tp
    else:







|

|







549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565

#-- Gtk3 wrappers

# Use a str of "1:2:3" as treepath,
# literally in Gtk2, TreePath-wrapped for Gtk3
def treepath(ls):
    if isinstance(ls, (list,tuple)):
        ls = ":".join(map(str, ls))
    if ver==2:
        return ls
    else:
        return gtk.TreePath.new_from_string(str(ls))
#
def treepath_to_str(tp):
    if ver==2:
        return tp
    else: