diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-09-27 17:06:59 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-09-27 17:31:11 -0400 |
commit | 5cf0450c69f7bbdb0d1ca22ec54355e3b3e8c9c2 (patch) | |
tree | 497edd375648f56240188ed6911c4c8bf30171ae /gtk/gtktoolbutton.c | |
parent | 63124e81b6131e29c2f06c7ad795ac570f92e275 (diff) | |
download | gtk+-5cf0450c69f7bbdb0d1ca22ec54355e3b3e8c9c2.tar.gz |
toolbutton: don't force the icon widget to be a GtkMisc
There's really no reason the icon widget must be a GtkMisc. You might
want to use e.g. a GtkSpinner.
Diffstat (limited to 'gtk/gtktoolbutton.c')
-rw-r--r-- | gtk/gtktoolbutton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index 8ee5fdf0e3..934ca61321 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -972,9 +972,9 @@ gtk_tool_button_new_from_stock (const gchar *stock_id) /** * gtk_tool_button_new: * @label: (allow-none): a string that will be used as label, or %NULL - * @icon_widget: (allow-none): a #GtkMisc widget that will be used as icon widget, or %NULL + * @icon_widget: (allow-none): a widget that will be used as the button contents, or %NULL * - * Creates a new %GtkToolButton using @icon_widget as icon and @label as + * Creates a new %GtkToolButton using @icon_widget as contents and @label as * label. * * Return value: A new #GtkToolButton @@ -987,7 +987,7 @@ gtk_tool_button_new (GtkWidget *icon_widget, { GtkToolButton *button; - g_return_val_if_fail (icon_widget == NULL || GTK_IS_MISC (icon_widget), NULL); + g_return_val_if_fail (icon_widget == NULL || GTK_IS_WIDGET (icon_widget), NULL); button = g_object_new (GTK_TYPE_TOOL_BUTTON, "label", label, |