Skip to content

Commit

Permalink
result: Add default icon
Browse files Browse the repository at this point in the history
If the desktop entry specifies no icon of its own, a default shall be
used (application-x-executable makes the most sense right now).
  • Loading branch information
ernestask committed Jul 21, 2024
1 parent 6b9d179 commit 00aeffc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jogg-result.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00aeffc

Please sign in to comment.