radiobutton: Fix a warning in a code sample
authorTimm Bäder <mail@baedert.org>
Sat, 28 Sep 2019 06:38:41 +0000 (08:38 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 9 Oct 2019 14:57:21 +0000 (16:57 +0200)
gtk/gtkradiobutton.c

index 303f16a1f8c52043a06352bf10e8880e461072ff..313be232b72501b427582374b174e5969ff983ab 100644 (file)
@@ -392,7 +392,7 @@ gtk_radio_button_set_group (GtkRadioButton *radio_button,
  *
  *   while (some_condition)
  *     {
- *        radio_button = gtk_radio_button_new (NULL);
+ *        radio_button = GTK_RADIO_BUTTON (gtk_radio_button_new (NULL));
  *
  *        gtk_radio_button_join_group (radio_button, last_button);
  *        last_button = radio_button;