Don't crash if icon_theme_builtin_icons hasn't been initialized. (#128726,
Sun Dec 7 23:45:40 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Don't crash if icon_theme_builtin_icons hasn't been initialized. (#128726, Diego Gonzalez)
This commit is contained in:
committed by
Matthias Clasen
parent
3774da6083
commit
ba288650cd
@ -1252,7 +1252,9 @@ gtk_icon_theme_has_icon (GtkIconTheme *icon_theme,
|
||||
if (g_hash_table_lookup_extended (priv->all_icons,
|
||||
icon_name, NULL, NULL))
|
||||
return TRUE;
|
||||
if (g_hash_table_lookup_extended (icon_theme_builtin_icons,
|
||||
|
||||
if (icon_theme_builtin_icons &&
|
||||
g_hash_table_lookup_extended (icon_theme_builtin_icons,
|
||||
icon_name, NULL, NULL))
|
||||
return TRUE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user