From 76b3441bb35eb509633ef813a5f9db9baaf078cc Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Tue, 19 Dec 2023 18:59:58 +0100 Subject: [PATCH] Fixed notifications not checking if app-icon is a icon-name. Fixes: #356 --- src/functions.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/functions.vala b/src/functions.vala index 64809bf..4cf0c8d 100644 --- a/src/functions.vala +++ b/src/functions.vala @@ -39,6 +39,11 @@ namespace SwayNotificationCenter { stderr.printf (e.message + "\n"); } } + + // Try as icon name + if (img.storage_type == Gtk.ImageType.EMPTY) { + img.set_from_icon_name (uri, Gtk.IconSize.INVALID); + } } public static void set_image_data (ImageData data,