[gnome-software] trivial: Fix the last patch when a icon name is not available
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix the last patch when a icon name is not available
- Date: Tue, 26 Jul 2016 08:36:10 +0000 (UTC)
commit d42330fcfcf53bd04f213c9f6e7c83adc8f6a6ad
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 26 09:35:15 2016 +0100
trivial: Fix the last patch when a icon name is not available
src/plugins/gs-plugin-icons.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-icons.c b/src/plugins/gs-plugin-icons.c
index 7b3901e..ef0df68 100644
--- a/src/plugins/gs-plugin-icons.c
+++ b/src/plugins/gs-plugin-icons.c
@@ -133,11 +133,13 @@ gs_plugin_icons_load_local (GsPlugin *plugin, AsIcon *icon, GError **error)
static gchar *
gs_plugin_icons_get_cache_fn (AsIcon *icon)
{
+ g_autofree gchar *basename = NULL;
g_autofree gchar *checksum = NULL;
checksum = g_compute_checksum_for_string (G_CHECKSUM_SHA1,
as_icon_get_url (icon),
-1);
- return g_strdup_printf ("%s-%s", checksum, as_icon_get_name (icon));
+ basename = g_path_get_basename (as_icon_get_url (icon));
+ return g_strdup_printf ("%s-%s", checksum, basename);
}
static GdkPixbuf *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]