[gtk+] Allow custom icon size in gtk_render_icon_pixbuf()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Allow custom icon size in gtk_render_icon_pixbuf()
- Date: Mon, 14 Feb 2011 18:22:35 +0000 (UTC)
commit f04504ac94741171ac63de04a8bd29cbe210427a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 14 13:20:33 2011 -0500
Allow custom icon size in gtk_render_icon_pixbuf()
Pointed out in bug 642213.
gtk/gtkstylecontext.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index c64ada7..95ef77c 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -4372,7 +4372,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 || size <= GTK_ICON_SIZE_DIALOG, NULL);
+ g_return_val_if_fail (size > GTK_ICON_SIZE_INVALID || size == -1, 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]