[gnome-software/1225-do-not-allow-distro-upgrades-if-release-art-is-missing: 20/23] gs-plugin-fedora-pkgdb-collections: Fallback to upgrade-bg.png
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1225-do-not-allow-distro-upgrades-if-release-art-is-missing: 20/23] gs-plugin-fedora-pkgdb-collections: Fallback to upgrade-bg.png
- Date: Thu, 12 Aug 2021 17:16:06 +0000 (UTC)
commit d9f956dbfca8fef87d2c04393e5f2bf34b7e6e97
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 5 12:56:22 2021 +0200
gs-plugin-fedora-pkgdb-collections: Fallback to upgrade-bg.png
When no upgrade background is found, fallback to the one provided by
the gnome-software, thus there's always some background image.
plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index 997f666fb..40885b31f 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -232,7 +232,7 @@ _get_upgrade_css_background (guint version)
if (g_file_test (filename2, G_FILE_TEST_EXISTS))
return g_strdup_printf ("url('%s')", filename2);
- return NULL;
+ return g_strdup ("url('" DATADIR "/gnome-software/upgrade-bg.png')");
}
static gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]