diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-04-14 21:04:29 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-04-14 21:04:29 +0000 |
commit | 321cedab98b73823121073ef200aa6bc1cd8217b (patch) | |
tree | b045556ed340785dd4313faa5d9d45528a172bfc /gtk/gtkwidget.c | |
parent | b18a684f280d75b738d68eb4df62606f8afe6d23 (diff) | |
download | gtk+-321cedab98b73823121073ef200aa6bc1cd8217b.tar.gz |
Add a11y relations between the color wheel and the spin buttons. (#132745,
2004-04-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcolorsel.c: Add a11y relations between the color
wheel and the spin buttons. (#132745, Padraig, O'Briain)
* gtk/gtkiconfactory.c (gtk_icon_set_render_icon): Document
the meaning of size == -1.
* gtk/gtkwidget.c (gtk_widget_render_icon): Explicitly accept
a size of -1. (#137436, Brian Cameron)
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 952a21fef9..14d27f7f9a 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -5015,7 +5015,8 @@ gtk_widget_create_pango_layout (GtkWidget *widget, * gtk_widget_render_icon: * @widget: a #GtkWidget * @stock_id: a stock ID - * @size: a stock size + * @size: a stock size. A size of (GtkIconSize)-1 means render at + the size of the source and don't scale. * @detail: render detail to pass to theme engine * * A convenience function that uses the theme engine and RC file @@ -5043,7 +5044,7 @@ gtk_widget_render_icon (GtkWidget *widget, g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); g_return_val_if_fail (stock_id != NULL, NULL); - g_return_val_if_fail (size > GTK_ICON_SIZE_INVALID, NULL); + g_return_val_if_fail (size > GTK_ICON_SIZE_INVALID || size == -1, NULL); gtk_widget_ensure_style (widget); |