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



commit 5b45e825f21b9cedd07aa77022169345db891de4
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]