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/rangewidgets | |
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/rangewidgets')
-rw-r--r-- | examples/rangewidgets/rangewidgets.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/rangewidgets/rangewidgets.c b/examples/rangewidgets/rangewidgets.c index 886200bd21..72d2f54678 100644 --- a/examples/rangewidgets/rangewidgets.c +++ b/examples/rangewidgets/rangewidgets.c @@ -98,7 +98,7 @@ void create_range_controls( void ) gtk_widget_show (box1); box2 = gtk_hbox_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); @@ -134,20 +134,20 @@ void create_range_controls( void ) gtk_widget_show (scrollbar); box2 = gtk_hbox_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); /* A checkbutton to control whether the value is displayed or not */ button = gtk_check_button_new_with_label("Display value on scale widgets"); - gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC(cb_draw_value), NULL); gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0); gtk_widget_show (button); box2 = gtk_hbox_new (FALSE, 10); - gtk_container_border_width (GTK_CONTAINER (box2), 10); + gtk_container_set_border_width (GTK_CONTAINER (box2), 10); /* An option menu to change the position of the value */ label = gtk_label_new ("Scale Value Position:"); @@ -182,7 +182,7 @@ void create_range_controls( void ) gtk_widget_show (box2); box2 = gtk_hbox_new (FALSE, 10); - gtk_container_border_width (GTK_CONTAINER (box2), 10); + gtk_container_set_border_width (GTK_CONTAINER (box2), 10); /* Yet another option menu, this time for the update policy of the * scale widgets */ @@ -216,7 +216,7 @@ void create_range_controls( void ) gtk_widget_show (box2); box2 = gtk_hbox_new (FALSE, 10); - gtk_container_border_width (GTK_CONTAINER (box2), 10); + gtk_container_set_border_width (GTK_CONTAINER (box2), 10); /* A GtkHScale widget for adjusting the number of digits on the * sample scales. */ @@ -236,7 +236,7 @@ void create_range_controls( void ) gtk_widget_show (box2); box2 = gtk_hbox_new (FALSE, 10); - gtk_container_border_width (GTK_CONTAINER (box2), 10); + gtk_container_set_border_width (GTK_CONTAINER (box2), 10); /* And, one last GtkHScale widget for adjusting the page size of the * scrollbar. */ @@ -260,7 +260,7 @@ void create_range_controls( void ) 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); |