Commit 81574315 authored by Zander's avatar Zander 💥

Palette is now a sub application with its own launcher

Unfortunatly shell is too clever and notices that are both coming from the same flapak so launching Icon Preview _after_ Colour Palette doesn't quite work
parent 591148f2
Pipeline #78046 passed with stage
in 1 minute and 38 seconds
......@@ -7,10 +7,19 @@ desktop_file = i18n.merge_file(
install_dir: join_paths(get_option('datadir'), 'applications'),
)
palette_desktop_file = i18n.merge_file(
input: 'org.gnome.IconPreview.Palette.desktop.in',
output: 'org.gnome.IconPreview.Palette.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications'),
)
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [desktop_file]
args: [desktop_file, palette_desktop_file]
)
endif
......@@ -33,8 +42,20 @@ configure_file(input: 'org.gnome.IconPreview.service.in',
configuration: conf,
install_dir: join_paths([datadir,'dbus-1/services']))
configure_file(input: 'org.gnome.IconPreview.Palette.service.in',
output: 'org.gnome.IconPreview.Palette.service',
configuration: conf,
install_dir: join_paths([datadir,'dbus-1/services']))
install_data('org.gnome.IconPreview.svg',
install_dir: join_paths([datadir,'icons/hicolor/scalable/apps']))
install_data('org.gnome.IconPreview-symbolic.svg',
install_dir: join_paths([datadir,'icons/hicolor/symbolic/apps']))
install_data('org.gnome.IconPreview.Palette.svg',
install_dir: join_paths([datadir,'icons/hicolor/scalable/apps']))
install_data('org.gnome.IconPreview.Palette-symbolic.svg',
install_dir: join_paths([datadir,'icons/hicolor/symbolic/apps']))
<?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.Palette-symbolic.svg"
height="16"
id="svg7384"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
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-nodes="true"
inkscape:bbox-paths="true"
bordercolor="#666666"
borderopacity="1"
inkscape:current-layer="layer11"
inkscape:cx="36.666062"
inkscape:cy="-8.8982502"
gridtolerance="10"
inkscape:guide-bbox="true"
guidetolerance="10"
id="namedview88"
inkscape:object-nodes="false"
inkscape:object-paths="false"
objecttolerance="10"
pagecolor="#e3e4e3"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
showborder="true"
showgrid="true"
showguides="true"
inkscape:snap-bbox="true"
inkscape:snap-bbox-midpoints="true"
inkscape:snap-global="true"
inkscape:snap-grids="true"
inkscape:snap-nodes="true"
inkscape:snap-others="true"
inkscape:snap-to-guides="true"
inkscape:window-height="1016"
inkscape:window-maximized="1"
inkscape:window-width="1920"
inkscape:window-x="1600"
inkscape:window-y="27"
inkscape:zoom="2.8284271"
inkscape:pagecheckerboard="false"
inkscape:snap-page="true"
inkscape:snap-bbox-edge-midpoints="true">
<inkscape:grid
empspacing="2"
enabled="true"
id="grid4866"
originx="39.9998"
originy="650"
snapvisiblegridlinesonly="true"
spacingx="1"
spacingy="1"
type="xygrid"
visible="true" />
</sodipodi:namedview>
<title
id="title9167">Gnome Symbolic Icon Theme</title>
<defs
id="defs7386" />
<g
inkscape:groupmode="layer"
id="layer11"
inkscape:label="apps"
transform="translate(-201.0004,-867)">
<g
transform="translate(41.0002,695)"
style="display:inline;fill:#241f31;fill-opacity:1;enable-background:new"
id="g1145">
<path
sodipodi:nodetypes="ccccccccccc"
inkscape:connector-curvature="0"
id="rect1088"
transform="translate(0,172)"
d="m 172.65625,9 -5.81836,5.816406 -0.01,0.0098 c -3.6e-4,3.61e-4 3.7e-4,0.0016 0,0.002 -0.008,0.0077 -0.0176,0.0119 -0.0254,0.01953 -0.036,0.03406 -0.0745,0.0654 -0.11523,0.09375 -0.005,0.0039 -0.009,0.0079 -0.0137,0.01172 -0.0184,0.01661 -0.038,0.03067 -0.0566,0.04687 H 176 V 9 Z"
style="opacity:1;vector-effect:none;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
sodipodi:nodetypes="cccccc"
inkscape:connector-curvature="0"
id="rect1086"
transform="translate(0,172)"
d="M 170.36523,1.3925781 168,3.7578125 V 12 c -9.1e-4,0.09738 -0.0161,0.194103 -0.0449,0.287109 l 6.65234,-6.6523434 z"
style="opacity:1;vector-effect:none;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="rect1044"
transform="translate(0,172)"
d="M 161,0 V 11.957031 12 h 0.002 a 3,3 0 0 0 0.87696,2.121094 3,3 0 0 0 4.24218,0 A 3,3 0 0 0 166.99805,12 H 167 V 0 Z m 3.01367,11 a 1,1 0 0 1 0.69336,0.292969 1,1 0 0 1 0,1.414062 1,1 0 0 1 -1.41406,0 1,1 0 0 1 0,-1.414062 A 1,1 0 0 1 164.01367,11 Z"
style="opacity:1;vector-effect:none;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
</g>
</svg>
[Desktop Entry]
Name=Colour Palette
Comment=Icon colour pallete
Exec=gnome-icon-palette
# Traslators: Don't translate this, it's the application icon name
Icon=org.gnome.IconPreview.Palette
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;GTK;GNOME;
DBusActivatable=true
StartupWMClass=gnome-icon-palette
[D-BUS Service]
Name=org.gnome.IconPreview.Palette
Exec=@BINDIR@/gnome-icon-palette --gapplication-service
<?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"
enable-background="new"
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="linearGradient1698">
<stop
style="stop-color:#9a9996;stop-opacity:1"
offset="0"
id="stop1694" />
<stop
id="stop1700"
offset="0.5"
style="stop-color:#deddda;stop-opacity:1" />
<stop
style="stop-color:#9a9996;stop-opacity:1"
offset="1"
id="stop1696" />
</linearGradient>
<linearGradient
id="linearGradient1684">
<stop
id="stop1680"
offset="0"
style="stop-color:#f6f5f4;stop-opacity:1" />
<stop
id="stop1682"
offset="1"
style="stop-color:#949390;stop-opacity:1" />
</linearGradient>
<radialGradient
r="4"
fy="267"
fx="32"
cy="267"
cx="32"
gradientTransform="translate(0,-7)"
gradientUnits="userSpaceOnUse"
id="radialGradient1678"
xlink:href="#linearGradient1684" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="232"
x2="52"
y1="232"
x1="12"
id="linearGradient1692"
xlink:href="#linearGradient1698" />
<linearGradient
y2="226.64467"
x2="24.928932"
y1="254.92894"
x1="-3.3553388"
gradientUnits="userSpaceOnUse"
id="linearGradient1710"
xlink:href="#linearGradient1698" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="242"
x2="12"
y1="282"
x1="12"
id="linearGradient1718"
xlink:href="#linearGradient1698" />
</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">
<g
id="g1038"
style="display:inline;fill:#dc8add;enable-background:new"
transform="rotate(90,-49.75,357.25)">
<g
id="g1036"
style="fill:#ffffff">
<circle
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle1030"
cx="31"
cy="269"
r="19" />
<rect
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1032"
width="38"
height="69.999977"
x="12"
y="200" />
<rect
ry="7.9999995"
rx="8"
y="180"
x="12"
height="48"
width="38"
id="rect1034"
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
</g>
<g
transform="translate(7.5,169)"
style="display:inline;fill:#dc8add;enable-background:new"
id="g997-5">
<g
style="fill:#ffffff"
id="g1028-4">
<circle
r="19"
cy="269"
cx="31"
id="path985-9"
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
y="200"
x="12"
height="69.999977"
width="38"
id="rect993-1"
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1023-9"
width="38"
height="48"
x="12"
y="180"
rx="8"
ry="7.9999995" />
</g>
</g>
<g
id="g1674">
<g
id="g1605"
transform="rotate(90,30,264)">
<path
style="opacity:1;vector-effect:none;fill:url(#linearGradient1718);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 22,176 c -4.432,0 -8,3.568 -8,8 v 30 l 0,48 c 0,11.04569 8.954305,20 20,20 11.045695,0 20,-8.95431 20,-20 l 0,-70 v -8 c 0,-4.432 -3.568,-8 -8,-8 z"
id="path1589" />
<g
id="g1597">
<circle
r="20"
cy="262"
cx="32"
id="circle1591"
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
y="194"
x="12"
height="68"
width="40"
id="rect1593"
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.99999976;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1595"
width="40"
height="44.000015"
x="12"
y="175.99998"
rx="8"
ry="7.9999995" />
</g>
<rect
style="opacity:1;vector-effect:none;fill:#26a269;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1599"
width="40"
height="16"
x="12"
y="226" />
<rect
y="206"
x="12"
height="16"
width="40"
id="rect1601"
style="opacity:1;vector-effect:none;fill:#33d17a;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
style="opacity:1;vector-effect:none;fill:#8ff0a4;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1603"
width="40"
height="16"
x="12"
y="186" />
</g>
<g
transform="rotate(45,29.585787,263)"
id="g1623">
<path
id="path1607"
d="m 21.414214,179.41422 c -4.432,0 -8,3.568 -8,8 v 28 48 a 20,20 0 0 0 20,20 20,20 0 0 0 20,-20 v -68 -8 c 0,-4.432 -3.568,-8 -8,-8 z"
style="opacity:1;vector-effect:none;fill:url(#linearGradient1710);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<g
id="g1615">
<circle
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle1609"
cx="32"
cy="262"
r="20" />
<rect
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.99999976;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1611"
width="40"
height="68"
x="12"
y="194" />
<rect
ry="7.9999995"
rx="8"
y="177.99998"
x="12"
height="44.000015"
width="40"
id="rect1613"
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<rect
y="228"
x="12"
height="16"
width="40"
id="rect1617"
style="opacity:1;vector-effect:none;fill:#a51d2d;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
style="opacity:1;vector-effect:none;fill:#e01b24;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1619"
width="40"
height="16"
x="12"
y="208" />
<rect
y="188"
x="12"
height="16"
width="40"
id="rect1621"
style="opacity:1;vector-effect:none;fill:#f66151;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<g
id="g1587">
<path
id="circle1567"
d="m 20,180 c -4.432,0 -8,3.568 -8,8 v 28 48 a 20,20 0 0 0 20,20 20,20 0 0 0 20,-20 v -68 -8 c 0,-4.432 -3.568,-8 -8,-8 z"
style="opacity:1;vector-effect:none;fill:url(#linearGradient1692);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<g
id="g1565">
<circle
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path985"
cx="32"
cy="262"
r="20" />
<rect
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.99999976;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect993"
width="40"
height="68"
x="12"
y="194" />
<rect
ry="7.9999995"
rx="8"
y="177.99998"
x="12"
height="44.000015"
width="40"
id="rect1023"
style="opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<rect
y="228"
x="12"
height="16"
width="40"
id="rect1105"
style="opacity:1;vector-effect:none;fill:#1a5fb4;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
style="opacity:1;vector-effect:none;fill:#3584e4;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect1109"
width="40"
height="16"
x="12"
y="208" />
<rect
y="188"
x="12"
height="16"
width="40"
id="rect1111"
style="opacity:1;vector-effect:none;fill:#98c1f1;fill-opacity:1;stroke:none;stroke-width:1.99999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<circle
r="4"
cy="262"
cx="32"
id="circle1092"
style="opacity:1;vector-effect:none;fill:#5e5c64;fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<circle
style="opacity:1;vector-effect:none;fill:url(#radialGradient1678);fill-opacity:1;stroke:none;stroke-width:2.00000024;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle1676"
cx="32"
cy="261"
r="4" />
</g>
</g>
</g>
</svg>
......@@ -27,6 +27,13 @@
</screenshot>
</screenshots>
<releases>
<release version="0.9.4" date="2019-04-27">
<description>
<p>Alter colour icon view, now has smaller icons and fewer of them</p>
<p>Add Colour Palette tool</p>
<p>Further dispense any idea version numbers are logical</p>
</description>
</release>
<release version="0.9.2" date="2019-01-19" />
<release version="0.9.0" date="2018-11-03" />
<release version="0.2.0" date="2018-09-05" />
......
......@@ -9,10 +9,5 @@ Type=Application
StartupNotify=true
Categories=Utility;GTK;GNOME;
DBusActivatable=true
Actions=palette;
MimeType=image/svg+xml;
[Desktop Action palette]
Name=Colour Palette
Exec=gnome-icon-preview --palette
StartupWMClass=gnome-icon-preview
project('gnome-icon-preview', 'vala', 'c', version: '0.9.2')
project('gnome-icon-preview', 'vala', 'c', version: '0.9.4')
i18n = import('i18n')
......
......@@ -6,7 +6,8 @@
"command" : "gnome-icon-preview",
"finish-args" : [
"--share=ipc",
"--socket=x11",
"--device=dri",
"--socket=fallback-x11",
"--socket=wayland",
"--filesystem=home",
"--filesystem=xdg-run/dconf",
......@@ -23,8 +24,8 @@
{
"type" : "git",
"url" : "https://gitlab.gnome.org/GNOME/libdazzle.git",
"tag" : "3.30.2",
"commit" : "27c741ad67cd07073d4c7ee9930789832494d028"
"tag" : "3.32.1",
"commit" : "7e3154edeecd97aef8bd4a89e3c2fe941e0ef59f"
}
]
},
......
using Gtk;
namespace IconPreview {
public void about_app (Gtk.Window parent) {
var authors = new string[] {"Zander Brown", "Bilal Elmoussaoui"};
var artists = new string[] {"Tobias Bernard"};
var helpers = new string[] {"Jordan Petridis"};
var dlg = new AboutDialog () {
transient_for = parent,
modal = true,
program_name = Environment.get_application_name(),
logo_icon_name = Gtk.Window.get_default_icon_name(),
version = PACKAGE_VERSION,
copyright = _("Copyright © 2018-19 Zander Brown"),
license_type = GPL_3_0,
authors = authors,
artists = artists,
website = "https://gitlab.gnome.org/ZanderBrown/icon-tool/",
website_label = _("Repository")
};
dlg.add_credit_section(_("Kept sane by"), helpers);
dlg.show();
}
}
......@@ -42,6 +42,7 @@ namespace IconPreview {
public class Application : Dazzle.Application {
const GLib.ActionEntry[] entries = {
{ "palette", palette },
{ "new-window", new_window },
{ "quit", quit }
};
......@@ -56,30 +57,22 @@ namespace IconPreview {
add_main_option ("palette", 'p', IN_MAIN, NONE, _("Open colour palette"), null);
}
public void about (Gtk.Window parent) {
var authors = new string[] {"Zander Brown", "Bilal Elmoussaoui"};
var artists = new string[] {"Tobias Bernard"};
var helpers = new string[] {"Jordan Petridis"};
var dlg = new AboutDialog () {
transient_for = parent,
modal = true,
program_name = _("Icon Preview"),
logo_icon_name = "org.gnome.IconPreview",
version = PACKAGE_VERSION,
copyright = _("Copyright © 2018 Zander Brown"),
license_type = GPL_3_0,
authors = authors,
artists = artists,
website = "https://gitlab.gnome.org/ZanderBrown/icon-tool/",
website_label = _("Repository")
};
dlg.add_credit_section(_("Kept sane by"), helpers);
dlg.show();
}
// Handler for app.palette
private void palette () {
new Palette(this).show();
var context = Gdk.Display.get_default().get_app_launch_context();
context.set_icon_name ("org.gnome.IconPreview.Palette");
var palette = new DesktopAppInfo ("org.gnome.IconPreview.Palette.desktop");
try {
palette.launch (null, context);
} catch (Error e) {
warning ("Launching failed: %s\n", e.message);
}
}
// Open a new window (app.new-window)
private void new_window () {
new Window(this).show();
}
public override void activate () {
......@@ -104,7 +97,7 @@ namespace IconPreview {
StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), styles, uint.MAX);
set_accels_for_action ("win.open", { "<primary>O" });
set_accels_for_action ("win.new-window", { "<primary>N" });
set_accels_for_action ("app.new-window", { "<primary>N" });
set_accels_for_action ("win.recents", { "<primary><shift>O" });
set_accels_for_action ("win.refresh", { "<primary>R" });
set_accels_for_action ("win.export", { "<primary>E" });
......
......@@ -4,7 +4,7 @@
<section id="app">
<item>
<attribute name="label" translatable="yes">_New Window</attribute>
<attribute name="action">win.new-window</attribute>
<attribute name="action">app.new-window</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Colour Palette</attribute>
......@@ -40,9 +40,15 @@
</section>
</menu>
<menu id="win-palette-menu">
<section id="app">
<item>
<attribute name="label" translatable="yes">_Icon Preview</attribute>
<attribute name="action">win.icon-preview</attribute>
</item>
</section>
<section id="help">
<item>
<attribute name="label" translatable="yes">_About Icon Preview</attribute>
<attribute name="label" translatable="yes">_About Colour Palette</attribute>
<attribute name="action">win.about</attribute>
</item>
</section>
......
deps = [
dependency('gtk+-3.0'),
dependency('gio-unix-2.0'),
dependency('librsvg-2.0'),
dependency('libdazzle-1.0'),
dependency('libhandy-0.0')
......@@ -20,7 +21,7 @@ sources = [