diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/buttonbox/buttonbox.c | 4 | ||||
-rw-r--r-- | examples/calendar/calendar.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/buttonbox/buttonbox.c b/examples/buttonbox/buttonbox.c index 1809154d8d..72df6e8599 100644 --- a/examples/buttonbox/buttonbox.c +++ b/examples/buttonbox/buttonbox.c @@ -16,9 +16,9 @@ static GtkWidget *create_bbox( gint horizontal, frame = gtk_frame_new (title); if (horizontal) - bbox = gtk_hbutton_box_new (); + bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); else - bbox = gtk_vbutton_box_new (); + bbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL); gtk_container_set_border_width (GTK_CONTAINER (bbox), 5); gtk_container_add (GTK_CONTAINER (frame), bbox); diff --git a/examples/calendar/calendar.c b/examples/calendar/calendar.c index b884b25722..2f472137fe 100644 --- a/examples/calendar/calendar.c +++ b/examples/calendar/calendar.c @@ -286,7 +286,7 @@ static void create_calendar( void ) hbox = gtk_hbox_new (FALSE, DEF_PAD); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, DEF_PAD); - hbbox = gtk_hbutton_box_new (); + hbbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (hbox), hbbox, FALSE, FALSE, DEF_PAD); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbbox), GTK_BUTTONBOX_SPREAD); gtk_box_set_spacing (GTK_BOX (hbbox), 5); @@ -384,7 +384,7 @@ static void create_calendar( void ) calendar_data.prev2_sig = gtk_label_new (""); gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev2_sig, FALSE, TRUE, 0); - bbox = gtk_hbutton_box_new (); + bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (vbox), bbox, FALSE, FALSE, 0); gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_END); |