diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-04-27 03:26:11 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-04-27 03:26:11 +0200 |
commit | 1e2dabf31d6e4aeeb767f3f31f088b5e7f31e187 (patch) | |
tree | 47170b43f7d4ea2a7a3f6363d0dbc70a8b839a10 | |
parent | d3d4cf0e841df6573a41ef4ebb609ff7b81dbb0f (diff) | |
download | gdk-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.c | 2 |
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, |