[gtk+/gtk-2-20] Allow NULL as 'icon_widget' in gtk_tool_button_new()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-20] Allow NULL as 'icon_widget' in gtk_tool_button_new()
- Date: Sun, 2 May 2010 23:55:38 +0000 (UTC)
commit e92331edb5407d81836840a8b806d9fc0e0e904c
Author: Javier Jardón <jjardon gnome org>
Date: Tue Apr 27 03:26:11 2010 +0200
Allow NULL as 'icon_widget' in gtk_tool_button_new()
This completes the patch of
commit b8ec73a52fe3dc3012db78f45bfcafa2cb3e14ae
(cherry picked from commit 1e2dabf31d6e4aeeb767f3f31f088b5e7f31e187)
gtk/gtktoolbutton.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c
index e8a6eca..4225401 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]