streamtuner2: Check-in [fff90115ee]
Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2


Check-in [fff90115ee]

Overview
Comment:Simplify virtual dependencies with new pluginconf.dependency(add=) param
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fff90115eecec4a8f05f5515200a2afd6a989695
User & Date: mario on 2016-12-27 21:21:49
Other Links: manifest | tags
Context
2016-12-27
21:22
Fix a few typos. check-in: 0044d5a6c1 user: mario tags: trunk
21:21
Simplify virtual dependencies with new pluginconf.dependency(add=) param check-in: fff90115ee user: mario tags: trunk
21:21
set bitrate to integer 0 always ("n/a" won't work) check-in: 98ce646c0b user: Oliver tags: trunk
Changes

Modified contrib/theme_installer.py from [1a05b24e01] to [8ce5ac7b7d].

208
209
210
211
212
213
214
215
216
217
218
219
220
221
222

223
224
225
226
227
    # delete theme engine dll
    def clear_dll(self, dll):
        for fn in dll:
            os.remove(self.theme_dir + fn)

    # instantiate pluginconf.dependency()
    def deps(self, theme):
        d = pluginconf.dependency()
        d.have.update(dict([name, {"version": str(ver)}] for name,ver in [
            ("gtk", ".".join(str(i) for i in uikit.gtk.gtk_version)),
            ("gtk2", "2" if uikit.ver == 2 else "-1"),
            ("gtk3", "3" if uikit.ver == 3 else "-1"),
            ("linux", "-1" if conf.windows else "4.0.0"),
            ("win32", "6.1" if conf.windows else "-1")
        ]))

        #log.HAVE(dict((k,d.have[k].get("version")) for k in d.have))
        self.deps = d.depends
        return self.deps(theme)

    







|
<
|
|
|
|
|
<
>

<



208
209
210
211
212
213
214
215

216
217
218
219
220

221
222

223
224
225
    # delete theme engine dll
    def clear_dll(self, dll):
        for fn in dll:
            os.remove(self.theme_dir + fn)

    # instantiate pluginconf.dependency()
    def deps(self, theme):
        self.deps = pluginconf.dependency(add = dict(

            gtk = uikit.gtk.gtk_version,
            gtk2 = uikit.ver == 2,
            gtk3 = uikit.ver == 3,
            linux = "-1" if conf.windows else "3.0.0",
            win32 = "6.1" if conf.windows else "-1"

        )).depends
        #log.HAVE(dict((k,d.have[k].get("version")) for k in d.have))

        return self.deps(theme)