GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().

This commit is contained in:
Carlos Garnacho 2010-11-08 12:39:28 +01:00
parent 405f2f306a
commit 661a13fe4d

View File

@ -3298,7 +3298,7 @@ gtk_render_icon_pixbuf (GtkStyleContext *context,
GtkThemingEngineClass *engine_class; GtkThemingEngineClass *engine_class;
g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL); g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL);
g_return_val_if_fail (size >= -1, NULL); g_return_val_if_fail (size == -1 || size <= GTK_ICON_SIZE_DIALOG, NULL);
g_return_val_if_fail (source != NULL, NULL); g_return_val_if_fail (source != NULL, NULL);
priv = context->priv; priv = context->priv;