summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnu.org>2002-01-30 21:00:49 +0000
committerAnders Carlsson <andersca@src.gnome.org>2002-01-30 21:00:49 +0000
commit95ab2a72b4ba0a84b9c430d941f778367e02584b (patch)
tree298150c6739c26f08c67c566e9ca7d3995194e81 /gtk
parentbb974b6bd408ec8a05f90a096a9f8c43efc52bc0 (diff)
downloadgtk+-95ab2a72b4ba0a84b9c430d941f778367e02584b.tar.gz
Allow a -1 icon size.
2002-01-30 Anders Carlsson <andersca@gnu.org> * gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkstyle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index b430730171..a88765196a 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -1900,7 +1900,7 @@ gtk_default_render_icon (GtkStyle *style,
g_return_val_if_fail (base_pixbuf != NULL, NULL);
- if (!gtk_icon_size_lookup (size, &width, &height))
+ if (size != (GtkIconSize) -1 && !gtk_icon_size_lookup (size, &width, &height))
{
g_warning (G_STRLOC ": invalid icon size `%d'", size);
return NULL;