diff options
author | Michael Natterer <mitch@gimp.org> | 2010-10-31 18:07:20 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-02 12:04:35 +0900 |
commit | 260ccdfebef9e17842dcc162aefba46fe5459c7c (patch) | |
tree | 52e18d59f343ae23c75a7cf186009b27237a11c3 /tests | |
parent | c50f79041776098cecc4b65bbe4305173dff0847 (diff) | |
download | gtk+-260ccdfebef9e17842dcc162aefba46fe5459c7c.tar.gz |
gtk: remove "gboolean homogeneous" from gtk_box_new()
Because it's FALSE in virtually all use cases.
Diffstat (limited to 'tests')
47 files changed, 274 insertions, 265 deletions
diff --git a/tests/flicker.c b/tests/flicker.c index 376c248e69..738ff341c8 100644 --- a/tests/flicker.c +++ b/tests/flicker.c @@ -68,7 +68,7 @@ create_flicker (void) gtk_paned_pack1 (GTK_PANED (hpaned1), vpaned2, FALSE, TRUE); gtk_paned_set_position (GTK_PANED (vpaned2), 100); - hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_show (hbox2); gtk_paned_pack1 (GTK_PANED (vpaned2), hbox2, FALSE, TRUE); @@ -82,7 +82,7 @@ create_flicker (void) gtk_widget_show (spinbutton8); gtk_box_pack_start (GTK_BOX (hbox2), spinbutton8, TRUE, TRUE, 0); - vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_widget_show (vbox1); gtk_paned_pack2 (GTK_PANED (vpaned2), vbox1, TRUE, TRUE); @@ -131,7 +131,7 @@ create_flicker (void) gtk_paned_pack2 (GTK_PANED (hpaned1), vpaned1, TRUE, TRUE); gtk_paned_set_position (GTK_PANED (vpaned1), 0); - hbox1 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox1 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_show (hbox1); gtk_paned_pack1 (GTK_PANED (vpaned1), hbox1, FALSE, TRUE); @@ -150,7 +150,7 @@ create_flicker (void) gtk_widget_show (spinbutton19); gtk_box_pack_start (GTK_BOX (hbox1), spinbutton19, TRUE, TRUE, 0); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_widget_show (vbox2); gtk_paned_pack2 (GTK_PANED (vpaned1), vbox2, FALSE, FALSE); diff --git a/tests/print-editor.c b/tests/print-editor.c index 228c19582b..b7e241a148 100644 --- a/tests/print-editor.c +++ b/tests/print-editor.c @@ -399,10 +399,10 @@ create_custom_widget (GtkPrintOperation *operation, GtkWidget *vbox, *hbox, *font, *label; gtk_print_operation_set_custom_tab_label (operation, "Other"); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 12); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); @@ -566,9 +566,9 @@ preview_cb (GtkPrintOperation *op, window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (main_window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); page = gtk_spin_button_new_with_range (1, 100, 1); diff --git a/tests/prop-editor.c b/tests/prop-editor.c index be99e827ee..bd90e54397 100644 --- a/tests/prop-editor.c +++ b/tests/prop-editor.c @@ -849,7 +849,7 @@ property_widget (GObject *object, GFlagsClass *fclass; gint j; - prop_edit = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + prop_edit = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); fclass = G_FLAGS_CLASS (g_type_class_ref (spec->value_type)); @@ -898,7 +898,7 @@ property_widget (GObject *object, { GtkWidget *label, *button; - prop_edit = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + prop_edit = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); label = gtk_label_new (""); button = gtk_button_new_with_label ("Properties"); @@ -1020,7 +1020,7 @@ properties_from_type (GObject *object, } - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); sw = gtk_scrolled_window_new (NULL, NULL); @@ -1102,7 +1102,7 @@ child_properties_from_object (GObject *object) ++i; } - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); sw = gtk_scrolled_window_new (NULL, NULL); @@ -1148,7 +1148,7 @@ children_from_object (GObject *object) gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, i, i + 1); - prop_edit = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + prop_edit = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); str = object_label (object, NULL); label = gtk_label_new (str); @@ -1164,7 +1164,7 @@ children_from_object (GObject *object) gtk_table_attach_defaults (GTK_TABLE (table), prop_edit, 1, 2, i, i + 1); } - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); sw = gtk_scrolled_window_new (NULL, NULL); @@ -1203,7 +1203,7 @@ cells_from_object (GObject *object) gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, i, i + 1); - prop_edit = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + prop_edit = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); str = object_label (object, NULL); label = gtk_label_new (str); @@ -1219,7 +1219,7 @@ cells_from_object (GObject *object) gtk_table_attach_defaults (GTK_TABLE (table), prop_edit, 1, 2, i, i + 1); } - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); sw = gtk_scrolled_window_new (NULL, NULL); diff --git a/tests/testactions.c b/tests/testactions.c index cbd1c2ecb3..ec574c6912 100644 --- a/tests/testactions.c +++ b/tests/testactions.c @@ -360,7 +360,7 @@ create_window (GtkActionGroup *action_group) g_signal_connect_swapped (window, "destroy", G_CALLBACK (g_object_unref), merge); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box); gtk_widget_show (box); @@ -376,7 +376,7 @@ create_window (GtkActionGroup *action_group) g_error_free (error); } - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_end (GTK_BOX (box), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c index 75e09d155f..f82b966266 100644 --- a/tests/testadjustsize.c +++ b/tests/testadjustsize.c @@ -199,7 +199,7 @@ open_control_window (void) g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), window); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box); toggle = @@ -404,7 +404,7 @@ open_valigned_label_window (void) g_signal_connect (test_window, "delete-event", G_CALLBACK (gtk_main_quit), test_window); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_widget_show (box); gtk_container_add (GTK_CONTAINER (window), box); diff --git a/tests/testassistant.c b/tests/testassistant.c index e936d02877..a6b4ef5e67 100644 --- a/tests/testassistant.c +++ b/tests/testassistant.c @@ -60,7 +60,7 @@ add_completion_test_page (GtkWidget *assistant, GtkWidget *check; PageData *pdata; - page = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + page = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); check = gtk_check_button_new_with_label ("Complete"); gtk_container_add (GTK_CONTAINER (page), gtk_label_new (text)); @@ -337,7 +337,7 @@ create_nonlinear_assistant (GtkWidget *widget) nonlinear_assistant_forward_page, NULL, NULL); - page = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 6); + page = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); button = gtk_radio_button_new_with_label (NULL, "branch A"); gtk_box_pack_start (GTK_BOX (page), button, FALSE, FALSE, 0); @@ -574,7 +574,7 @@ main (int argc, gchar *argv[]) g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (gtk_false), NULL); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 6); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); gtk_container_add (GTK_CONTAINER (window), box); for (i = 0; i < G_N_ELEMENTS (buttons); i++) diff --git a/tests/testbbox.c b/tests/testbbox.c index 39a61f03b2..c2e46c0cdd 100644 --- a/tests/testbbox.c +++ b/tests/testbbox.c @@ -132,7 +132,7 @@ main (int argc, window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (gtk_main_quit), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); /* GtkHButtonBox */ @@ -153,7 +153,7 @@ main (int argc, /* Options */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); combo_types = gtk_combo_box_text_new (); diff --git a/tests/testbuttons.c b/tests/testbuttons.c index a60e5e92fc..0fcc99225f 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_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); 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_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); 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_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); 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_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); 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_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); 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_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); 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)); diff --git a/tests/testcalendar.c b/tests/testcalendar.c index 86b087aeb1..1960c5e0e4 100644 --- a/tests/testcalendar.c +++ b/tests/testcalendar.c @@ -468,12 +468,12 @@ create_calendar(void) G_CALLBACK (calendar_next_year), &calendar_data); - rpane = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, DEF_PAD_SMALL); + rpane = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); gtk_paned_pack2 (GTK_PANED (hpaned), rpane, FALSE, FALSE); /* Build the right font-button */ - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, DEF_PAD_SMALL); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); frame = create_frame ("<b>Options</b>", vbox, 1, 0); gtk_box_pack_start (GTK_BOX (rpane), frame, FALSE, TRUE, 0); size = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); @@ -493,7 +493,7 @@ create_calendar(void) gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_size_group_add_widget (size, label); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, DEF_PAD_SMALL); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, DEF_PAD_SMALL); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); @@ -513,7 +513,7 @@ create_calendar(void) gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_size_group_add_widget (size, label); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, DEF_PAD_SMALL); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, DEF_PAD_SMALL); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); @@ -533,14 +533,14 @@ create_calendar(void) gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_size_group_add_widget (size, label); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, DEF_PAD_SMALL); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, DEF_PAD_SMALL); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); /* Build the right details frame */ - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, DEF_PAD_SMALL); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); frame = create_frame ("<b>Details</b>", vbox, 1, 1); gtk_box_pack_start (GTK_BOX (rpane), frame, FALSE, TRUE, 0); @@ -562,7 +562,7 @@ create_calendar(void) gtk_box_pack_start (GTK_BOX (vbox), scroller, FALSE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, DEF_PAD_SMALL); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, DEF_PAD_SMALL); align = gtk_alignment_new (0.0, 0.5, 0.0, 0.0); gtk_container_add (GTK_CONTAINER (align), hbox); gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, TRUE, 0); @@ -593,7 +593,7 @@ create_calendar(void) /* Build the Right frame with the flags in */ - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); frame = create_expander ("<b>Flags</b>", vbox, 1, 0); gtk_box_pack_start (GTK_BOX (rpane), frame, TRUE, TRUE, 0); @@ -614,24 +614,25 @@ create_calendar(void) * Build the Signal-event part. */ - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, TRUE, DEF_PAD_SMALL); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); + gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE); frame = create_frame ("<b>Signal Events</b>", vbox, 1, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 3); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); label = gtk_label_new ("Signal:"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); calendar_data.last_sig = gtk_label_new (""); gtk_box_pack_start (GTK_BOX (hbox), calendar_data.last_sig, FALSE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 3); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); label = gtk_label_new ("Previous signal:"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); calendar_data.prev_sig = gtk_label_new (""); gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev_sig, FALSE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 3); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); label = gtk_label_new ("Second previous signal:"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); @@ -649,7 +650,7 @@ create_calendar(void) g_signal_connect (button, "clicked", G_CALLBACK (gtk_main_quit), NULL); gtk_container_add (GTK_CONTAINER (bbox), button); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, DEF_PAD_SMALL); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0); diff --git a/tests/testcellrenderertext.c b/tests/testcellrenderertext.c index ebdb04ccac..6e831cc3b3 100644 --- a/tests/testcellrenderertext.c +++ b/tests/testcellrenderertext.c @@ -263,7 +263,7 @@ main (int argc, char **argv) G_CALLBACK (gtk_main_quit), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 12); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 12); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12); gtk_container_add (GTK_CONTAINER (window), vbox); /* LTR */ diff --git a/tests/testcombo.c b/tests/testcombo.c index 88179df294..4a04f1a6bd 100644 --- a/tests/testcombo.c +++ b/tests/testcombo.c @@ -1064,14 +1064,14 @@ main (int argc, char **argv) gtk_container_set_border_width (GTK_CONTAINER (window), 5); g_signal_connect (window, "destroy", gtk_main_quit, NULL); - mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 2); + mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_add (GTK_CONTAINER (window), mainbox); /* GtkCellView */ tmp = gtk_frame_new ("GtkCellView"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1096,7 +1096,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("GtkComboBox (list)"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1138,7 +1138,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("GtkComboBox (dynamic list)"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1184,7 +1184,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("GtkComboBox (custom)"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1244,7 +1244,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("GtkComboBox (tree)"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1289,7 +1289,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("GtkComboBox (grid mode)"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1301,7 +1301,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("GtkComboBox with entry"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1314,7 +1314,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("What are you ?"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1339,7 +1339,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("Where are you ?"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); @@ -1372,7 +1372,7 @@ main (int argc, char **argv) tmp = gtk_frame_new ("Unconstrained Menu"); gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE, FALSE, 0); - boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (boom), 5); gtk_container_add (GTK_CONTAINER (tmp), boom); diff --git a/tests/testcombochange.c b/tests/testcombochange.c index 54b0d94d6b..c9da758796 100644 --- a/tests/testcombochange.c +++ b/tests/testcombochange.c @@ -260,11 +260,11 @@ main (int argc, char **argv) content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 12); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); gtk_container_set_border_width (GTK_CONTAINER (hbox), 12); gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE, 0); - combo_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + combo_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_box_pack_start (GTK_BOX (hbox), combo_vbox, FALSE, FALSE, 0); label = gtk_label_new (NULL); @@ -300,7 +300,7 @@ main (int argc, char **argv) gtk_container_add (GTK_CONTAINER (scrolled_window), text_view); - button_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + button_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_box_pack_start (GTK_BOX (hbox), button_vbox, FALSE, FALSE, 0); gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 300); diff --git a/tests/testellipsise.c b/tests/testellipsise.c index b3a69993b6..291caaf735 100644 --- a/tests/testellipsise.c +++ b/tests/testellipsise.c @@ -133,7 +133,7 @@ main (int argc, char *argv[]) gtk_window_set_default_size (GTK_WINDOW (window), 400, 300); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 6); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); gtk_container_add (GTK_CONTAINER (window), vbox); combo = gtk_combo_box_text_new (); diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c index 23789ea582..bf7a31fc82 100644 --- a/tests/testentrycompletion.c +++ b/tests/testentrycompletion.c @@ -301,7 +301,7 @@ add_with_prop_edit_button (GtkWidget *vbox, GtkWidget *entry, GtkEntryCompletion { GtkWidget *hbox, *button; - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 12); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0); @@ -327,7 +327,7 @@ main (int argc, char *argv[]) gtk_container_set_border_width (GTK_CONTAINER (window), 5); g_signal_connect (window, "delete_event", gtk_main_quit, NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 2); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); diff --git a/tests/testexpand.c b/tests/testexpand.c index c4a874ddbe..937b8110d7 100644 --- a/tests/testexpand.c +++ b/tests/testexpand.c @@ -63,9 +63,9 @@ create_box_window (void) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Boxes"); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); - box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (box1), gtk_label_new ("VBox 1 Top"), diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index 289562a34f..dcefbc1eb3 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -600,7 +600,7 @@ main (int argc, char **argv) /* Preview widget */ /* THIS IS A TERRIBLE PREVIEW WIDGET, AND SHOULD NOT BE COPIED AT ALL. */ - preview_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + preview_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); /*gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER (dialog), preview_vbox);*/ preview_label = gtk_label_new (NULL); diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c index 3f13bd93c3..329c64a4e2 100644 --- a/tests/testfilechooserbutton.c +++ b/tests/testfilechooserbutton.c @@ -169,7 +169,7 @@ tests_button_clicked_cb (GtkButton *real_button, gtk_window_set_transient_for (GTK_WINDOW (tests), GTK_WINDOW (gtk_widget_get_toplevel (user_data))); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (tests), box); gtk_widget_show (box); @@ -291,7 +291,7 @@ main (int argc, g_signal_connect (win, "style-set", G_CALLBACK (win_style_set_cb), NULL); g_signal_connect (win, "response", G_CALLBACK (gtk_main_quit), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 18); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18); gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (win))), vbox); frame = gtk_frame_new ("<b>GtkFileChooserButton</b>"); @@ -305,11 +305,11 @@ main (int argc, label_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); - group_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 6); + group_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); gtk_container_add (GTK_CONTAINER (alignment), group_box); /* OPEN */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 12); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); gtk_box_pack_start (GTK_BOX (group_box), hbox, FALSE, FALSE, 0); label = gtk_label_new_with_mnemonic ("_Open:"); @@ -338,7 +338,7 @@ main (int argc, gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); /* SELECT_FOLDER */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 12); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); gtk_box_pack_start (GTK_BOX (group_box), hbox, FALSE, FALSE, 0); label = gtk_label_new_with_mnemonic ("Select _Folder:"); diff --git a/tests/testframe.c b/tests/testframe.c index cf79473402..1ab6e2902f 100644 --- a/tests/testframe.c +++ b/tests/testframe.c @@ -101,7 +101,7 @@ int main (int argc, char **argv) g_signal_connect (G_OBJECT (window), "delete-event", gtk_main_quit, NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (window), vbox); frame = gtk_frame_new ("Testing"); diff --git a/tests/testgrid.c b/tests/testgrid.c index 76d1a8cb52..d576848e98 100644 --- a/tests/testgrid.c +++ b/tests/testgrid.c @@ -78,7 +78,7 @@ text_grid (void) paned1 = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); gtk_container_add (GTK_CONTAINER (window), paned1); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_paned_pack1 (GTK_PANED (paned1), box, TRUE, FALSE); gtk_paned_pack2 (GTK_PANED (paned1), gtk_label_new ("Space"), TRUE, FALSE); @@ -117,13 +117,13 @@ box_comparison (void) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Grid vs. Box"); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_container_add (GTK_CONTAINER (vbox), gtk_label_new ("Above")); gtk_container_add (GTK_CONTAINER (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)); - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (vbox), box); gtk_box_pack_start (GTK_BOX (box), test_widget ("1", "white"), FALSE, FALSE, 0); diff --git a/tests/testgtk.c b/tests/testgtk.c index 9a2229899a..dc50da0bdf 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -228,7 +228,7 @@ build_alpha_widgets (void) GTK_EXPAND | GTK_FILL, 0, 0, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); label = gtk_label_new (NULL); gtk_label_set_markup (GTK_LABEL (label), "<i>Entry: </i>"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); @@ -298,7 +298,7 @@ create_alpha_window (GtkWidget *widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 12); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); @@ -687,7 +687,7 @@ create_buttons (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "GtkButton"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); table = gtk_table_new (3, 3, FALSE); @@ -765,7 +765,7 @@ create_buttons (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -810,10 +810,10 @@ create_toggle_buttons (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "GtkToggleButton"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -833,7 +833,7 @@ create_toggle_buttons (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -942,7 +942,7 @@ create_check_buttons (GtkWidget *widget) box1 = gtk_dialog_get_content_area (GTK_DIALOG (window)); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -1007,7 +1007,7 @@ create_radio_buttons (GtkWidget *widget) box1 = gtk_dialog_get_content_area (GTK_DIALOG (window)); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -1034,7 +1034,7 @@ create_radio_buttons (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -1132,13 +1132,13 @@ create_button_box (GtkWidget *widget) gtk_container_set_border_width (GTK_CONTAINER (window), 10); - main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), main_vbox); frame_horz = gtk_frame_new ("Horizontal Button Boxes"); gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz, TRUE, TRUE, 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); gtk_container_add (GTK_CONTAINER (frame_horz), vbox); @@ -1165,7 +1165,7 @@ create_button_box (GtkWidget *widget) frame_vert = gtk_frame_new ("Vertical Button Boxes"); gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert, TRUE, TRUE, 10); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 10); gtk_container_add (GTK_CONTAINER (frame_vert), hbox); @@ -1567,10 +1567,10 @@ create_statusbar (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "statusbar"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -1625,7 +1625,7 @@ create_statusbar (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -1688,7 +1688,7 @@ create_handle_box (GtkWidget *widget) gtk_container_set_border_width (GTK_CONTAINER (window), 20); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_widget_show (vbox); @@ -1700,7 +1700,7 @@ create_handle_box (GtkWidget *widget) gtk_container_add (GTK_CONTAINER (vbox), separator); gtk_widget_show (separator); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 10); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10); gtk_container_add (GTK_CONTAINER (vbox), hbox); gtk_widget_show (hbox); @@ -1911,9 +1911,9 @@ void create_labels (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "Label"); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_box_pack_end (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); @@ -1926,7 +1926,7 @@ void create_labels (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (window), 5); @@ -1985,7 +1985,7 @@ void create_labels (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); g_signal_connect (label, "activate-link", G_CALLBACK (activate_link), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0); frame = gtk_frame_new ("Line wrapped label"); label = gtk_label_new ("This is an example of a line-wrapped label. It should not be taking "\ @@ -2092,7 +2092,7 @@ create_rotated_label (GtkWidget *widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); @@ -2100,7 +2100,7 @@ create_rotated_label (GtkWidget *widget) gtk_label_set_markup (GTK_LABEL (label), "Hello World\n<i>Rotate</i> <span underline='single' foreground='blue'>me</span>"); gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0); - scale_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + scale_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), scale_hbox, FALSE, FALSE, 0); scale_label = gtk_label_new (NULL); @@ -2306,10 +2306,10 @@ create_reparent (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "reparent"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); - box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -2318,7 +2318,7 @@ create_reparent (GtkWidget *widget) frame = gtk_frame_new ("Frame 1"); gtk_box_pack_start (GTK_BOX (box2), frame, TRUE, TRUE, 0); - box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (box3), 5); gtk_container_add (GTK_CONTAINER (frame), box3); @@ -2341,7 +2341,7 @@ create_reparent (GtkWidget *widget) frame = gtk_frame_new ("Frame 2"); gtk_box_pack_start (GTK_BOX (box2), frame, TRUE, TRUE, 0); - box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (box3), 5); gtk_container_add (GTK_CONTAINER (frame), box3); @@ -2359,7 +2359,7 @@ create_reparent (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -2432,10 +2432,10 @@ create_resize_grips (GtkWidget *widget) G_CALLBACK (gtk_widget_destroyed), &window); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); /* North west */ @@ -2465,7 +2465,7 @@ create_resize_grips (GtkWidget *widget) g_signal_connect (area, "button_press_event", G_CALLBACK (grippy_button_press), GINT_TO_POINTER (GDK_WINDOW_EDGE_NORTH_EAST)); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); /* West */ @@ -2491,7 +2491,7 @@ create_resize_grips (GtkWidget *widget) GINT_TO_POINTER (GDK_WINDOW_EDGE_EAST)); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); /* South west */ @@ -2596,7 +2596,7 @@ create_saved_position (GtkWidget *widget) G_CALLBACK (gtk_widget_destroyed), &window); - main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 0); gtk_container_add (GTK_CONTAINER (window), main_vbox); @@ -2616,7 +2616,7 @@ create_saved_position (GtkWidget *widget) NULL), NULL); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); @@ -2628,7 +2628,7 @@ create_saved_position (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (hbox), x_label, TRUE, TRUE, 0); g_object_set_data (G_OBJECT (window), "x", x_label); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); @@ -2646,7 +2646,7 @@ create_saved_position (GtkWidget *widget) NULL); gtk_box_pack_start (GTK_BOX (main_vbox), any, FALSE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 10); gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, TRUE, 0); @@ -2696,10 +2696,10 @@ create_pixbuf (GtkWidget *widget) gtk_container_set_border_width (GTK_CONTAINER (window), 0); gtk_widget_realize(window); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -2711,7 +2711,7 @@ create_pixbuf (GtkWidget *widget) pixbufwid = new_pixbuf ("test.xpm", gdk_window, NULL); label = gtk_label_new ("Pixbuf\ntest"); - box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (box3), 2); gtk_container_add (GTK_CONTAINER (box3), pixbufwid); gtk_container_add (GTK_CONTAINER (box3), label); @@ -2723,7 +2723,7 @@ create_pixbuf (GtkWidget *widget) pixbufwid = new_pixbuf ("test.xpm", gdk_window, NULL); label = gtk_label_new ("Pixbuf\ntest"); - box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (box3), 2); gtk_container_add (GTK_CONTAINER (box3), pixbufwid); gtk_container_add (GTK_CONTAINER (box3), label); @@ -2734,7 +2734,7 @@ create_pixbuf (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -2778,10 +2778,10 @@ create_tooltips (GtkWidget *widget) gtk_window_set_screen (GTK_WINDOW (window), gtk_widget_get_screen (widget)); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); @@ -2833,7 +2833,7 @@ create_tooltips (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -2896,7 +2896,7 @@ create_image (GtkWidget *widget) G_CALLBACK (gtk_widget_destroyed), &window); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (window), vbox); @@ -3205,7 +3205,7 @@ create_menus (GtkWidget *widget) gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); gtk_widget_show (box1); @@ -3253,7 +3253,7 @@ create_menus (GtkWidget *widget) gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem); gtk_widget_show (menuitem); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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); @@ -3308,7 +3308,7 @@ create_menus (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); gtk_widget_show (separator); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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); @@ -3615,9 +3615,10 @@ create_modal_window (GtkWidget *widget) gtk_window_set_modal (GTK_WINDOW(window),TRUE); /* Create widgets */ - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE,5); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); frame1 = gtk_frame_new ("Standard dialogs in modal form"); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, TRUE,5); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); + gtk_box_set_homogeneous (GTK_BOX (box2), TRUE); btnColor = gtk_button_new_with_label ("Color"); btnFile = gtk_button_new_with_label ("File Selection"); btnClose = gtk_button_new_with_label ("Close"); @@ -3973,15 +3974,15 @@ create_entry (GtkWidget *widget) gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_box_pack_start (GTK_BOX (box2), hbox, TRUE, TRUE, 0); entry = gtk_entry_new (); @@ -4039,7 +4040,7 @@ create_entry (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -4079,7 +4080,7 @@ create_expander (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "expander"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); expander = gtk_expander_new ("The Hidden"); @@ -4166,17 +4167,17 @@ create_event_box (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "event box"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); gtk_widget_modify_bg (window, GTK_STATE_NORMAL, &color); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (box1), hbox, TRUE, FALSE, 0); event_box = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX (hbox), event_box, TRUE, FALSE, 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (event_box), vbox); g_signal_connect (event_box, "button_press_event", G_CALLBACK (event_box_label_pressed), @@ -4207,7 +4208,7 @@ create_event_box (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -4338,7 +4339,7 @@ create_size_group_window (GdkScreen *screen, g_object_unref (vgroup1); g_object_unref (vgroup2); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_box_pack_start (GTK_BOX (content_area), hbox, FALSE, FALSE, 0); spin_button = gtk_spin_button_new_with_range (1, 100, 1); @@ -4596,23 +4597,23 @@ create_spins (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "GtkSpinButton"); - main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 10); gtk_container_add (GTK_CONTAINER (window), main_vbox); frame = gtk_frame_new ("Not accelerated"); gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); gtk_container_add (GTK_CONTAINER (frame), vbox); /* Time, month, hex spinners */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 5); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 5); label = gtk_label_new ("Time :"); @@ -4630,7 +4631,7 @@ create_spins (GtkWidget *widget) gtk_entry_set_width_chars (GTK_ENTRY (spinner), 5); gtk_box_pack_start (GTK_BOX (vbox2), spinner, FALSE, TRUE, 0); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 5); label = gtk_label_new ("Month :"); @@ -4654,7 +4655,7 @@ create_spins (GtkWidget *widget) gtk_entry_set_width_chars (GTK_ENTRY (spinner), 9); gtk_box_pack_start (GTK_BOX (vbox2), spinner, FALSE, TRUE, 0); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 5); label = gtk_label_new ("Hex :"); @@ -4679,14 +4680,14 @@ create_spins (GtkWidget *widget) frame = gtk_frame_new ("Accelerated"); gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); gtk_container_add (GTK_CONTAINER (frame), vbox); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 5); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 5); label = gtk_label_new ("Value :"); @@ -4699,7 +4700,7 @@ create_spins (GtkWidget *widget) gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner1), TRUE); gtk_box_pack_start (GTK_BOX (vbox2), spinner1, FALSE, TRUE, 0); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 5); label = gtk_label_new ("Digits :"); @@ -4713,7 +4714,7 @@ create_spins (GtkWidget *widget) spinner2); gtk_box_pack_start (GTK_BOX (vbox2), spinner2, FALSE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 5); button = gtk_check_button_new_with_label ("Snap to 0.5-ticks"); @@ -4732,7 +4733,7 @@ create_spins (GtkWidget *widget) val_label = gtk_label_new (""); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 5); button = gtk_button_new_with_label ("Value as Int"); @@ -4755,7 +4756,7 @@ create_spins (GtkWidget *widget) frame = gtk_frame_new ("Using Convenience Constructor"); gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_container_add (GTK_CONTAINER (frame), hbox); @@ -4768,7 +4769,7 @@ create_spins (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (hbox), spinner, TRUE, TRUE, 5); gtk_box_pack_start (GTK_BOX (hbox), val_label, TRUE, TRUE, 5); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, TRUE, 0); button = gtk_button_new_with_label ("Close"); @@ -4917,7 +4918,7 @@ create_cursors (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "Cursors"); - main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 0); gtk_container_add (GTK_CONTAINER (window), main_vbox); @@ -4931,7 +4932,7 @@ create_cursors (GtkWidget *widget) NULL); #ifdef GDK_WINDOWING_X11 - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); @@ -4953,7 +4954,7 @@ create_cursors (GtkWidget *widget) G_CALLBACK (change_cursor_theme), hbox); #endif - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); @@ -5011,7 +5012,7 @@ create_cursors (GtkWidget *widget) NULL); gtk_box_pack_start (GTK_BOX (main_vbox), any, FALSE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 10); gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, TRUE, 0); @@ -5105,7 +5106,7 @@ create_color_selection (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "GtkColorButton"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_container_set_border_width (GTK_CONTAINER (hbox), 8); gtk_container_add (GTK_CONTAINER (window), hbox); @@ -5423,7 +5424,7 @@ create_font_selection (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "GtkFontButton"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_container_set_border_width (GTK_CONTAINER (hbox), 8); gtk_container_add (GTK_CONTAINER (window), hbox); @@ -5621,7 +5622,7 @@ create_display_screen (GtkWidget *widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroy), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 3); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3); gtk_container_add (GTK_CONTAINER (window), vbox); frame = gtk_frame_new ("Select screen or display"); @@ -5816,12 +5817,12 @@ create_range_controls (GtkWidget *widget) gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); gtk_widget_show (box1); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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); @@ -5852,7 +5853,7 @@ create_range_controls (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (box2), scale, TRUE, TRUE, 0); gtk_widget_show (scale); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); scale = gtk_scale_new (GTK_ORIENTATION_VERTICAL, GTK_ADJUSTMENT (adjustment)); gtk_widget_set_size_request (scale, -1, 200); @@ -5887,7 +5888,7 @@ create_range_controls (GtkWidget *widget) gtk_widget_show (separator); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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); @@ -6118,11 +6119,13 @@ create_pages (GtkNotebook *notebook, gint start, gint end) child = gtk_frame_new (buffer); gtk_container_set_border_width (GTK_CONTAINER (child), 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, TRUE,0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE); gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); gtk_container_add (GTK_CONTAINER (child), vbox); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, TRUE,0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 5); button = gtk_check_button_new_with_label ("Fill Tab"); @@ -6144,7 +6147,7 @@ create_pages (GtkNotebook *notebook, gint start, gint end) gtk_widget_show_all (child); - label_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + label_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); pixwid = gtk_image_new_from_pixbuf (book_closed); g_object_set_data (G_OBJECT (child), "tab_pixmap", pixwid); @@ -6155,7 +6158,7 @@ create_pages (GtkNotebook *notebook, gint start, gint end) gtk_widget_show_all (label_box); - menu_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + menu_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); pixwid = gtk_image_new_from_pixbuf (book_closed); g_object_set_data (G_OBJECT (child), "menu_pixmap", pixwid); @@ -6282,7 +6285,7 @@ create_notebook (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "notebook"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); sample_notebook = gtk_notebook_new (); @@ -6305,7 +6308,7 @@ create_notebook (GtkWidget *widget) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 10); - box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -6315,7 +6318,7 @@ create_notebook (GtkWidget *widget) G_CALLBACK (notebook_popup), sample_notebook); - box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -6332,7 +6335,8 @@ create_notebook (GtkWidget *widget) g_signal_connect (button, "clicked", G_CALLBACK (show_all_pages), sample_notebook); - box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, TRUE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10); + gtk_box_set_homogeneous (GTK_BOX (box2), TRUE); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); @@ -6505,7 +6509,7 @@ create_panes (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "Panes"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL); @@ -6598,7 +6602,7 @@ paned_keyboard_window1 (GtkWidget *widget) gtk_paned_pack1 (GTK_PANED (hpaned1), frame1, FALSE, TRUE); gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_IN); - vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (frame1), vbox1); button7 = gtk_button_new_with_label ("button7"); @@ -6620,7 +6624,7 @@ paned_keyboard_window1 (GtkWidget *widget) frame5 = gtk_frame_new (NULL); gtk_container_add (GTK_CONTAINER (frame2), frame5); - hbox1 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox1 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (frame5), hbox1); button5 = gtk_button_new_with_label ("button5"); @@ -6695,7 +6699,7 @@ paned_keyboard_window2 (GtkWidget *widget) button13 = gtk_button_new_with_label ("button13"); gtk_container_add (GTK_CONTAINER (frame6), button13); - hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_paned_pack2 (GTK_PANED (hpaned2), hbox2, TRUE, TRUE); vpaned2 = gtk_paned_new (GTK_ORIENTATION_VERTICAL); @@ -6747,7 +6751,7 @@ paned_keyboard_window3 (GtkWidget *widget) gtk_widget_get_screen (widget)); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window3), vbox2); label1 = gtk_label_new ("Three panes nested inside each other"); @@ -6821,7 +6825,7 @@ paned_keyboard_window4 (GtkWidget *widget) gtk_window_set_screen (GTK_WINDOW (window4), gtk_widget_get_screen (widget)); - vbox3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window4), vbox3); label2 = gtk_label_new ("Widget tree:\n\nhpaned \n - vpaned\n - hbox\n - vpaned\n - vpaned\n - vpaned\n"); @@ -6840,7 +6844,7 @@ paned_keyboard_window4 (GtkWidget *widget) button18 = gtk_button_new_with_label ("button18"); gtk_paned_pack2 (GTK_PANED (vpaned3), button18, TRUE, TRUE); - hbox3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_paned_pack2 (GTK_PANED (hpaned6), hbox3, TRUE, TRUE); vpaned4 = gtk_paned_new (GTK_ORIENTATION_VERTICAL); @@ -7221,7 +7225,7 @@ create_wmhints (GtkWidget *widget) gdk_window_set_decorations (gdk_window, GDK_DECOR_ALL | GDK_DECOR_MENU); gdk_window_set_functions (gdk_window, GDK_FUNC_ALL | GDK_FUNC_RESIZE); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); gtk_widget_show (box1); @@ -7236,7 +7240,7 @@ create_wmhints (GtkWidget *widget) gtk_widget_show (separator); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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); @@ -7304,7 +7308,7 @@ tracking_label (GtkWidget *window) GtkWidget *hbox; GtkWidget *button; - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); g_signal_connect_object (hbox, "destroy", @@ -7407,7 +7411,7 @@ get_state_controls (GtkWidget *window) GtkWidget *button_above; GtkWidget *button_below; - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); button = gtk_button_new_with_label ("Stick"); g_signal_connect_object (button, @@ -7517,7 +7521,7 @@ create_window_states (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "Window states"); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); iconified = gtk_window_new (GTK_WINDOW_TOPLEVEL); @@ -7838,7 +7842,7 @@ make_gravity_window (GtkWidget *destroy_with, gtk_window_set_screen (GTK_WINDOW (window), gtk_widget_get_screen (destroy_with)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_widget_show (vbox); gtk_container_add (GTK_CONTAINER (window), vbox); @@ -7972,7 +7976,7 @@ window_controls (GtkWidget *window) window, G_CONNECT_SWAPPED); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (control_window), vbox); @@ -8377,14 +8381,14 @@ create_progress_bar (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (pdata->window), "GtkProgressBar"); gtk_container_set_border_width (GTK_CONTAINER (pdata->window), 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); gtk_box_pack_start (GTK_BOX (content_area), vbox, FALSE, TRUE, 0); frame = gtk_frame_new ("Progress"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (frame), vbox2); align = gtk_alignment_new (0.5, 0.5, 0, 0); @@ -8400,7 +8404,7 @@ create_progress_bar (GtkWidget *widget) align = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_box_pack_start (GTK_BOX (vbox2), align, FALSE, FALSE, 5); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_add (GTK_CONTAINER (align), hbox); label = gtk_label_new ("Label updated by user :"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); @@ -8410,7 +8414,7 @@ create_progress_bar (GtkWidget *widget) frame = gtk_frame_new ("Options"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (frame), vbox2); tab = gtk_table_new (7, 2, FALSE); @@ -8425,7 +8429,7 @@ create_progress_bar (GtkWidget *widget) pdata->omenu1 = build_option_menu (items1, 4, 0, progressbar_toggle_orientation, pdata); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_table_attach (GTK_TABLE (tab), hbox, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 5, 5); @@ -8439,7 +8443,7 @@ create_progress_bar (GtkWidget *widget) GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 5, 5); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_table_attach (GTK_TABLE (tab), hbox, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 5, 5); @@ -8464,7 +8468,7 @@ create_progress_bar (GtkWidget *widget) 2, // PANGO_ELLIPSIZE_MIDDLE progressbar_toggle_ellipsize, pdata); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_table_attach (GTK_TABLE (tab), hbox, 1, 2, 10, 11, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 5, 5); @@ -8754,7 +8758,7 @@ create_properties (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "test properties"); gtk_container_set_border_width (GTK_CONTAINER (window), 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 1); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1); gtk_container_add (GTK_CONTAINER (window), vbox); label = gtk_label_new ("This is just a dumb test to test properties.\nIf you need a generic module, get GLE."); @@ -8916,7 +8920,7 @@ create_snapshot (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "test snapshot"); gtk_container_set_border_width (GTK_CONTAINER (window), 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 1); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1); gtk_container_add (GTK_CONTAINER (window), vbox); button = gtk_button_new_with_label ("Snapshot widget"); @@ -9038,7 +9042,7 @@ create_selection_test (GtkWidget *widget) /* Create the list */ - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); @@ -9192,7 +9196,7 @@ create_scroll_test (GtkWidget *widget) gtk_window_set_title (GTK_WINDOW (window), "Scroll Test"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); @@ -9591,7 +9595,7 @@ create_rc_file (GtkWidget *widget) frame = gtk_aspect_frame_new ("Testing RC file prioritization", 0.5, 0.5, 0.0, TRUE); gtk_box_pack_start (GTK_BOX (content_area), frame, FALSE, FALSE, 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (frame), vbox); label = gtk_label_new ("This label should be red"); @@ -9863,7 +9867,7 @@ create_styles (GtkWidget *widget) gtk_box_pack_start (GTK_BOX (action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); gtk_box_pack_start (GTK_BOX (content_area), vbox, FALSE, FALSE, 0); @@ -10069,7 +10073,7 @@ create_main_window (void) G_CALLBACK (gtk_false), NULL); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); if (gtk_micro_version > 0) @@ -10095,7 +10099,7 @@ create_main_window (void) GTK_POLICY_AUTOMATIC); gtk_box_pack_start (GTK_BOX (box1), scrolled_window, TRUE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), box2); gtk_container_set_focus_vadjustment (GTK_CONTAINER (box2), @@ -10118,7 +10122,7 @@ create_main_window (void) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); diff --git a/tests/testheightforwidth.c b/tests/testheightforwidth.c index b105344f37..c4774d57bd 100644 --- a/tests/testheightforwidth.c +++ b/tests/testheightforwidth.c @@ -942,7 +942,7 @@ create_window (void) gint i; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 6); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); gtk_container_set_border_width (GTK_CONTAINER (window), 8); diff --git a/tests/testiconview-keynav.c b/tests/testiconview-keynav.c index 928fbc5d93..07e9479fa2 100644 --- a/tests/testiconview-keynav.c +++ b/tests/testiconview-keynav.c @@ -235,7 +235,7 @@ main (int argc, char *argv[]) gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); views.header1 = g_object_new (GTK_TYPE_LABEL, diff --git a/tests/testiconview.c b/tests/testiconview.c index 3657e96ebb..053b7636e8 100644 --- a/tests/testiconview.c +++ b/tests/testiconview.c @@ -433,7 +433,7 @@ main (gint argc, gchar **argv) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size (GTK_WINDOW (window), 700, 400); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); diff --git a/tests/testinput.c b/tests/testinput.c index a7e51af581..ad7b7e2415 100644 --- a/tests/testinput.c +++ b/tests/testinput.c @@ -303,7 +303,7 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_name (window, "Test Input"); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_widget_show (vbox); diff --git a/tests/testmenubars.c b/tests/testmenubars.c index 5012259e9d..250b515798 100644 --- a/tests/testmenubars.c +++ b/tests/testmenubars.c @@ -127,9 +127,9 @@ main (int argc, char **argv) gtk_window_set_title (GTK_WINDOW (window), "menus"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); - box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); /* Rotation by 0 and 180 degrees is broken in Pango, #166832 */ menubar1 = create_menubar (GTK_PACK_DIRECTION_LTR, GTK_PACK_DIRECTION_LTR, 0.01); @@ -155,7 +155,7 @@ main (int argc, char **argv) gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); gtk_widget_show (separator); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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); diff --git a/tests/testmerge.c b/tests/testmerge.c index fdd9932bbd..1e43bb818b 100644 --- a/tests/testmerge.c +++ b/tests/testmerge.c @@ -626,7 +626,7 @@ main (int argc, char **argv) gtk_table_attach (GTK_TABLE (table), frame, 0,2, 1,2, GTK_FILL|GTK_EXPAND, GTK_FILL, 0, 0); - menu_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + menu_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (menu_box), 2); gtk_container_add (GTK_CONTAINER (frame), menu_box); @@ -667,7 +667,7 @@ main (int argc, char **argv) gtk_table_attach (GTK_TABLE (table), frame, 0,1, 0,1, GTK_FILL, GTK_FILL|GTK_EXPAND, 0, 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 2); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_set_border_width (GTK_CONTAINER (vbox), 2); gtk_container_add (GTK_CONTAINER (frame), vbox); diff --git a/tests/testmultiscreen.c b/tests/testmultiscreen.c index 52a05dbed4..19e206130e 100644 --- a/tests/testmultiscreen.c +++ b/tests/testmultiscreen.c @@ -122,7 +122,8 @@ main (int argc, char *argv[]) g_signal_connect (window[i], "destroy", G_CALLBACK (gtk_main_quit), NULL); - vbox[i] = gtk_box_new (GTK_ORIENTATION_VERTICAL, TRUE, 0); + vbox[i] = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous (GTK_BOX (vbox[i]), TRUE); gtk_container_add (GTK_CONTAINER (window[i]), vbox[i]); button = g_object_new (GTK_TYPE_BUTTON, @@ -151,8 +152,9 @@ main (int argc, char *argv[]) gtk_widget_show_all (window[i]); moving_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - moving_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, TRUE, 0); - + moving_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous (GTK_BOX (moving_vbox), TRUE); + gtk_container_add (GTK_CONTAINER (moving_window), moving_vbox); moving_button = g_object_new (GTK_TYPE_BUTTON, "label", "Move to Next Screen", diff --git a/tests/testoffscreen.c b/tests/testoffscreen.c index a10f8fa82a..ff9ba6b9e0 100644 --- a/tests/testoffscreen.c +++ b/tests/testoffscreen.c @@ -197,15 +197,15 @@ create_widgets (void) GtkWidget *vbox, *hbox, *label, *combo, *entry, *button, *cb; GtkWidget *sw, *text_view; - main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); - main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (main_vbox), main_hbox, TRUE, TRUE, 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (GTK_BOX (main_hbox), vbox, TRUE, TRUE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new ("This label may be ellipsized\nto make it fit."); @@ -307,7 +307,7 @@ main (int argc, G_CALLBACK (gtk_main_quit), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, @@ -351,7 +351,7 @@ main (int argc, G_CALLBACK (scale_changed), offscreen2); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_offscreen_box_add2 (GTK_OFFSCREEN_BOX (offscreen2), box2); widget2 = gtk_button_new_with_label ("Offscreen in offscreen"); diff --git a/tests/testorientable.c b/tests/testorientable.c index 11e2ef59b5..b3fa0e2d56 100644 --- a/tests/testorientable.c +++ b/tests/testorientable.c @@ -61,7 +61,7 @@ main (int argc, char **argv) gtk_table_set_col_spacings (GTK_TABLE (table), 12); /* GtkBox */ - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6, FALSE); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); orientables = g_list_prepend (orientables, box); gtk_table_attach_defaults (GTK_TABLE (table), box, 0, 1, 1, 2); gtk_box_pack_start (GTK_BOX (box), diff --git a/tests/testrecentchoosermenu.c b/tests/testrecentchoosermenu.c index 1bcde3307a..3060811ade 100644 --- a/tests/testrecentchoosermenu.c +++ b/tests/testrecentchoosermenu.c @@ -164,7 +164,7 @@ main (int argc, char *argv[]) accel_group = gtk_accel_group_new (); gtk_window_add_accel_group (GTK_WINDOW (window), accel_group); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box); gtk_widget_show (box); diff --git a/tests/testscale.c b/tests/testscale.c index 0ee26749c9..8621c3f2c9 100755 --- a/tests/testscale.c +++ b/tests/testscale.c @@ -46,7 +46,7 @@ int main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Ranges with marks"); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); frame = gtk_frame_new ("No marks"); scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, @@ -96,7 +96,7 @@ int main (int argc, char *argv[]) gtk_container_add (GTK_CONTAINER (frame), scale); gtk_box_pack_start (GTK_BOX (box), frame, FALSE, FALSE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_box_pack_start (GTK_BOX (box), box2, TRUE, TRUE, 0); frame = gtk_frame_new ("No marks"); diff --git a/tests/testscrolledwindow.c b/tests/testscrolledwindow.c index ddfaf85cb9..0c9927971e 100644 --- a/tests/testscrolledwindow.c +++ b/tests/testscrolledwindow.c @@ -60,8 +60,8 @@ scrollable_policy (void) GtkWidget *viewport, *label, *expander, *widget; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 2); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 6); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); gtk_container_set_border_width (GTK_CONTAINER (window), 8); @@ -102,14 +102,14 @@ scrollable_policy (void) /* Add controls here */ expander = gtk_expander_new ("Controls"); gtk_expander_set_expanded (GTK_EXPANDER (expander), TRUE); - cntl = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 2); + cntl = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_widget_show (cntl); gtk_widget_show (expander); gtk_container_add (GTK_CONTAINER (expander), cntl); gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE, 0); /* Add Horizontal policy control here */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 2); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_widget_show (hbox); widget = gtk_label_new ("hscroll-policy"); @@ -129,7 +129,7 @@ scrollable_policy (void) G_CALLBACK (horizontal_policy_changed), viewport); /* Add Vertical policy control here */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 2); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_widget_show (hbox); widget = gtk_label_new ("vscroll-policy"); @@ -180,7 +180,7 @@ scrollable_policy (void) G_CALLBACK (content_height_changed), swindow); /* Add Label orientation control here */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 2); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_widget_show (hbox); widget = gtk_label_new ("label-flip"); diff --git a/tests/testselection.c b/tests/testselection.c index dfe2ed118d..b6b79d3a2f 100644 --- a/tests/testselection.c +++ b/tests/testselection.c @@ -442,7 +442,7 @@ main (int argc, char *argv[]) gtk_table_attach_defaults (GTK_TABLE (table), scrolled, 0, 1, 1, 2); gtk_widget_show (selection_text); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 2); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_table_attach (GTK_TABLE (table), hbox, 0, 2, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 0); gtk_widget_show (hbox); diff --git a/tests/testsocket.c b/tests/testsocket.c index 3b44fd0bb8..e822e13e32 100644 --- a/tests/testsocket.c +++ b/tests/testsocket.c @@ -97,7 +97,7 @@ create_socket (void) Socket *socket = g_new (Socket, 1); - socket->box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + socket->box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); socket->socket = gtk_socket_new (); @@ -321,7 +321,7 @@ main (int argc, char *argv[]) gtk_window_set_title (GTK_WINDOW (window), "Socket Test"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); menubar = gtk_menu_bar_new (); @@ -375,13 +375,13 @@ main (int argc, char *argv[]) G_CALLBACK (grab_window_toggled), window); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX(hbox), entry, FALSE, FALSE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); box = hbox; diff --git a/tests/testsocket_common.c b/tests/testsocket_common.c index 7d147f32a6..995dbf9ee4 100644 --- a/tests/testsocket_common.c +++ b/tests/testsocket_common.c @@ -217,7 +217,8 @@ create_content (GtkWindow *window, gboolean local) frame = gtk_frame_new (local? "Local" : "Remote"); gtk_container_set_border_width (GTK_CONTAINER (frame), 3); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, TRUE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE); gtk_container_set_border_width (GTK_CONTAINER (vbox), 3); gtk_container_add (GTK_CONTAINER (frame), vbox); diff --git a/tests/testspinbutton.c b/tests/testspinbutton.c index 535a35cb2c..4759a9d647 100644 --- a/tests/testspinbutton.c +++ b/tests/testspinbutton.c @@ -31,7 +31,7 @@ main (int argc, char **argv) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (window, "delete_event", gtk_main_quit, NULL); - mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 2); + mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_add (GTK_CONTAINER (window), mainbox); for (max = 9; max <= 999999999; max = max * 10 + 9) { @@ -42,8 +42,8 @@ main (int argc, char **argv) 0.0); GtkWidget *spin = gtk_spin_button_new (adj, 1.0, 0); - GtkWidget *hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 2); - + GtkWidget *hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); + gtk_box_pack_start (GTK_BOX (hbox), spin, FALSE, diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c index cd55b032bd..f45da9ccda 100644 --- a/tests/testtoolbar.c +++ b/tests/testtoolbar.c @@ -530,12 +530,12 @@ main (gint argc, gchar **argv) gtk_table_attach (GTK_TABLE (table), toolbar, 0,2, 0,1, GTK_FILL|GTK_EXPAND, GTK_FILL, 0, 0); - hbox1 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 3); + hbox1 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); gtk_container_set_border_width (GTK_CONTAINER (hbox1), 5); gtk_table_attach (GTK_TABLE (table), hbox1, 1,2, 1,2, GTK_FILL|GTK_EXPAND, GTK_FILL, 0, 0); - hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 2); + hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_container_set_border_width (GTK_CONTAINER (hbox2), 5); gtk_table_attach (GTK_TABLE (table), hbox2, 1,2, 2,3, GTK_FILL|GTK_EXPAND, GTK_FILL, 0, 0); @@ -706,7 +706,7 @@ main (gint argc, gchar **argv) add_item_to_list (store, item, "Terminal"); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_table_attach (GTK_TABLE (table), hbox, 1,2, 4,5, GTK_FILL|GTK_EXPAND, GTK_FILL, 0, 0); diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 5ec25abfcd..9cb1fcc055 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -275,7 +275,7 @@ main (int argc, char *argv[]) g_signal_connect (window, "delete_event", G_CALLBACK (gtk_main_quit), NULL); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 3); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3); gtk_container_add (GTK_CONTAINER (window), box); /* A check button using the tooltip-markup property */ diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index a0f6841b7a..478329494e 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -812,11 +812,11 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); gtk_window_set_default_size (GTK_WINDOW (window), 500, 300); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); /* Left Pane */ @@ -837,7 +837,7 @@ main (int argc, char *argv[]) gtk_box_pack_start (GTK_BOX (hbox), swindow, TRUE, TRUE, 0); /* Middle Pane */ - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 0); bbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL); @@ -878,7 +878,7 @@ main (int argc, char *argv[]) /* Right Pane */ - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 0); swindow = gtk_scrolled_window_new (NULL, NULL); @@ -946,7 +946,7 @@ main (int argc, char *argv[]) gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), FALSE, FALSE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); button = gtk_button_new_with_mnemonic ("_Add new Column"); g_signal_connect (button, "clicked", G_CALLBACK (add_clicked), left_tree_model); diff --git a/tests/testtreecolumnsizing.c b/tests/testtreecolumnsizing.c index 68aa9a7e60..2ba563175e 100644 --- a/tests/testtreecolumnsizing.c +++ b/tests/testtreecolumnsizing.c @@ -178,7 +178,7 @@ main (int argc, char **argv) g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 5); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (window), vbox); /* Option menu contents */ diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c index aab1051864..600ac8b207 100644 --- a/tests/testtreeflow.c +++ b/tests/testtreeflow.c @@ -135,7 +135,7 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Reflow test"); g_signal_connect (window, "destroy", gtk_main_quit, NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Incremental Reflow Test"), FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); @@ -159,7 +159,7 @@ main (int argc, char *argv[]) "text", TEXT_COLUMN, NULL); gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, FALSE); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); button = gtk_button_new_with_mnemonic ("<b>_Futz!!</b>"); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); diff --git a/tests/testtreefocus.c b/tests/testtreefocus.c index 43c1407dcb..4a244ea583 100644 --- a/tests/testtreefocus.c +++ b/tests/testtreefocus.c @@ -353,7 +353,7 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Card planning sheet"); g_signal_connect (window, "destroy", gtk_main_quit, NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Jonathan's Holiday Card Planning Sheet"), FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); @@ -469,7 +469,7 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Model"); g_signal_connect (window, "destroy", gtk_main_quit, NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("The model revealed"), FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); diff --git a/tests/testtreesort.c b/tests/testtreesort.c index 0d90c55269..63c03bb25c 100644 --- a/tests/testtreesort.c +++ b/tests/testtreesort.c @@ -125,7 +125,7 @@ main (int argc, char *argv[]) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Words, words, words - Window 1"); g_signal_connect (window, "destroy", gtk_main_quit, NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Jonathan and Kristian's list of cool words. (And Anders' cool list of numbers) \n\nThis is just a GtkTreeStore"), FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); @@ -255,7 +255,7 @@ main (int argc, char *argv[]) gtk_window_set_title (GTK_WINDOW (window2), "Words, words, words - window 2"); g_signal_connect (window2, "destroy", gtk_main_quit, NULL); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 8); gtk_box_pack_start (GTK_BOX (vbox2), gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort wrapping the GtkTreeStore of window 1"), @@ -327,7 +327,7 @@ main (int argc, char *argv[]) gtk_window_set_title (GTK_WINDOW (window3), "Words, words, words - Window 3"); g_signal_connect (window3, "destroy", gtk_main_quit, NULL); - vbox3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox3), 8); gtk_box_pack_start (GTK_BOX (vbox3), gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort wrapping the GtkTreeModelSort of window 2"), diff --git a/tests/testvolumebutton.c b/tests/testvolumebutton.c index 29bf4891ad..29b3e33f94 100644 --- a/tests/testvolumebutton.c +++ b/tests/testvolumebutton.c @@ -88,7 +88,7 @@ main (int argc, window = gtk_window_new (GTK_WINDOW_TOPLEVEL); button = gtk_volume_button_new (); button2 = gtk_volume_button_new (); - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); g_signal_connect (G_OBJECT (button), "value-changed", G_CALLBACK (value_changed), diff --git a/tests/testwindows.c b/tests/testwindows.c index 09e2960751..e3e9ab26c4 100644 --- a/tests/testwindows.c +++ b/tests/testwindows.c @@ -798,7 +798,7 @@ main (int argc, char **argv) g_signal_connect (G_OBJECT (window), "delete-event", gtk_main_quit, NULL); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_container_add (GTK_CONTAINER (window), hbox); gtk_widget_show (hbox); @@ -823,9 +823,9 @@ main (int argc, char **argv) gtk_widget_show (darea); gtk_widget_modify_bg (darea, GTK_STATE_NORMAL, &black); - - - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + + + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, diff --git a/tests/testxinerama.c b/tests/testxinerama.c index 8ecca105fd..0dc822978a 100644 --- a/tests/testxinerama.c +++ b/tests/testxinerama.c @@ -109,7 +109,8 @@ main (int argc, char *argv[]) primary_monitor); gtk_label_set_markup (GTK_LABEL (label), str); g_free (str); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, TRUE, 1); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1); + gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_container_add (GTK_CONTAINER (vbox), label); button = gtk_button_new_with_label ("Query current monitor"); diff --git a/tests/treestoretest.c b/tests/treestoretest.c index 5b4c72a001..8129683ba0 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -303,7 +303,7 @@ make_window (gint view_type) break; } - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_window_set_default_size (GTK_WINDOW (window), 300, 350); scrolled_window = gtk_scrolled_window_new (NULL, NULL); @@ -351,7 +351,7 @@ make_window (gint view_type) gtk_widget_set_sensitive (button, FALSE); button = gtk_button_new_with_label ("gtk_tree_store_insert"); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); @@ -362,7 +362,7 @@ make_window (gint view_type) tree_view); button = gtk_button_new_with_label ("gtk_tree_store_set"); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); @@ -373,7 +373,7 @@ make_window (gint view_type) tree_view); button = gtk_button_new_with_label ("gtk_tree_store_insert_with_values"); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); |