summaryrefslogtreecommitdiff
path: root/examples/radiobuttons
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-02-25 01:47:44 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-02-25 01:47:44 +0000
commit9f1363013fe5e3def58a007b6c109be93d4e5702 (patch)
treebfd35007c9638a34d6904db1ffd30b38ebc949ec /examples/radiobuttons
parent4d06c9d09f5e8befceb297aa426f293f58248888 (diff)
downloadgtk+-9f1363013fe5e3def58a007b6c109be93d4e5702.tar.gz
More GTK+ 2.0 updates.
* docs/tutorial/gtk-tut.sgml, docs/tutorial/images/*, examples/*: More GTK+ 2.0 updates. * docs/tutorial/Makefile.am: build and dist the new tutorial, not the old Linuxdoc one.
Diffstat (limited to 'examples/radiobuttons')
-rw-r--r--examples/radiobuttons/radiobuttons.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/radiobuttons/radiobuttons.c b/examples/radiobuttons/radiobuttons.c
index 21dc6ca438..6d1c27096b 100644
--- a/examples/radiobuttons/radiobuttons.c
+++ b/examples/radiobuttons/radiobuttons.c
@@ -20,7 +20,7 @@ int main( int argc,
GtkWidget *separator;
GSList *group;
- gtk_init (&argc,&argv);
+ gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@@ -50,9 +50,8 @@ int main( int argc,
gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
gtk_widget_show (button);
- button = gtk_radio_button_new_with_label(
- gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
- "button3");
+ button = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (button),
+ "button3");
gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
gtk_widget_show (button);