summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbar.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-09-16 23:33:25 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-09-16 23:33:25 +0000
commitbf69ab9d687ec505aa6d51fbcf8c2470ce25bd8b (patch)
treec4e948ecd15da823f8ae477d47e7cd39c6ada453 /gtk/gtktoolbar.c
parenteacc9f5d0585708e71ae822a6404c2fd62e0cf15 (diff)
downloadgdk-pixbuf-bf69ab9d687ec505aa6d51fbcf8c2470ce25bd8b.tar.gz
Test whether type is not equal to GTK_TOOLBAR_CHILD_RADIOBUTTON before
1998-09-16 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Test whether type is not equal to GTK_TOOLBAR_CHILD_RADIOBUTTON before checking that (widget != NULL), otherwise radio button insertion will not work -- the widget argument is NULL for the first radio button in the group.
Diffstat (limited to 'gtk/gtktoolbar.c')
-rw-r--r--gtk/gtktoolbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 8457d6c7d..4970cbabd 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -743,7 +743,7 @@ gtk_toolbar_insert_element (GtkToolbar *toolbar,
g_return_val_if_fail (widget != NULL, NULL);
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
}
- else
+ else if (type != GTK_TOOLBAR_CHILD_RADIOBUTTON)
g_return_val_if_fail (widget == NULL, NULL);
child = g_new (GtkToolbarChild, 1);