Commit 0aea0721 authored by Zander's avatar Zander 💥

Sigh, live with rsvg warnings until 3.32 is available

Bump libhandy
parent 2dba46c2
Pipeline #66429 passed with stage
in 1 minute and 43 seconds
......@@ -17,7 +17,7 @@
"modules" : [
{
"name" : "libdazzle",
"builddir": true,
"builddir" : true,
"buildsystem" : "meson",
"sources" : [
{
......@@ -30,17 +30,17 @@
},
{
"name" : "libhandy",
"builddir": true,
"builddir" : true,
"buildsystem" : "meson",
"config-opts": [
"config-opts" : [
"-Dglade_catalog=disabled"
],
"sources" : [
{
"type" : "git",
"url" : "https://source.puri.sm/Librem5/libhandy.git",
"tag" : "v0.0.7",
"commit" : "fac9fa59a83f47655d604796632a932d58cf60bb"
"tag" : "v0.0.9",
"commit" : "56b0aa62f6251ee19a88fc208b7ca8dcf9c9633c"
}
],
"cleanup" : [
......@@ -49,7 +49,7 @@
},
{
"name" : "icon-preview",
"builddir": true,
"builddir" : true,
"buildsystem" : "meson",
"sources" : [
{
......@@ -58,5 +58,9 @@
}
]
}
]
}
\ No newline at end of file
],
"build-options" : {
"env" : {
}
}
}
......@@ -38,15 +38,20 @@ namespace IconPreview {
// Hopefully this doesn't render the SVG?
var svg = new Rsvg.Handle.from_gfile_sync(value, FLAGS_NONE);
Rsvg.Rectangle logical;
var width = 0;
var height = 0;
svg.get_geometry_sub(null, out logical, null);
// Rsvg.Rectangle logical;
// svg.get_geometry_sub(null, out logical, null);
width = svg.width;
height = svg.height;
// Colour (App) icons must be 128 by 128
if (logical.height == 128 && logical.width == 128) {
if (height == 128 && width == 128) {
mode = COLOUR;
// Whereas symbolics are 16 by 16
} else if (logical.height == 16 && logical.width == 16) {
} else if (height == 16 && width == 16) {
mode = SYMBOLIC;
// And anything else is unsupported
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment