mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-19 08:30:09 +00:00
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:
parent
de02769a2f
commit
6865744034
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user