diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-10-30 01:21:15 +0200 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-10-30 17:37:02 +0900 |
commit | 2615ebf37e552ad863a5b4c00c1d9bc96a75a557 (patch) | |
tree | 3c1761c8f546a1dfc41d4a9f824f41f3f58eef76 /examples | |
parent | 34627a6371978157a93100e88d86e267e71ce29a (diff) | |
download | gtk+-2615ebf37e552ad863a5b4c00c1d9bc96a75a557.tar.gz |
Use gtk_button_box_new() instead gtk_[v|h]_button_box_new()
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); |