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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [d9dcff66f3]

Overview
Comment:Reimplement combobox.parse_options for builtin/unprocessed record_flags, also make quicksearch not expand vertically anymore for Gtk3.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d9dcff66f31dcc7338f7867bcab3854f39db4867
User & Date: mario on 2020-12-12 17:30:01
Other Links: manifest | tags
Context
2020-12-18
10:49
Limit spaces `# {0,3}` in plugin comment blocks before field: name check-in: da617b8b4f user: mario tags: trunk
2020-12-12
17:30
Reimplement combobox.parse_options for builtin/unprocessed record_flags, also make quicksearch not expand vertically anymore for Gtk3. check-in: d9dcff66f3 user: mario tags: trunk
15:12
Set normal_bg="", and let pygtk yield warnings again check-in: 74823cf40c user: mario tags: trunk
Changes

Modified dev/snapcraft.yaml from [25a3306342] to [8774260876].

77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
  # https://forum.snapcraft.io/t/simple-trick-to-reduce-size-and-startup-time-of-gnome-based-snaps/12006
  cleanup:
    after: [ python, st2, desktop-gtk2 ]
    plugin: nil
    build-snaps: [ gnome-3-28-1804 ]
    override-prime: |
      set -eux
      cd /snap/gnome-3-28-1804/current
      find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;
      #cd $SNAPCRAFT_PRIME/usr/lib/locale
      #find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;

apps:
  pyz:
    command: desktop-launch $SNAP/streamtuner2.pyz
    plugs:







|
|







77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
  # https://forum.snapcraft.io/t/simple-trick-to-reduce-size-and-startup-time-of-gnome-based-snaps/12006
  cleanup:
    after: [ python, st2, desktop-gtk2 ]
    plugin: nil
    build-snaps: [ gnome-3-28-1804 ]
    override-prime: |
      set -eux
      #cd /snap/gnome-3-28-1804/current
      #find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;
      #cd $SNAPCRAFT_PRIME/usr/lib/locale
      #find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;

apps:
  pyz:
    command: desktop-launch $SNAP/streamtuner2.pyz
    plugs:

Modified gtk3.xml.gz from [0a81e6200a] to [5a130a1ea9].

cannot compute difference between binary files

Modified st2.py from [9760f83ba6] to [f6ea5e77c0].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
# encoding: utf-8
# api: python
# type: application
# title: streamtuner2
# description: Directory browser for internet radio, audio and video streams
# version: 2.2.2-rc1
# state: stable
# author: Mario Salzer <mario@include-once.org>
# license: Public Domain
# url: http://freshcode.club/projects/streamtuner2
# config:  
#   { type: env, name: HTTP_PROXY, description: proxy for HTTP access }
#   { type: env, name: XDG_CONFIG_HOME, description: relocates user .config subdirectory }






|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
# encoding: utf-8
# api: python
# type: application
# title: streamtuner2
# description: Directory browser for internet radio, audio and video streams
# version: 2.2.2-py3.1
# state: stable
# author: Mario Salzer <mario@include-once.org>
# license: Public Domain
# url: http://freshcode.club/projects/streamtuner2
# config:  
#   { type: env, name: HTTP_PROXY, description: proxy for HTTP access }
#   { type: env, name: XDG_CONFIG_HOME, description: relocates user .config subdirectory }

Modified uikit.py from [7af8488fcd] to [41c79be167].

711
712
713
714
715
716
717

718
719
720
721
722
723
724
725
726
727
728
        self.add_attribute(cell, "text", 1)
        if no_scroll:
            self.connect("scroll_event", self.no_scroll)

        # collect entries
        self.ls = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING)
        self.set_model(self.ls)

        entries = entries.items()
        if type(entries[0]) is not tuple:
            entries = zip(entries, entries)
        for key,value in entries:
            self.ls.append([key, value])
        
    # activate dropdown of given value
    def set_default(self, value):
        for index,row in enumerate(self.ls):
            if value in row:
                return self.set_active(index)







>
|
|
|
|







711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
        self.add_attribute(cell, "text", 1)
        if no_scroll:
            self.connect("scroll_event", self.no_scroll)

        # collect entries
        self.ls = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING)
        self.set_model(self.ls)
        if isinstance(entries, str):
            entries = ComboBoxText.parse_options(entries)
        if isinstance(entries, list):
            entries = dict(zip(entries, entries))
        for key,value in entries.items():
            self.ls.append([key, value])
        
    # activate dropdown of given value
    def set_default(self, value):
        for index,row in enumerate(self.ls):
            if value in row:
                return self.set_active(index)