icontheme: make has_(g)icon consistent with lookup
authorvelsinki <112010-velsinki@users.noreply.gitlab.gnome.org>
Mon, 24 Apr 2023 21:38:20 +0000 (23:38 +0200)
committervelsinki <112010-velsinki@users.noreply.gitlab.gnome.org>
Mon, 24 Apr 2023 21:38:20 +0000 (23:38 +0200)
commite20a5e1bc1670ef59e8df8fe607c9252144d15d3
tree32e3ba1ec062c4ced674a59d29d2be7ef57bf3fa
parent63d7756658c24fe0d22fa523799b1eeb15f4512c
icontheme: make has_(g)icon consistent with lookup

Make `gtk_icon_theme_has_icon` and `gtk_icon_theme_has_gicon` also
consider unthemed icons. This makes their behavior consistent with the
actual (documented) lookup behavior.

Fixes: #5709 and makes the workaround in nautilus@b643a00b obsolete
gtk/gtkicontheme.c