Skip to content

Commit

Permalink
Support for changed icon paths on Windows. Ref #139
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed May 11, 2015
1 parent 5391a30 commit 3bf3695
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@
os.path.join(src_path, theme, "index.theme"),
os.path.join(target_path, theme, "index.theme")
)

print "Copying even more icons"
shutil.copy(
os.path.join(build_dir, "icons/128x128/apps/syncthing-gtk.png"),
os.path.join(build_dir, "icons/syncthing-gtk.png")
)

print "Copying glib schemas"
if not os.path.exists(os.path.join(build_dir, "/share/glib-2.0/schemas")):
target_path = os.path.join(build_dir, "share/glib-2.0/schemas")
Expand Down
3 changes: 3 additions & 0 deletions scripts/syncthing-gtk-exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
windows.dont_use_localization_in_gtk()
windows.override_menu_borders()

from gi.repository import Gtk
Gtk.IconTheme.get_default().append_search_path(os.path.join(os.getcwd(), "icons"))

from syncthing_gtk import App
App(path, os.path.join(path, "icons")).run(sys.argv)

0 comments on commit 3bf3695

Please sign in to comment.