diff options
author | Timm Bäder <mail@baedert.org> | 2016-10-02 17:37:22 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-16 18:17:21 +0200 |
commit | f45dadadd00d892ba16dc081240987425bc32346 (patch) | |
tree | 181fc50993716de719c7d993c9d66bb7b2adb090 /tests/testflowbox.c | |
parent | c301357627172e4aeb3a7cb8d04fd5428d930df4 (diff) | |
download | gtk+-f45dadadd00d892ba16dc081240987425bc32346.tar.gz |
box: Remove 'padding' child property
Diffstat (limited to 'tests/testflowbox.c')
-rw-r--r-- | tests/testflowbox.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/testflowbox.c b/tests/testflowbox.c index ad181219f5..3cccd6ea54 100644 --- a/tests/testflowbox.c +++ b/tests/testflowbox.c @@ -441,14 +441,14 @@ create_window (void) gtk_widget_show (vbox); gtk_widget_show (hbox); gtk_container_add (GTK_CONTAINER (window), hbox); - gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE); swindow = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_widget_show (swindow); - gtk_box_pack_start (GTK_BOX (hbox), swindow, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), swindow, TRUE, TRUE); flowbox = gtk_flow_box_new (); gtk_widget_set_halign (flowbox, GTK_ALIGN_END); @@ -477,14 +477,14 @@ create_window (void) gtk_widget_show (flowbox_cntl); gtk_widget_show (expander); gtk_container_add (GTK_CONTAINER (expander), flowbox_cntl); - gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE); widget = gtk_check_button_new_with_label ("Homogeneous"); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE); gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set whether the items should be displayed at the same size"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "toggled", G_CALLBACK (homogeneous_toggled), flowbox); @@ -495,7 +495,7 @@ create_window (void) flowbox, "activate-on-single-click", G_BINDING_SYNC_CREATE); gtk_widget_show (widget); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); /* Add alignment controls */ widget = gtk_combo_box_text_new (); @@ -507,7 +507,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the horizontal alignment policy"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (horizontal_alignment_changed), flowbox); @@ -521,7 +521,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the vertical alignment policy"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (vertical_alignment_changed), flowbox); @@ -534,7 +534,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the flowbox orientation"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (orientation_changed), flowbox); @@ -549,7 +549,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the selection mode"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (selection_mode_changed), flowbox); @@ -560,7 +560,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the minimum amount of items per line before wrapping"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (line_length_changed), flowbox); @@ -573,7 +573,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the natural amount of items per line "); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (max_line_length_changed), flowbox); @@ -586,42 +586,42 @@ create_window (void) widget = gtk_label_new ("H Spacing"); gtk_widget_show (widget); - gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE); widget = gtk_spin_button_new_with_range (0, 30, 1); gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), INITIAL_CSPACING); gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the horizontal spacing between children"); - gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (spacing_changed), GINT_TO_POINTER (GTK_ORIENTATION_HORIZONTAL)); g_signal_connect (G_OBJECT (widget), "value-changed", G_CALLBACK (spacing_changed), GINT_TO_POINTER (GTK_ORIENTATION_HORIZONTAL)); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), hbox, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), hbox, FALSE, FALSE); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_widget_show (hbox); widget = gtk_label_new ("V Spacing"); gtk_widget_show (widget); - gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE); widget = gtk_spin_button_new_with_range (0, 30, 1); gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), INITIAL_RSPACING); gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the vertical spacing between children"); - gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (spacing_changed), GINT_TO_POINTER (GTK_ORIENTATION_VERTICAL)); g_signal_connect (G_OBJECT (widget), "value-changed", G_CALLBACK (spacing_changed), GINT_TO_POINTER (GTK_ORIENTATION_VERTICAL)); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), hbox, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), hbox, FALSE, FALSE); /* filtering and sorting */ @@ -630,7 +630,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set whether some items should be filtered out"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "toggled", G_CALLBACK (filter_toggled), flowbox); @@ -640,7 +640,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set whether items should be sorted"); - gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "toggled", G_CALLBACK (sort_toggled), flowbox); @@ -653,7 +653,7 @@ create_window (void) gtk_widget_show (items_cntl); gtk_widget_show (expander); gtk_container_add (GTK_CONTAINER (expander), items_cntl); - gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE); /* Add Items control */ widget = gtk_combo_box_text_new (); @@ -667,7 +667,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the item set to use"); - gtk_box_pack_start (GTK_BOX (items_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (items_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (items_changed), flowbox); @@ -681,7 +681,7 @@ create_window (void) gtk_widget_show (widget); gtk_widget_set_tooltip_text (widget, "Set the item's text orientation (cant be done for stock buttons)"); - gtk_box_pack_start (GTK_BOX (items_cntl), widget, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (items_cntl), widget, FALSE, FALSE); g_signal_connect (G_OBJECT (widget), "changed", G_CALLBACK (text_orientation_changed), flowbox); |