Allow NULL as 'icon_widget' in gtk_tool_button_new()

This completes the patch of
commit b8ec73a52f
This commit is contained in:
Javier Jardón 2010-04-27 03:26:11 +02:00
parent d3d4cf0e84
commit 1e2dabf31d

View File

@ -943,7 +943,7 @@ gtk_tool_button_new (GtkWidget *icon_widget,
{ {
GtkToolButton *button; GtkToolButton *button;
g_return_val_if_fail (GTK_IS_MISC (icon_widget), NULL); g_return_val_if_fail (icon_widget == NULL || GTK_IS_MISC (icon_widget), NULL);
button = g_object_new (GTK_TYPE_TOOL_BUTTON, button = g_object_new (GTK_TYPE_TOOL_BUTTON,
"label", label, "label", label,