diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-09-16 23:33:25 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-09-16 23:33:25 +0000 |
commit | bf69ab9d687ec505aa6d51fbcf8c2470ce25bd8b (patch) | |
tree | c4e948ecd15da823f8ae477d47e7cd39c6ada453 /gtk/gtktoolbar.c | |
parent | eacc9f5d0585708e71ae822a6404c2fd62e0cf15 (diff) | |
download | gdk-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.c | 2 |
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); |