Remove unnecessary image-missing fallbacks

We now always return something from icon theme lookups, so no need to
do custom fallbacks.
This commit is contained in:
Alexander Larsson 2020-02-06 09:50:04 +01:00
parent de02769a2f
commit 6865744034
2 changed files with 0 additions and 14 deletions

View File

@ -68,13 +68,6 @@ gtk_css_image_icon_theme_snapshot (GtkCssImage *image,
icon_theme->scale,
GTK_TEXT_DIR_NONE,
0);
if (icon == NULL)
icon = gtk_icon_theme_lookup_icon (icon_theme->icon_theme,
"image-missing",
NULL,
size, icon_theme->scale,
GTK_TEXT_DIR_NONE,
0);
g_assert (icon != NULL);

View File

@ -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);