From 00aeffc715bec6be2a020335649bcc78e6b12a2a Mon Sep 17 00:00:00 2001 From: Ernestas Kulik Date: Sun, 21 Jul 2024 15:42:31 +0300 Subject: [PATCH] result: Add default icon If the desktop entry specifies no icon of its own, a default shall be used (application-x-executable makes the most sense right now). --- src/jogg-result.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jogg-result.c b/src/jogg-result.c index 80c6291..9b6f838 100644 --- a/src/jogg-result.c +++ b/src/jogg-result.c @@ -50,6 +50,10 @@ jogg_result_get_property ( GObject *object break; case PROP_ICON: icon = g_app_info_get_icon (G_APP_INFO (self->app_info)); + if (NULL == icon) + { + icon = g_icon_new_for_string ("application-x-executable", NULL); + } g_value_set_object (value, icon); break;