Don't show huge 512x512 menu icons OBS-URL: https://build.opensuse.org/request/show/623342 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/nautilus?expand=0&rev=293
53 lines
1.4 KiB
Diff
53 lines
1.4 KiB
Diff
--- nautilus-3.28.1/data/meson.build 2018-04-09 22:02:06.000000000 +0200
|
|
+++ nautilus-3.28.1/data/meson.build 2018-07-17 12:15:08.186902804 +0200
|
|
@@ -7,16 +7,28 @@
|
|
#
|
|
# https://gitlab.gnome.org/GNOME/nautilus/merge_requests/144
|
|
##########
|
|
+
|
|
+cp = find_program('cp')
|
|
+mkdir = find_program('mkdir')
|
|
+
|
|
foreach icon_size: ['16x16', '22x22', '24x24', '32x32', '48x48', '512x512']
|
|
- configure_file(
|
|
- command: [
|
|
- 'cp', '@INPUT@', '@OUTPUT@'
|
|
- ],
|
|
- input: files(
|
|
- join_paths('icons', 'hicolor', icon_size, 'apps', 'org.gnome.Nautilus.png')
|
|
- ),
|
|
- install_dir: join_paths(datadir, 'icons', 'hicolor', icon_size, 'apps'),
|
|
- output: '@0@.png'.format(application_id)
|
|
+ icon_path = join_paths('icons', 'hicolor', icon_size, 'apps')
|
|
+ output_icon_path = join_paths(meson.build_root(), 'data', icon_path)
|
|
+
|
|
+ run_command(
|
|
+ mkdir, [
|
|
+ '-p', output_icon_path
|
|
+ ]
|
|
+ )
|
|
+ run_command(
|
|
+ cp,
|
|
+ join_paths(icon_path, 'org.gnome.Nautilus.png'),
|
|
+ join_paths(output_icon_path, '@0@.png'.format(application_id))
|
|
+ )
|
|
+
|
|
+ install_subdir(
|
|
+ join_paths(meson.build_root(), 'data', 'icons'),
|
|
+ install_dir: datadir
|
|
)
|
|
endforeach
|
|
|
|
@@ -118,6 +130,11 @@
|
|
output: '@0@.search-provider.ini'.format(application_id)
|
|
)
|
|
|
|
+gnome.compile_schemas(
|
|
+ build_by_default: true,
|
|
+ depend_files: 'org.gnome.nautilus.gschema.xml'
|
|
+)
|
|
+
|
|
install_data(
|
|
'org.gnome.nautilus.gschema.xml',
|
|
install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
|