diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-10-30 05:00:32 +0200 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-10-30 17:37:03 +0900 |
commit | c15ef6405c74fedcca53002de8135ae92c4d15e0 (patch) | |
tree | 54a831c12b97cbaa07cd45fc006d616368a8e496 /tests/testbuttons.c | |
parent | ae1d1fd0489aa1ad89c2cebe5ddb5b58200c588a (diff) | |
download | gtk+-c15ef6405c74fedcca53002de8135ae92c4d15e0.tar.gz |
Use gtk_box_new() instead gtk_[v|h]box_new()
Diffstat (limited to 'tests/testbuttons.c')
-rw-r--r-- | tests/testbuttons.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/testbuttons.c b/tests/testbuttons.c index fe19534ac1..a60e5e92fc 100644 --- a/tests/testbuttons.c +++ b/tests/testbuttons.c @@ -32,11 +32,11 @@ int main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - box = gtk_vbox_new (0, FALSE); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); gtk_container_add (GTK_CONTAINER (window), box); - hbox = gtk_hbox_new (0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); gtk_container_add (GTK_CONTAINER (box), hbox); button = gtk_button_new_from_stock (GTK_STOCK_SAVE); gtk_container_add (GTK_CONTAINER (hbox), button); @@ -52,7 +52,7 @@ int main (int argc, char *argv[]) g_free (text); gtk_container_add (GTK_CONTAINER (hbox), label); - hbox = gtk_hbox_new (0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); gtk_container_add (GTK_CONTAINER (box), hbox); button = g_object_new (GTK_TYPE_BUTTON, "label", "document-save", @@ -71,7 +71,7 @@ int main (int argc, char *argv[]) g_free (text); gtk_container_add (GTK_CONTAINER (hbox), label); - hbox = gtk_hbox_new (0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); gtk_container_add (GTK_CONTAINER (box), hbox); button = gtk_button_new_with_label ("_Save"); gtk_container_add (GTK_CONTAINER (hbox), button); @@ -87,7 +87,7 @@ int main (int argc, char *argv[]) g_free (text); gtk_container_add (GTK_CONTAINER (hbox), label); - hbox = gtk_hbox_new (0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); gtk_container_add (GTK_CONTAINER (box), hbox); button = gtk_button_new_with_mnemonic ("_Save"); gtk_container_add (GTK_CONTAINER (hbox), button); @@ -103,7 +103,7 @@ int main (int argc, char *argv[]) g_free (text); gtk_container_add (GTK_CONTAINER (hbox), label); - hbox = gtk_hbox_new (0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); gtk_container_add (GTK_CONTAINER (box), hbox); button = gtk_button_new_with_label ("_Save"); gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_stock (GTK_STOCK_ABOUT, GTK_ICON_SIZE_BUTTON)); @@ -120,7 +120,7 @@ int main (int argc, char *argv[]) g_free (text); gtk_container_add (GTK_CONTAINER (hbox), label); - hbox = gtk_hbox_new (0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); gtk_container_add (GTK_CONTAINER (box), hbox); button = gtk_button_new_with_mnemonic ("_Save"); gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_stock (GTK_STOCK_ABOUT, GTK_ICON_SIZE_BUTTON)); |