Check-in [c068cc2c89]
Overview
| Comment: | Bump version |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
c068cc2c894fbf84db4db67476695f3a |
| User & Date: | Oliver on 2016-12-19 20:16:33 |
| Other Links: | manifest | tags |
Context
|
2016-12-19
| ||
| 20:17 | New plugin: rcast check-in: 40eb70e68c user: mario tags: trunk | |
| 20:16 | Bump version check-in: c068cc2c89 user: Oliver tags: trunk | |
|
2016-12-18
| ||
| 20:34 | Minor fixes to Win installer/uninstall, regarding background color, and streamripper detection. check-in: fb1512484e user: Oliver tags: trunk | |
Changes
Modified contrib/theme_installer.py from [c01fa877e8] to [eee586dd62].
1 2 3 4 5 6 | # encoding: UTF-8 # api: streamtuner2 # title: Gtk2 theme installer # description: Shows themes in the bookmarks pane for installation # type: feature # category: ui | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # encoding: UTF-8 # api: streamtuner2 # title: Gtk2 theme installer # description: Shows themes in the bookmarks pane for installation # type: feature # category: ui # version: 0.4 # priority: experimental # # Downloads a list of Gtk themes and presents it in the bookmarks # tab under... »themes«. Double clicking will download and install # a theme right away. # # Note that this is primarily meant for Windows, as it unpacks |
| ︙ | ︙ | |||
156 157 158 159 160 161 162 163 164 |
zip = self.theme_dir + os.path.basename(row["url"])
#if not os.path.exists(zip):
with open(zip, "wb") as f:
f.write(ahttp.get(row["url"], binary=True))
# extract
z = zipfile.ZipFile(zip)
z.extractall(self.theme_dir)
z.close()
os.remove(zip)
| > < | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
zip = self.theme_dir + os.path.basename(row["url"])
#if not os.path.exists(zip):
with open(zip, "wb") as f:
f.write(ahttp.get(row["url"], binary=True))
# extract
z = zipfile.ZipFile(zip)
z.extractall(self.theme_dir)
ls = z.namelist()
z.close()
os.remove(zip)
dll = [fn for fn in ls if re.search("\w+\.(dll|so)$", fn)]
base = [m.group(1) for fn in ls for m in [re.match("^([\w\s\-\.]+)/gtk-2.0/.+", fn)] if m]
# move *.dll / *.so
for gtk_dir in uikit.gtk.rc_get_module_dir().split(";" if conf.windows else ":"):
if os.path.exists(gtk_dir) and os.access(gtk_dir, os.W_OK):
for fn in dll:
|
| ︙ | ︙ |