diff --git a/data/icons/application-x-executable.svg b/data/icons/application-x-executable.svg new file mode 100644 index 0000000000000000000000000000000000000000..a2f038e431e616373e061172ca3d301495c08e90 --- /dev/null +++ b/data/icons/application-x-executable.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/gs-app.c b/lib/gs-app.c index 5d507e1b5f94c4af436baf9eeb31fc6827b908ab..fa266cdc12c43d4cb6dedd2d1c5f5408852d538e 100644 --- a/lib/gs-app.c +++ b/lib/gs-app.c @@ -1976,17 +1976,14 @@ gs_app_get_icon_for_size (GsApp *app, GIcon *icon = priv->icons->pdata[i]; g_autofree gchar *icon_str = g_icon_to_string (icon); guint icon_width = gs_icon_get_width (icon); - guint icon_height = gs_icon_get_height (icon); guint icon_scale = gs_icon_get_scale (icon); g_debug ("\tConsidering icon of type %s (%s), width %u×%u", G_OBJECT_TYPE_NAME (icon), icon_str, icon_width, icon_scale); /* To avoid excessive I/O, the loading of AppStream data does - * not verify the existence of cached icons, which we do now. - * Since AppStream only guarantees that the 64x64@1 cached icon - * is present, ignore other icons if they do not exist. */ - if (G_IS_FILE_ICON (icon) && !(icon_width == 64 && icon_height == 64 && icon_scale == 1)) { + * not verify the existence of cached icons, which we do now. */ + if (G_IS_FILE_ICON (icon)) { GFile *file = g_file_icon_get_file (G_FILE_ICON (icon)); if (!g_file_query_exists (file, NULL)) { continue; diff --git a/src/gnome-software.gresource.xml b/src/gnome-software.gresource.xml index 97dd7ff31bdf8f7c156c36d9a6116763f7633883..107580dfefa0099a6f40899bd1cf63ba8386ca3c 100644 --- a/src/gnome-software.gresource.xml +++ b/src/gnome-software.gresource.xml @@ -110,5 +110,6 @@ ../data/icons/verified-checkmark-symbolic.svg ../data/icons/content-loading-symbolic.svg ../data/icons/info-symbolic.svg + ../data/icons/application-x-executable.svg diff --git a/src/gs-app-details-page.c b/src/gs-app-details-page.c index 65bb0000c8546d35f3b5e9370b21e644fbae85d0..b63a96daedfd5790032d8398b9586d43656e50ae 100644 --- a/src/gs-app-details-page.c +++ b/src/gs-app-details-page.c @@ -263,7 +263,7 @@ set_updates_description_ui (GsAppDetailsPage *page, GsApp *app) icon = gs_app_get_icon_for_size (app, icon_size, gtk_widget_get_scale_factor (GTK_WIDGET (page)), - "system-component-application"); + "application-x-executable"); } display = gdk_display_get_default (); diff --git a/src/gs-app-row.c b/src/gs-app-row.c index a60c72cec8ca0d0f5ff3708da61b3c49b2550723..7a5a23afd78103674d8c2f8a69e053615353dcae 100644 --- a/src/gs-app-row.c +++ b/src/gs-app-row.c @@ -513,7 +513,7 @@ gs_app_row_actually_refresh (GsAppRow *app_row) icon = gs_app_get_icon_for_size (priv->app, gtk_image_get_pixel_size (GTK_IMAGE (priv->image)), gtk_widget_get_scale_factor (priv->image), - "system-component-application"); + "application-x-executable"); gtk_image_set_from_gicon (GTK_IMAGE (priv->image), icon); if (missing_search_result) diff --git a/src/gs-details-page.c b/src/gs-details-page.c index ff1c451989c6d55e232ce75abc0033d350f306df..41ea5e748d4e81d30f5a8daddcbe860095990262 100644 --- a/src/gs-details-page.c +++ b/src/gs-details-page.c @@ -1363,7 +1363,7 @@ gs_details_page_refresh_all (GsDetailsPage *self) { 128, NULL }, { 96, NULL }, { 64, NULL }, - { 128, "system-component-application" }, + { 128, "application-x-executable" }, }; for (gsize i = 0; i < G_N_ELEMENTS (icon_fallbacks) && icon == NULL; i++) { diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c index 04b6aec5df3897efc7f59b94de4dd20110686d35..80bc517cd728d5917df2c66f92a8ba3d576986f6 100644 --- a/src/gs-summary-tile.c +++ b/src/gs-summary-tile.c @@ -116,7 +116,7 @@ gs_summary_tile_refresh (GsAppTile *self) icon = gs_app_get_icon_for_size (app, gtk_image_get_pixel_size (GTK_IMAGE (tile->image)), gtk_widget_get_scale_factor (tile->image), - "system-component-application"); + "application-x-executable"); gtk_image_set_from_gicon (GTK_IMAGE (tile->image), icon); gtk_stack_set_visible_child_name (GTK_STACK (tile->image_stack), "image"); break;