diff options
author | GMT 1999 Tony Gale <gale@gtk.org> | 1999-01-28 10:35:40 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 1999-01-28 10:35:40 +0000 |
commit | a2dafdfc88dbaaaf67c3971372da4a5b8b63ec2b (patch) | |
tree | b16f8940a58bbe8d25bcf5f3112fbcb3c682952b /examples/radiobuttons | |
parent | a70005873773b8b3214b2a54818990db517fbaa9 (diff) | |
download | gtk+-a2dafdfc88dbaaaf67c3971372da4a5b8b63ec2b.tar.gz |
- Replace all uses of deprecated functions. - Replace menufactory example
Thu Jan 28 10:16:28 GMT 1999 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml:
- Replace all uses of deprecated functions.
- Replace menufactory example with itemfactory example
from Nick Scott <mendigo@geocities.com>
- Minor bug fixes in the examples.
Diffstat (limited to 'examples/radiobuttons')
-rw-r--r-- | examples/radiobuttons/radiobuttons.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/radiobuttons/radiobuttons.c b/examples/radiobuttons/radiobuttons.c index 2b1263e8b6..4f708c95c7 100644 --- a/examples/radiobuttons/radiobuttons.c +++ b/examples/radiobuttons/radiobuttons.c @@ -29,14 +29,14 @@ int main( int argc, NULL); gtk_window_set_title (GTK_WINDOW (window), "radio buttons"); - gtk_container_border_width (GTK_CONTAINER (window), 0); + gtk_container_set_border_width (GTK_CONTAINER (window), 0); box1 = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (window), box1); gtk_widget_show (box1); box2 = gtk_vbox_new (FALSE, 10); - gtk_container_border_width (GTK_CONTAINER (box2), 10); + gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); gtk_widget_show (box2); @@ -46,7 +46,7 @@ int main( int argc, group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); button = gtk_radio_button_new_with_label(group, "button2"); - gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0); gtk_widget_show (button); @@ -61,7 +61,7 @@ int main( int argc, gtk_widget_show (separator); box2 = gtk_vbox_new (FALSE, 10); - gtk_container_border_width (GTK_CONTAINER (box2), 10); + gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); gtk_widget_show (box2); |