From 1e2dabf31d6e4aeeb767f3f31f088b5e7f31e187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Tue, 27 Apr 2010 03:26:11 +0200 Subject: [PATCH] Allow NULL as 'icon_widget' in gtk_tool_button_new() This completes the patch of commit b8ec73a52fe3dc3012db78f45bfcafa2cb3e14ae --- gtk/gtktoolbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index e8a6eca90e..422540168f 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -943,7 +943,7 @@ gtk_tool_button_new (GtkWidget *icon_widget, { 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, "label", label,