[gtk/wip/baedert/for-master: 21/55] radiobutton: Fix a warning in a code sample



commit 37aa3935ac6a601072823b078f16d3384d0b46f4
Author: Timm Bäder <mail baedert org>
Date:   Sat Sep 28 08:38:41 2019 +0200

    radiobutton: Fix a warning in a code sample

 gtk/gtkradiobutton.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 303f16a1f8..313be232b7 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]