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.
This commit is contained in:
parent
e506a370e9
commit
b80c8cd2a9
@ -1,6 +1,9 @@
|
||||
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
|
||||
|
||||
|
60
icons/index.theme
Normal file
60
icons/index.theme
Normal file
@ -0,0 +1,60 @@
|
||||
[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
|
@ -1 +1,5 @@
|
||||
SUBDIRS = 16x16 24x24 32x32 48x48 scalable
|
||||
|
||||
iconsdir = $(datadir)/icons/Tango
|
||||
|
||||
dist_icons_DATA = index.theme
|
||||
|
33
icons/tango/index.theme
Normal file
33
icons/tango/index.theme
Normal file
@ -0,0 +1,33 @@
|
||||
[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
|
7
wscript
7
wscript
@ -135,6 +135,7 @@ geany_sources = set([
|
||||
'src/ui_utils.c', 'src/utils.c'])
|
||||
|
||||
geany_icons = {
|
||||
'hicolor': ['index.theme'],
|
||||
'hicolor/16x16/apps': ['16x16/classviewer-class.png',
|
||||
'16x16/classviewer-macro.png',
|
||||
'16x16/classviewer-member.png',
|
||||
@ -161,6 +162,7 @@ geany_icons = {
|
||||
'hicolor/scalable/actions': ['scalable/geany-build.svg',
|
||||
'scalable/geany-close-all.svg',
|
||||
'scalable/geany-save-all.svg'],
|
||||
'Tango': ['tango/index.theme'],
|
||||
'Tango/16x16/actions': ['tango/16x16/geany-save-all.png'],
|
||||
'Tango/24x24/actions': ['tango/24x24/geany-save-all.png'],
|
||||
'Tango/32x32/actions': ['tango/32x32/geany-save-all.png'],
|
||||
@ -530,10 +532,7 @@ def build(bld):
|
||||
bld.install_files(template_dest, start_dir.ant_glob('**/*'), cwd=start_dir, relative_trick=True)
|
||||
# Icons
|
||||
for dest in geany_icons:
|
||||
if is_win32 and dest != 'hicolor/16x16/apps':
|
||||
continue
|
||||
|
||||
dest_dir = '${PREFIX}/share/icons' if is_win32 else os.path.join('${DATADIR}/icons/', dest)
|
||||
dest_dir = os.path.join('${PREFIX}/share/icons' if is_win32 else '${DATADIR}/icons', dest)
|
||||
bld.install_files(dest_dir, geany_icons[dest], cwd=bld.path.find_dir('icons'))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user