summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelper.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-02-06 09:50:04 +0100
committerAlexander Larsson <alexl@redhat.com>2020-02-06 09:50:04 +0100
commit68657440340784dbd97e9064127474e0c9f2c3a6 (patch)
tree83b8356c14ede05069c6cfd148da6455646dc91c /gtk/gtkiconhelper.c
parentde02769a2f6ca86b39e23b6a75b2acc731846c04 (diff)
downloadgtk+-68657440340784dbd97e9064127474e0c9f2c3a6.tar.gz
Remove unnecessary image-missing fallbacks
We now always return something from icon theme lookups, so no need to do custom fallbacks.
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r--gtk/gtkiconhelper.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index eb6f715527..82ea7add2e 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -105,13 +105,6 @@ ensure_paintable_for_gicon (GtkIconHelper *self,
MIN (width, height),
dir,
scale, flags);
- if (icon == NULL)
- icon = gtk_icon_theme_lookup_icon (icon_theme,
- "image-missing",
- NULL,
- width, scale,
- dir,
- flags);
*symbolic = gtk_icon_paintable_is_symbolic (icon);
return GDK_PAINTABLE (icon);