Kaydet (Commit) b80c8cd2 authored tarafından Colomban Wendling's avatar Colomban Wendling

Fix custom icons on Windows

Install all icons on Windows, as well as a theme index because the
system doesn't have one and one is required.

Also install the theme index on non-Windows, although it shouldn't
be necessary because the system is likely to provide one.
üst e506a370
SUBDIRS = 16x16 24x24 32x32 48x48 scalable tango SUBDIRS = 16x16 24x24 32x32 48x48 scalable tango
EXTRA_DIST = geany.ico iconsdir = $(datadir)/icons/hicolor
dist_icons_DATA = index.theme
dist_noinst_DATA = geany.ico
gtk_update_icon_cache = gtk-update-icon-cache -f -t gtk_update_icon_cache = gtk-update-icon-cache -f -t
......
[Icon Theme]
Name=Hicolor
Comment=Fallback icon theme
Hidden=true
Directories=16x16/actions,16x16/apps,24x24/actions,24x24/apps,32x32/actions,32x32/apps,48x48/actions,48x48/apps,scalable/actions,scalable/apps
[16x16/actions]
Size=16
Context=Actions
Type=Threshold
[16x16/apps]
Size=16
Context=Applications
Type=Threshold
[24x24/actions]
Size=24
Context=Actions
Type=Threshold
[24x24/apps]
Size=24
Context=Applications
Type=Threshold
[32x32/actions]
Size=32
Context=Actions
Type=Threshold
[32x32/apps]
Size=32
Context=Applications
Type=Threshold
[48x48/actions]
Size=48
Context=Actions
Type=Threshold
[48x48/apps]
Size=48
Context=Applications
Type=Threshold
[scalable/actions]
MinSize=1
Size=128
MaxSize=256
Context=Actions
Type=Scalable
[scalable/apps]
MinSize=1
Size=128
MaxSize=256
Context=Applications
Type=Scalable
SUBDIRS = 16x16 24x24 32x32 48x48 scalable SUBDIRS = 16x16 24x24 32x32 48x48 scalable
iconsdir = $(datadir)/icons/Tango
dist_icons_DATA = index.theme
[Icon Theme]
Name=Tango
Comment=Tango Icon Theme
Inherits=gnome,crystalsvg
Directories=16x16/actions,24x24/actions,32x32/actions,48x48/actions,scalable/actions
[16x16/actions]
Size=16
Context=Actions
Type=Threshold
[24x24/actions]
Size=24
Context=Actions
Type=Threshold
[32x32/actions]
Size=32
Context=Actions
Type=Threshold
[48x48/actions]
Size=48
Context=Actions
Type=Threshold
[scalable/actions]
MinSize=1
Size=128
MaxSize=256
Context=Actions
Type=Scalable
...@@ -135,6 +135,7 @@ geany_sources = set([ ...@@ -135,6 +135,7 @@ geany_sources = set([
'src/ui_utils.c', 'src/utils.c']) 'src/ui_utils.c', 'src/utils.c'])
geany_icons = { geany_icons = {
'hicolor': ['index.theme'],
'hicolor/16x16/apps': ['16x16/classviewer-class.png', 'hicolor/16x16/apps': ['16x16/classviewer-class.png',
'16x16/classviewer-macro.png', '16x16/classviewer-macro.png',
'16x16/classviewer-member.png', '16x16/classviewer-member.png',
...@@ -161,6 +162,7 @@ geany_icons = { ...@@ -161,6 +162,7 @@ geany_icons = {
'hicolor/scalable/actions': ['scalable/geany-build.svg', 'hicolor/scalable/actions': ['scalable/geany-build.svg',
'scalable/geany-close-all.svg', 'scalable/geany-close-all.svg',
'scalable/geany-save-all.svg'], 'scalable/geany-save-all.svg'],
'Tango': ['tango/index.theme'],
'Tango/16x16/actions': ['tango/16x16/geany-save-all.png'], 'Tango/16x16/actions': ['tango/16x16/geany-save-all.png'],
'Tango/24x24/actions': ['tango/24x24/geany-save-all.png'], 'Tango/24x24/actions': ['tango/24x24/geany-save-all.png'],
'Tango/32x32/actions': ['tango/32x32/geany-save-all.png'], 'Tango/32x32/actions': ['tango/32x32/geany-save-all.png'],
...@@ -530,10 +532,7 @@ def build(bld): ...@@ -530,10 +532,7 @@ def build(bld):
bld.install_files(template_dest, start_dir.ant_glob('**/*'), cwd=start_dir, relative_trick=True) bld.install_files(template_dest, start_dir.ant_glob('**/*'), cwd=start_dir, relative_trick=True)
# Icons # Icons
for dest in geany_icons: for dest in geany_icons:
if is_win32 and dest != 'hicolor/16x16/apps': dest_dir = os.path.join('${PREFIX}/share/icons' if is_win32 else '${DATADIR}/icons', dest)
continue
dest_dir = '${PREFIX}/share/icons' if is_win32 else os.path.join('${DATADIR}/icons/', dest)
bld.install_files(dest_dir, geany_icons[dest], cwd=bld.path.find_dir('icons')) bld.install_files(dest_dir, geany_icons[dest], cwd=bld.path.find_dir('icons'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment