summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-04-27 03:26:11 +0200
committerJavier Jardón <jjardon@gnome.org>2010-04-27 03:26:11 +0200
commit1e2dabf31d6e4aeeb767f3f31f088b5e7f31e187 (patch)
tree47170b43f7d4ea2a7a3f6363d0dbc70a8b839a10
parentd3d4cf0e841df6573a41ef4ebb609ff7b81dbb0f (diff)
downloadgdk-pixbuf-1e2dabf31d6e4aeeb767f3f31f088b5e7f31e187.tar.gz
Allow NULL as 'icon_widget' in gtk_tool_button_new()
This completes the patch of commit b8ec73a52fe3dc3012db78f45bfcafa2cb3e14ae
-rw-r--r--gtk/gtktoolbutton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c
index e8a6eca90..422540168 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,