Displaying 3 results from an estimated 3 matches for "find_png".
Did you mean:
find_pmd
2019 Feb 06
4
[PATCH 0/3] inspect: icon improvements for Mageia & *SUSE
See individual patches.
Pino Toscano (3):
inspect: bump size limit for Mageia guests
inspect: factor out find_png helper function
inspect: revamp icon extraction for *SUSE guests
lib/inspect-icon.c | 39 +++++++++++++++++++++++++--------------
1 file changed, 25 insertions(+), 14 deletions(-)
--
2.20.1
2019 Apr 08
1
[PATCH] inspect: get icon of OpenMandriva guests
...g, size_t *size_r)
return get_png (g, GENTOO_ICON, size_r, 10240);
}
+static char *
+icon_openmandriva (guestfs_h *g, size_t *size_r)
+{
+ const char *icons[] = {
+ "/usr/share/icons/large/mandriva.png",
+ "/usr/share/icons/mandriva.png",
+ NULL
+ };
+
+ return find_png (g, icons, size_r, 10240);
+}
+
#if CAN_DO_WINDOWS
/* Windows, as usual, has to be much more complicated and stupid than
--
2.20.1
2019 Feb 06
0
[PATCH 3/3] inspect: revamp icon extraction for *SUSE guests
...r *
icon_opensuse (guestfs_h *g, size_t *size_r)
{
- return get_png (g, OPENSUSE_ICON, size_r, 2048);
+ const char *icons[] = {
+ "/usr/share/icons/hicolor/48x48/apps/distributor.png",
+ "/usr/share/icons/hicolor/24x24/apps/distributor.png",
+ NULL
+ };
+
+ return find_png (g, icons, size_r, 10240);
}
#if CAN_DO_CIRROS
--
2.20.1