[gtk+] GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
- Date: Sat, 4 Dec 2010 15:10:24 +0000 (UTC)
commit 661a13fe4d67d69246eacf5733dc86db25074584
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]