[gtk+/gtk-style-context: 333/533] GtkStyleContext: Fix check for	GtkIconSize in render_icon_pixbuf().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/gtk-style-context: 333/533] GtkStyleContext: Fix check for	GtkIconSize in render_icon_pixbuf().
- Date: Wed,  1 Dec 2010 02:33:48 +0000 (UTC)
commit b89251b75867a11ca0ca4f34f2c8e9a8b9aabd16
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Nov 8 12:39:28 2010 +0100
    GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
 gtk/gtkstylecontext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index ed2e68d..cadd28e 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3298,7 +3298,7 @@ gtk_render_icon_pixbuf (GtkStyleContext     *context,
   GtkThemingEngineClass *engine_class;
 
   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);
 
   priv = context->priv;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]