[gnome-builder] devhelp: Ship devhelp's symbolic icon as gresource with Builder



commit aba76fa2ed1a30989be09e676d2a808b56daef3e
Author: vanadiae <vanadiae35 gmail com>
Date:   Mon Jul 12 23:16:43 2021 +0200

    devhelp: Ship devhelp's symbolic icon as gresource with Builder
    
    Currently with the development flatpak Builder depends on the
    development devhelp, and because it installs the devel variant in that
    case, the icon name no longer matches, but only for Builder's
    development flatpak, not flathub's one.
    
    So this commit ships devhelp's -symbolic SVG icon as gresource, so it
    isn't missing when building the development Devhelp. Since the stable
    profile is the default one anyway, and is ignored (see
    https://gitlab.gnome.org/GNOME/devhelp/-/merge_requests/32), then it is
    dropped too from the manifest.
    
    Fixes 3d36049f7dcb226ebdbd2fcde7454f96d672426d

 build-aux/flatpak/org.gnome.Builder.json           |  1 -
 src/plugins/devhelp/devhelp.gresource.xml          |  4 +
 src/plugins/devhelp/org.gnome.Devhelp-symbolic.svg | 97 ++++++++++++++++++++++
 3 files changed, 101 insertions(+), 1 deletion(-)
---
diff --git a/build-aux/flatpak/org.gnome.Builder.json b/build-aux/flatpak/org.gnome.Builder.json
index 2bb2c1412..453bf329d 100644
--- a/build-aux/flatpak/org.gnome.Builder.json
+++ b/build-aux/flatpak/org.gnome.Builder.json
@@ -299,7 +299,6 @@
             "config-opts" : [
                 "--libdir=/app/lib",
                 "--buildtype=debugoptimized",
-                "-Dprofile=stable",
                 "-Dflatpak_build=true"
             ],
             "cleanup" : [
diff --git a/src/plugins/devhelp/devhelp.gresource.xml b/src/plugins/devhelp/devhelp.gresource.xml
index 34efd9b5c..a1364b7bb 100644
--- a/src/plugins/devhelp/devhelp.gresource.xml
+++ b/src/plugins/devhelp/devhelp.gresource.xml
@@ -8,4 +8,8 @@
     <file>gbp-devhelp-page.ui</file>
     <file>gbp-devhelp-search.ui</file>
   </gresource>
+
+  <gresource prefix="/org/gnome/builder/icons">
+    <file compressed="true" 
alias="symbolic/apps/org.gnome.Devhelp-symbolic.svg">org.gnome.Devhelp-symbolic.svg</file>
+  </gresource>
 </gresources>
diff --git a/src/plugins/devhelp/org.gnome.Devhelp-symbolic.svg 
b/src/plugins/devhelp/org.gnome.Devhelp-symbolic.svg
new file mode 100644
index 000000000..c579e8fce
--- /dev/null
+++ b/src/plugins/devhelp/org.gnome.Devhelp-symbolic.svg
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   sodipodi:docname="org.gnome.Devhelp-symbolic.svg"
+   height="16"
+   id="svg7384"
+   inkscape:version="0.92.2 2405546, 2018-03-11"
+   version="1.1"
+   width="16">
+  <metadata
+     id="metadata90">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:title>Gnome Symbolic Icon Theme</dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <sodipodi:namedview
+     inkscape:bbox-paths="true"
+     bordercolor="#666666"
+     borderopacity="1"
+     inkscape:current-layer="layer9"
+     inkscape:cx="1.6382002"
+     inkscape:cy="13.524864"
+     gridtolerance="10"
+     inkscape:guide-bbox="true"
+     guidetolerance="10"
+     id="namedview88"
+     inkscape:object-nodes="false"
+     inkscape:object-paths="false"
+     objecttolerance="10"
+     pagecolor="#555753"
+     inkscape:pageopacity="1"
+     inkscape:pageshadow="2"
+     showborder="true"
+     showgrid="false"
+     showguides="true"
+     inkscape:snap-bbox="false"
+     inkscape:snap-bbox-midpoints="false"
+     inkscape:snap-global="true"
+     inkscape:snap-grids="true"
+     inkscape:snap-nodes="true"
+     inkscape:snap-others="false"
+     inkscape:snap-to-guides="true"
+     inkscape:window-height="1381"
+     inkscape:window-maximized="1"
+     inkscape:window-width="2560"
+     inkscape:window-x="1600"
+     inkscape:window-y="27"
+     inkscape:zoom="1"
+     borderlayer="true"
+     inkscape:showpageshadow="false">
+    <inkscape:grid
+       empspacing="2"
+       enabled="true"
+       id="grid4866"
+       snapvisiblegridlinesonly="true"
+       spacingx="1"
+       spacingy="1"
+       type="xygrid"
+       visible="true"
+       originx="0"
+       originy="0" />
+  </sodipodi:namedview>
+  <title
+     id="title9167">Gnome Symbolic Icon Theme</title>
+  <defs
+     id="defs7386" />
+  <g
+     inkscape:groupmode="layer"
+     id="layer9"
+     inkscape:label="apps"
+     style="display:inline"
+     transform="translate(-83.0002,-175)">
+    <g
+       id="text3998"
+       
style="font-size:40px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell
 Bold"
+       transform="matrix(0.28893613,0,0,0.28893613,130.49178,195.94283)" />
+    <path
+       inkscape:connector-curvature="0"
+       
style="display:inline;opacity:1;vector-effect:none;fill:#3d3846;fill-opacity:0.99607843;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
+       d="m 85.007457,175.98169 v 14 h 11 c 0.51254,0 1,-0.53386 1,-1 h -11 v -2 h 10 c 0.57495,0 1,-0.60225 
1,-1 v -9 c 0,-0.48814 -0.44713,-1 -1,-1 z m 4.44922,2 h 0.26562 v 1.01172 h -0.12695 c -0.36996,0 
-0.55078,0.20372 -0.55078,0.55859 v 1.11719 c 0,0.52098 -0.15854,0.74 -0.50586,0.8457 0.34732,0.10571 
0.50586,0.32472 0.50586,0.84571 v 1.14453 c 0,0.35486 0.18082,0.55859 0.55078,0.55859 h 0.12695 v 0.98438 h 
-0.26562 c -0.94381,0 -1.42774,-0.48327 -1.42774,-1.35157 v -1.30664 c 0,-0.24162 -0.12817,-0.35427 
-0.33203,-0.35351 l -0.34179,-0.002 v -1.00587 h 0.34179 c 0.20386,1.6e-4 0.33203,-0.11385 0.33203,-0.35546 v 
-1.33985 c 0,-0.86831 0.48393,-1.35156 1.42774,-1.35156 z m 2.85937,0 h 0.26563 c 0.94381,0 1.42773,0.48325 
1.42773,1.35156 v 1.33985 c 0,0.24161 0.12817,0.35562 0.33203,0.35546 h 0.3418 v 1.00586 l -0.3418,0.002 c 
-0.20386,-7.6e-4 -0.33203,0.1119 -0.33203,0.35352 v 1.30664 c 0,0.8683 -0.48392,1.35156 -1.42773,1.35156 h 
-0.26563 v -0.98437 h 0.12696 c 0.36996,0 0.550
 78,-0.20373 0.55078,-0.55859 v -1.14453 c 0,-0.52099 0.15854,-0.74 0.50586,-0.84571 -0.34732,-0.1057 
-0.50586,-0.32472 -0.50586,-0.8457 v -1.11719 c 0,-0.35487 -0.18082,-0.55859 -0.55078,-0.55859 h -0.12696 z"
+       id="path1700" />
+  </g>
+</svg>


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