g_return_if_fail() on icon_name != NULL so we get a warning instead of a

2009-01-22  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkicontheme.c (gtk_icon_theme_has_icon): g_return_if_fail()
	on icon_name != NULL so we get a warning instead of a crash here.


svn path=/trunk/; revision=22174
This commit is contained in:
Michael Natterer 2009-01-22 15:15:40 +00:00 committed by Michael Natterer
parent 6cceccd860
commit 374fa4bb4a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-01-22 Michael Natterer <mitch@imendio.com>
* gtk/gtkicontheme.c (gtk_icon_theme_has_icon): g_return_if_fail()
on icon_name != NULL so we get a warning instead of a crash here.
2009-01-21 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1571,7 +1571,8 @@ gtk_icon_theme_has_icon (GtkIconTheme *icon_theme,
GList *l;
g_return_val_if_fail (GTK_IS_ICON_THEME (icon_theme), FALSE);
g_return_val_if_fail (icon_name != NULL, FALSE);
priv = icon_theme->priv;
ensure_valid_themes (icon_theme);