diff options
author | Timm Bäder <mail@baedert.org> | 2018-01-03 17:10:21 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-01-03 17:11:32 +0100 |
commit | 3f68475b6fa7afede6a929126ddf439498e6d53d (patch) | |
tree | 2fc5a880c2d63da491eaaefa85ce3f08108be5e5 /gtk/gtkradiobutton.c | |
parent | 5cd138f0f2812c7f7e1f31a29b640446f87a0caa (diff) | |
download | gtk+-3f68475b6fa7afede6a929126ddf439498e6d53d.tar.gz |
Make a few more code samples compile
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r-- | gtk/gtkradiobutton.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 652d878ece..a2cdaaa667 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -114,8 +114,8 @@ * "I’m the second radio button."); * * // Pack them into a box, then show all the widgets - * gtk_box_pack_start (GTK_BOX (box), radio1, TRUE, TRUE, 2); - * gtk_box_pack_start (GTK_BOX (box), radio2, TRUE, TRUE, 2); + * gtk_box_pack_start (GTK_BOX (box), radio1); + * gtk_box_pack_start (GTK_BOX (box), radio2); * gtk_container_add (GTK_CONTAINER (window), box); * gtk_widget_show (window); * return; @@ -383,9 +383,9 @@ gtk_radio_button_set_group (GtkRadioButton *radio_button, * GtkRadioButton *radio_button; * GtkRadioButton *last_button; * - * while ( ...more buttons to add... ) + * while (some_condition) * { - * radio_button = gtk_radio_button_new (...); + * radio_button = gtk_radio_button_new (NULL); * * gtk_radio_button_join_group (radio_button, last_button); * last_button = radio_button; |