gtk+ r22174 - in trunk: . gtk
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22174 - in trunk: . gtk
- Date: Thu, 22 Jan 2009 15:15:40 +0000 (UTC)
Author: mitch
Date: Thu Jan 22 15:15:40 2009
New Revision: 22174
URL: http://svn.gnome.org/viewvc/gtk+?rev=22174&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/gtk/gtkicontheme.c
Modified: trunk/gtk/gtkicontheme.c
==============================================================================
--- trunk/gtk/gtkicontheme.c (original)
+++ trunk/gtk/gtkicontheme.c Thu Jan 22 15:15:40 2009
@@ -1571,7 +1571,8 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]