[gnome-characters] build: Include app-specific icons in binary as resources



commit e9ca6a1e0c8f3e2e00d0f9e8b69285f24a7a7b66
Author: Daiki Ueno <dueno src gnome org>
Date:   Wed Aug 23 18:52:44 2017 +0200

    build: Include app-specific icons in binary as resources

 data/icons/Makefile.am                       |   15 ---------------
 data/org.gnome.Characters.data.gresource.xml |   17 +++++++++++++++++
 2 files changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
index 7f3738f..447712d 100644
--- a/data/icons/Makefile.am
+++ b/data/icons/Makefile.am
@@ -1,21 +1,6 @@
 icondir = $(datadir)/icons
 
 nobase_icon_DATA = \
-       hicolor/scalable/categories/characters-punctuation-symbolic.svg \
-       hicolor/scalable/categories/characters-arrow-symbolic.svg \
-       hicolor/scalable/categories/characters-bullet-symbolic.svg \
-       hicolor/scalable/categories/characters-picture-symbolic.svg \
-       hicolor/scalable/categories/characters-currency-symbolic.svg \
-       hicolor/scalable/categories/characters-math-symbolic.svg \
-       hicolor/scalable/categories/characters-latin-symbolic.svg \
-       hicolor/scalable/categories/characters-emoji-activities.svg \
-       hicolor/scalable/categories/characters-emoji-animals.svg \
-       hicolor/scalable/categories/characters-emoji-flags.svg \
-       hicolor/scalable/categories/characters-emoji-food.svg \
-       hicolor/scalable/categories/characters-emoji-objects.svg \
-       hicolor/scalable/categories/characters-emoji-smileys.svg \
-       hicolor/scalable/categories/characters-emoji-symbols.svg \
-       hicolor/scalable/categories/characters-emoji-travel.svg \
        hicolor/16x16/apps/gnome-characters.png \
        hicolor/22x22/apps/gnome-characters.png \
        hicolor/32x32/apps/gnome-characters.png \
diff --git a/data/org.gnome.Characters.data.gresource.xml b/data/org.gnome.Characters.data.gresource.xml
index 627866f..001be5d 100644
--- a/data/org.gnome.Characters.data.gresource.xml
+++ b/data/org.gnome.Characters.data.gresource.xml
@@ -9,4 +9,21 @@
     <file preprocess="xml-stripblanks">menu.ui</file>
     <file>application.css</file>
   </gresource>
+  <gresource prefix="/org/gnome/Characters/icons/scalable/categories">
+    <file 
alias="characters-arrow-symbolic.svg">icons/hicolor/scalable/categories/characters-arrow-symbolic.svg</file>
+    <file 
alias="characters-bullet-symbolic.svg">icons/hicolor/scalable/categories/characters-bullet-symbolic.svg</file>
+    <file 
alias="characters-currency-symbolic.svg">icons/hicolor/scalable/categories/characters-currency-symbolic.svg</file>
+    <file 
alias="characters-emoji-activities.svg">icons/hicolor/scalable/categories/characters-emoji-activities.svg</file>
+    <file 
alias="characters-emoji-animals.svg">icons/hicolor/scalable/categories/characters-emoji-animals.svg</file>
+    <file 
alias="characters-emoji-flags.svg">icons/hicolor/scalable/categories/characters-emoji-flags.svg</file>
+    <file 
alias="characters-emoji-food.svg">icons/hicolor/scalable/categories/characters-emoji-food.svg</file>
+    <file 
alias="characters-emoji-objects.svg">icons/hicolor/scalable/categories/characters-emoji-objects.svg</file>
+    <file 
alias="characters-emoji-smileys.svg">icons/hicolor/scalable/categories/characters-emoji-smileys.svg</file>
+    <file 
alias="characters-emoji-symbols.svg">icons/hicolor/scalable/categories/characters-emoji-symbols.svg</file>
+    <file 
alias="characters-emoji-travel.svg">icons/hicolor/scalable/categories/characters-emoji-travel.svg</file>
+    <file 
alias="characters-latin-symbolic.svg">icons/hicolor/scalable/categories/characters-latin-symbolic.svg</file>
+    <file 
alias="characters-math-symbolic.svg">icons/hicolor/scalable/categories/characters-math-symbolic.svg</file>
+    <file 
alias="characters-picture-symbolic.svg">icons/hicolor/scalable/categories/characters-picture-symbolic.svg</file>
+    <file 
alias="characters-punctuation-symbolic.svg">icons/hicolor/scalable/categories/characters-punctuation-symbolic.svg</file>
+  </gresource>
 </gresources>


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