[gnome-characters/wip/jimmac/app-icon-redesign: 10/10] icon: update app icon



commit e05b9321aa2cfe2f0ca14899e8ed4576d1092145
Author: Jakub Steiner <jimmac gmail com>
Date:   Mon Jul 23 16:32:34 2018 +0200

    icon: update app icon
    
    - GNOME 3.30 redesign of app icons.
      See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
      for more info.
    
    /label ~"9. Initiative: AppIconRedesign"

 data/icons/hicolor/16x16/apps/gnome-characters.png |  Bin 650 -> 0 bytes
 data/icons/hicolor/22x22/apps/gnome-characters.png |  Bin 939 -> 0 bytes
 data/icons/hicolor/24x24/apps/gnome-characters.png |  Bin 981 -> 0 bytes
 .../hicolor/256x256/apps/gnome-characters.png      |  Bin 42032 -> 0 bytes
 data/icons/hicolor/32x32/apps/gnome-characters.png |  Bin 2076 -> 0 bytes
 data/icons/hicolor/48x48/apps/gnome-characters.png |  Bin 3836 -> 0 bytes
 .../hicolor/512x512/apps/gnome-characters.png      |  Bin 154918 -> 0 bytes
 data/icons/hicolor/gnome-characters.svg            | 1179 --------------------
 .../hicolor/scalable/apps/org.gnome.Characters.svg |  259 +++++
 ...bolic.svg => org.gnome.Characters-symbolic.svg} |    0
 data/icons/meson.build                             |   20 +-
 data/meson.build                                   |    1 +
 data/org.gnome.Characters.desktop.in               |    2 +-
 meson.build                                        |    2 +-
 src/org.gnome.Characters.BackgroundService.in      |    1 +
 src/searchProvider.js                              |    3 +-
 src/service.js                                     |    2 +
 src/window.js                                      |    2 +-
 18 files changed, 283 insertions(+), 1188 deletions(-)
---
diff --git a/data/icons/hicolor/scalable/apps/org.gnome.Characters.svg 
b/data/icons/hicolor/scalable/apps/org.gnome.Characters.svg
new file mode 100644
index 0000000..7b494df
--- /dev/null
+++ b/data/icons/hicolor/scalable/apps/org.gnome.Characters.svg
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   viewBox="0 0 128 128"
+   style="display:inline;enable-background:new"
+   version="1.0"
+   id="svg11300"
+   height="128"
+   width="128">
+  <title
+     id="title4162">Adwaita Icon Template</title>
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient1115">
+      <stop
+         style="stop-color:#d5d3cf;stop-opacity:1"
+         offset="0"
+         id="stop1103" />
+      <stop
+         id="stop1105"
+         offset="0.03846154"
+         style="stop-color:#e3e2df;stop-opacity:1" />
+      <stop
+         id="stop1107"
+         offset="0.07692308"
+         style="stop-color:#c0bfbc;stop-opacity:1" />
+      <stop
+         id="stop1109"
+         offset="0.92307693"
+         style="stop-color:#c0bfbc;stop-opacity:1" />
+      <stop
+         id="stop1111"
+         offset="0.96153843"
+         style="stop-color:#e3e2df;stop-opacity:1" />
+      <stop
+         style="stop-color:#d5d3cf;stop-opacity:1"
+         offset="1"
+         id="stop1113" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient6058">
+      <stop
+         id="stop6054"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1" />
+      <stop
+         id="stop6056"
+         offset="1"
+         style="stop-color:#f6f5f4;stop-opacity:1" />
+    </linearGradient>
+    <linearGradient
+       gradientTransform="matrix(0,6,-12,0,-64,209.99687)"
+       gradientUnits="userSpaceOnUse"
+       x2="1"
+       id="paint3_linear-2-6-5">
+      <stop
+         id="stop91-0-7-4"
+         stop-color="#C01C27" />
+      <stop
+         id="stop93-2-5-7"
+         stop-color="#E01B24"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       y2="234.00014"
+       x2="-60.000004"
+       y1="234.00014"
+       x1="43.843597"
+       gradientTransform="matrix(1.0015061,0,0,0.99993452,72.09037,56.015192)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1097"
+       xlink:href="#linearGradient1115" />
+    <radialGradient
+       r="24"
+       fy="225.59558"
+       fx="-24.238829"
+       cy="225.59558"
+       cx="-24.238829"
+       gradientTransform="matrix(1.757743,-9.5621778e-8,3.7652438e-8,1.9495846,106.60563,-336.54495)"
+       gradientUnits="userSpaceOnUse"
+       id="radialGradient1099"
+       xlink:href="#linearGradient6058" />
+    <linearGradient
+       x2="1"
+       gradientTransform="matrix(0,6,-12,0,-264,209.99687)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient1383"
+       xlink:href="#paint3_linear-2-6-5" />
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>GNOME Design Team</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/"; />
+        <dc:title>Adwaita Icon Template</dc:title>
+        <dc:subject>
+          <rdf:Bag />
+        </dc:subject>
+        <dc:date />
+        <dc:rights>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:rights>
+        <dc:publisher>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:publisher>
+        <dc:identifier />
+        <dc:relation />
+        <dc:language />
+        <dc:coverage />
+        <dc:description />
+        <dc:contributor>
+          <cc:Agent>
+            <dc:title />
+          </cc:Agent>
+        </dc:contributor>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/4.0/";>
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction"; />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution"; />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Notice"; />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#Attribution"; />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks"; />
+        <cc:requires
+           rdf:resource="http://creativecommons.org/ns#ShareAlike"; />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(0,-172)"
+     style="display:inline"
+     id="layer1">
+    <g
+       style="display:inline"
+       id="layer9" />
+    <rect
+       y="240"
+       x="12"
+       
style="display:inline;fill:url(#linearGradient1097);fill-opacity:1;stroke-width:1;enable-background:new"
+       width="104"
+       height="48"
+       rx="8"
+       id="rect1091"
+       ry="8" />
+    <path
+       id="rect1093"
+       transform="translate(0,172)"
+       d="m 20,10 c -4.432,0 -8,3.568 -8,8 v 84 c 0,4.432 3.568,8 8,8 h 88 c 4.432,0 8,-3.568 8,-8 V 18 c 
0,-4.432 -3.568,-8 -8,-8 H 66 v 2 h -4 v -2 z"
+       
style="display:inline;fill:url(#radialGradient1099);fill-opacity:1;stroke-width:1.6841507;enable-background:new"
 />
+    <g
+       transform="translate(359.92783,-1.99687)"
+       style="display:inline;enable-background:new"
+       id="g1381">
+      <rect
+         ry="13.072174"
+         id="rect1371"
+         rx="13.072174"
+         height="28"
+         width="28"
+         style="display:inline;fill:#f5c211;enable-background:new"
+         x="-283.92783"
+         y="193.99687" />
+      <path
+         id="path1373"
+         d="m -276,211 h 12 v 0.99687 c 0,2.20914 -1.7909,4 -4,4 h -4 c -2.20914,0 -4,-1.79086 -4,-4 z"
+         style="display:inline;fill:url(#linearGradient1383);enable-background:new" />
+      <rect
+         id="rect1375"
+         height="2"
+         width="12"
+         style="display:inline;fill:#ffffff;enable-background:new"
+         x="-276"
+         y="209.99687" />
+      <path
+         id="path1377"
+         d="m -276,204.99687 c 0,-0.55229 0.44772,-1 1,-1 0.55228,0 1,0.44771 1,1 v 3 h -2 z"
+         style="display:inline;fill:#b45600;enable-background:new" />
+      <path
+         id="path1379"
+         d="m -266,204.99687 c 0,-0.55229 0.44772,-1 1,-1 0.55228,0 1,0.44771 1,1 v 3 h -2 z"
+         style="display:inline;fill:#b45600;enable-background:new" />
+    </g>
+    <g
+       transform="translate(360,-2)"
+       style="display:inline;enable-background:new"
+       id="g1387">
+      <path
+         
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#62a0ea;fill-opacity:1;fill-rule:nonzero;stroke:none;strok
 e-width:
 
4;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:new"
+         d="m 26,20 v 17 c 0,0 0.123719,2.819005 -2.894531,4.328125 l 1.789062,3.576172 C 
29.876281,42.413417 30,37 30,37 v -1 h 12 v 2 c 0,0 -0.0278,1.167429 -0.470703,2.230469 C 41.086357,41.293509 
40.7,42 39,42 h -1 l -2,4 h 2 1 c 3.3,0 5.413643,-2.293509 6.220703,-4.230469 C 46.027773,39.832571 46,38 
46,38 V 20 Z m 4,4 h 12 v 2 H 30 Z m 0,6 h 12 v 2 H 30 Z"
+         transform="translate(-358,176)"
+         id="path1385" />
+    </g>
+    <g
+       transform="translate(386,-2)"
+       style="display:inline;enable-background:new"
+       id="g1393">
+      <path
+         
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#26a269;fill-opacity:1;fill-rule:nonzero;stroke:none;strok
 e-width:
 
4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:new"
+         d="m 60,78 a 2,2 0 0 0 -2,2 2,2 0 0 0 2,2 2,2 0 0 0 2,-2 2,2 0 0 0 -2,-2 z m -4,6 a 2,2 0 0 0 -2,2 
2,2 0 0 0 2,2 2,2 0 0 0 2,-2 2,2 0 0 0 -2,-2 z m 8,0 a 2,2 0 0 0 -2,2 2,2 0 0 0 2,2 2,2 0 0 0 2,-2 2,2 0 0 0 
-2,-2 z m 6,6 -4,2 v 4 h -4 v -2 -2 l -4,2 v 2 L 50,95.998 50.07227,100 c -0.001,1.12729 -0.87241,1.99805 
-2,1.99805 -1.12827,0 -2,-0.87174 -2,-2.000003 h -4 c 0,3.290023 2.70998,6.000003 6,6.000003 3.29001,0 
6,-2.70998 6,-6.000003 L 70,100 Z m -15.927734,3.996094 -4,2 h 4 z"
+         transform="translate(-352,168)"
+         id="path1389" />
+      <path
+         id="path1391"
+         d="m -309.92783,267.99687 4,-2 v 2 z"
+         style="display:inline;fill:#26a269;enable-background:new" />
+    </g>
+    <path
+       
style="fill:none;fill-rule:evenodd;stroke:#deddda;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 12,232 H 116"
+       id="path1397" />
+    <text
+       id="text1410"
+       y="345"
+       x="63"
+       
style="font-style:normal;font-weight:normal;font-size:40px;line-height:1000%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       xml:space="preserve"><tspan
+         y="555.39062"
+         x="63"
+         id="tspan1408" /></text>
+    <path
+       id="path1458"
+       d="M 12,231 H 116"
+       
style="fill:none;fill-rule:evenodd;stroke:#c0bfbc;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
 />
+    <path
+       id="path1395"
+       d="M 64,184 V 284"
+       
style="fill:none;fill-rule:evenodd;stroke:#deddda;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
 />
+    <path
+       d="m 36.160749,256.15236 q 0,-1.12461 -0.369271,-1.94707 -0.369269,-0.83925 -0.973531,-1.40995 
-0.234991,-0.23498 -0.503551,-0.4364 -0.402842,-0.30214 -0.57069,-0.46998 -0.671401,-0.63783 
-1.007103,-1.47709 -0.3357,-0.83925 -0.3357,-1.77921 0,-0.97353 0.352486,-1.796 0.352485,-0.82246 
0.990317,-1.46029 0.53712,-0.53712 1.510651,-1.0071 Q 36.026469,244 36.983215,244 q 0.956746,0 
1.762427,0.36927 0.906391,0.40284 1.510653,1.0071 0.63783,0.63783 0.990316,1.46029 0.352485,0.82247 
0.352485,1.796 0,1.02389 -0.352485,1.82957 -0.352486,0.7889 -0.990316,1.42673 -0.167851,0.16784 
-0.604262,0.46998 -0.134278,0.10067 -0.46998,0.4364 -0.688186,0.67141 -1.023887,1.49388 -0.318914,0.80569 
-0.318914,1.86314 1.141381,0 1.980631,-0.38607 0.856036,-0.40283 1.409942,-0.95675 0.218207,-0.21819 
0.419627,-0.48675 0.30213,-0.41963 0.469981,-0.58749 0.654615,-0.6546 1.493866,-0.9903 0.839251,-0.35249 
1.779213,-0.35249 0.97353,0 1.795998,0.35249 0.822465,0.35248 1.460296,0.9903 0.604262,0.6042
 7 1.0071
 01,1.51067 0.352486,0.78889 0.352486,1.74564 0,0.95675 -0.352486,1.74564 -0.402839,0.90638 -1.007101,1.51065 
-0.637831,0.63783 -1.460296,0.99031 -0.822468,0.35249 -1.795998,0.35249 -0.939962,0 -1.779213,-0.33572 
-0.839251,-0.35246 -1.493866,-1.00708 -0.167851,-0.16785 -0.469981,-0.58748 -0.20142,-0.26856 
-0.419627,-0.48677 -0.688185,-0.65461 -1.510651,-0.99031 -0.805682,-0.35248 -1.879922,-0.35248 0,1.14136 
0.386055,1.99742 0.40284,0.83924 0.956746,1.39314 0.218205,0.21822 0.486766,0.41964 0.419625,0.30213 
0.587476,0.46998 0.654615,0.65462 0.990316,1.49386 0.352485,0.83925 0.352485,1.77922 0,0.97352 
-0.352485,1.79599 -0.352486,0.82247 -0.990316,1.46029 -0.604262,0.60428 -1.510653,1.00711 Q 37.956746,270 
37,270 q -0.956746,0 -1.745643,-0.35249 -0.90639,-0.40283 -1.510651,-1.00711 -0.637832,-0.63782 
-0.990317,-1.46029 -0.352486,-0.82247 -0.352486,-1.79599 0,-0.93997 0.3357,-1.77922 0.352486,-0.83924 
1.007103,-1.49386 0.167848,-0.16785 0.587475,-0.46998 0.26856,-0.20142 0.48676
 6,-0.419
 64 0.654616,-0.68818 0.990317,-1.49385 0.352485,-0.82248 0.352485,-1.89671 -1.057456,0 -1.896707,0.35248 
-0.822468,0.3357 -1.477083,0.99031 -0.234991,0.23499 -0.436411,0.50355 -0.302131,0.40285 -0.46998,0.5707 
-0.637831,0.6714 -1.477082,1.00708 -0.839251,0.33572 -1.779213,0.33572 -0.973531,0 -1.795997,-0.35249 
-0.822466,-0.35248 -1.460298,-0.99031 -0.553906,-0.53712 -1.007101,-1.51065 -0.36927,-0.77211 
-0.36927,-1.72886 0,-0.95675 0.36927,-1.76242 0.402841,-0.9064 1.007101,-1.51067 0.637832,-0.63782 
1.460298,-0.9903 0.822466,-0.35249 1.795997,-0.35249 1.023886,0 1.812784,0.35249 0.80568,0.35248 
1.443511,0.9903 0.167849,0.16786 0.46998,0.60427 0.100713,0.13428 0.436411,0.46997 0.671401,0.6714 
1.493867,1.00711 0.822467,0.33571 1.879923,0.33571 z"
+       
style="font-style:normal;font-weight:normal;font-size:medium;line-height:1000%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#a347ba;fill-opacity:1;stroke:none;stroke-width:0.85939318px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       id="path1476" />
+  </g>
+</svg>
diff --git a/data/icons/hicolor/symbolic/apps/gnome-characters-symbolic.svg 
b/data/icons/hicolor/symbolic/apps/org.gnome.Characters-symbolic.svg
similarity index 100%
rename from data/icons/hicolor/symbolic/apps/gnome-characters-symbolic.svg
rename to data/icons/hicolor/symbolic/apps/org.gnome.Characters-symbolic.svg
diff --git a/data/icons/meson.build b/data/icons/meson.build
index 0191a4c..8161cf2 100644
--- a/data/icons/meson.build
+++ b/data/icons/meson.build
@@ -1,6 +1,16 @@
-install_subdir(
-  'hicolor',
-  exclude_files: 'gnome-characters.svg',
-  exclude_directories: ['scalable', '24x24', '512x512'],
-  install_dir: join_paths(characters_datadir, 'icons')
+icons_dir = join_paths(characters_datadir, 'icons')
+
+scalable_path = join_paths('hicolor', 'scalable', 'apps')
+symbolic_path = join_paths('hicolor', 'symbolic', 'apps')
+
+install_data(
+  join_paths(scalable_path, 'org.gnome.Characters.svg'),
+  install_dir: join_paths(icons_dir, scalable_path),
+  rename: '@0@.svg'.format(characters_application_id)
 )
+
+install_data(
+  join_paths(symbolic_path, 'org.gnome.Characters-symbolic.svg'),
+  install_dir: join_paths(icons_dir, symbolic_path),
+  rename: '@0 -symbolic svg'.format(characters_application_id)
+)
\ No newline at end of file
diff --git a/data/meson.build b/data/meson.build
index bdb847f..cf25171 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -43,6 +43,7 @@ foreach resource: resources
 endforeach
 
 desktop_conf = configuration_data ()
+desktop_conf.set('appid', characters_application_id)
 desktop_conf.set('bindir', characters_bindir)
 
 i18n.merge_file(
diff --git a/data/org.gnome.Characters.desktop.in b/data/org.gnome.Characters.desktop.in
index c533b86..6d00924 100644
--- a/data/org.gnome.Characters.desktop.in
+++ b/data/org.gnome.Characters.desktop.in
@@ -3,7 +3,7 @@ Type=Application
 Name=Characters
 Comment=Utility application to find and insert unusual characters
 # Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=gnome-characters
+Icon=@appid@
 Exec=@bindir@/gnome-characters
 DBusActivatable=true
 StartupNotify=true
diff --git a/meson.build b/meson.build
index 59d6ade..acb13aa 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
   version: '3.30.0',
   license: 'BSD3',
   default_options: 'buildtype=debugoptimized',
-  meson_version: '>= 0.42.0'
+  meson_version: '>= 0.46.0'
 )
 
 characters_name = 'org.gnome.Characters'
diff --git a/src/org.gnome.Characters.BackgroundService.in b/src/org.gnome.Characters.BackgroundService.in
index bf43031..0b2339b 100755
--- a/src/org.gnome.Characters.BackgroundService.in
+++ b/src/org.gnome.Characters.BackgroundService.in
@@ -3,4 +3,5 @@ imports.package.init({ name: "org.gnome.Characters",
                        version: "@PACKAGE_VERSION@",
                        prefix: "@prefix@",
                        libdir: "@libdir@" });
+imports.service.application_id = "@appid@";
 imports.package.run(imports.service);
diff --git a/src/searchProvider.js b/src/searchProvider.js
index 83e8b94..292afd6 100644
--- a/src/searchProvider.js
+++ b/src/searchProvider.js
@@ -19,6 +19,7 @@
 
 const {Gc, Gdk, Gio, GLib, GObject} = imports.gi;
 
+const Service = imports.service;
 const Util = imports.util;
 
 const MAX_SEARCH_RESULTS = 100;
@@ -98,7 +99,7 @@ const SearchProvider = GObject.registerClass({
             ret.push({ name: new GLib.Variant('s', name),
                        id: new GLib.Variant('s', identifiers[i]),
                        description: new GLib.Variant('s', summary),
-                       icon: (new Gio.ThemedIcon({ name: 'gnome-characters' })).serialize(),
+                       icon: (new Gio.ThemedIcon({ name: Service.application_id })).serialize(),
                        clipboardText: new GLib.Variant('s', character)
                      });
         }
diff --git a/src/service.js b/src/service.js
index 8ef912b..087d86d 100644
--- a/src/service.js
+++ b/src/service.js
@@ -32,6 +32,8 @@ const GObject = imports.gi.GObject;
 const Util = imports.util;
 const SearchProvider = imports.searchProvider;
 
+var application_id = pkg.name;
+
 function initEnvironment() {
     window.getApp = function() {
         return Gio.Application.get_default();
diff --git a/src/window.js b/src/window.js
index c64cedc..1d86cbb 100644
--- a/src/window.js
+++ b/src/window.js
@@ -192,7 +192,7 @@ var MainWindow = GObject.registerClass({
               comments: _("Character Map"),
               copyright: 'Copyright 2014-2018 Daiki Ueno',
               license_type: Gtk.License.GPL_2_0,
-              logo_icon_name: 'gnome-characters',
+              logo_icon_name: Main.application_id,
               version: pkg.version,
               // website: 'https://wiki.gnome.org/Design/Apps/CharacterMap',
               wrap_license: true,


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