diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-12-07 22:53:22 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-12-07 22:53:22 +0000 |
commit | ba288650cdbd8f0f0f1b2ba43b385d20ea596a08 (patch) | |
tree | 048af79b3bc53d5a9775a5b6e5872a4142c82228 /gtk/gtkicontheme.c | |
parent | 3774da608337daf75a43610e8585ec1b43d8b664 (diff) | |
download | gdk-pixbuf-ba288650cdbd8f0f0f1b2ba43b385d20ea596a08.tar.gz |
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)
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index f9f507082..533e8cffe 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -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; |