[gtk/gtk-3-24-meson: 56/95] meson: widget-factory: install icons



commit dbf7e1d23b66e5c7d91e6be28ce220146402546d
Author: Christoph Reiter <creiter src gnome org>
Date:   Fri Mar 29 20:37:29 2019 +0100

    meson: widget-factory: install icons

 demos/widget-factory/meson.build | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/demos/widget-factory/meson.build b/demos/widget-factory/meson.build
index 184a8abbb4..9ce9cc2213 100644
--- a/demos/widget-factory/meson.build
+++ b/demos/widget-factory/meson.build
@@ -9,6 +9,13 @@ widgetfactory_resources = gnome.compile_resources(
   source_dir: '.'
 )
 
+foreach s: [ '16', '22', '24', '32', '48', '256']
+  icon_destdir = join_paths(gtk_datadir, 'icons', 'hicolor', '@0@x@0@'.format(s), 'apps')
+  icons = [join_paths('data', '@0@x@0@'.format(s), 'gtk3-widget-factory.png'),
+           join_paths('data', '@0@x@0@'.format(s), 'gtk3-widget-factory-symbolic.symbolic.png')]
+  install_data(icons, install_dir: icon_destdir)
+endforeach
+
 widget_factory = executable(
   'gtk3-widget-factory',
   widgetfactory_sources,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]