Compare commits
No commits in common. "83373c4b4167a7fae778e114a49b0def4934bd3c" and "e45d85efa5179616136c8835e4d86c149f7da9c4" have entirely different histories.
83373c4b41
...
e45d85efa5
2 changed files with 0 additions and 28 deletions
|
|
@ -1,12 +0,0 @@
|
|||
# Pause hands this folder to the top-bar extension as IconThemePath, and the
|
||||
# extension searches ONLY here, so it needs its own index to find the icons.
|
||||
[Icon Theme]
|
||||
Name=Hicolor
|
||||
Comment=Pause's top-bar icons
|
||||
Directories=symbolic/apps
|
||||
|
||||
[symbolic/apps]
|
||||
Size=16
|
||||
MinSize=8
|
||||
MaxSize=512
|
||||
Type=Scalable
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
import configparser
|
||||
import unittest
|
||||
|
||||
from gi.repository import Gio, GLib
|
||||
|
||||
from pause.app import ICON_DIR
|
||||
from pause.tray import MENU_PATH, ITEM_PATH, WATCHER, MenuItem, Tray, separator
|
||||
|
||||
WATCHER_XML = Gio.DBusNodeInfo.new_for_xml(f"""
|
||||
|
|
@ -126,19 +124,5 @@ class TrayTest(unittest.TestCase):
|
|||
self.assertEqual(sorted(signals), ["LayoutUpdated", "NewToolTip"])
|
||||
|
||||
|
||||
class IconDirTest(unittest.TestCase):
|
||||
def test_icons_findable_from_icon_theme_path_alone(self):
|
||||
# The AppIndicator extension searches *only* IconThemePath, not the
|
||||
# system icon dirs, so the theme there needs its own index.theme
|
||||
# listing every folder an icon lives in.
|
||||
index = configparser.ConfigParser()
|
||||
self.assertTrue(index.read(ICON_DIR / "hicolor" / "index.theme"))
|
||||
listed = index["Icon Theme"]["Directories"].split(",")
|
||||
for name in ("net.reudy.Pause-symbolic", "net.reudy.Pause-off-symbolic"):
|
||||
found = list((ICON_DIR / "hicolor").glob(f"*/*/{name}.svg"))
|
||||
self.assertEqual(len(found), 1, name)
|
||||
self.assertIn(str(found[0].parent.relative_to(ICON_DIR / "hicolor")), listed)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue