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/testcalendar.c | |
parent | c301357627172e4aeb3a7cb8d04fd5428d930df4 (diff) | |
download | gtk+-f45dadadd00d892ba16dc081240987425bc32346.tar.gz |
box: Remove 'padding' child property
Diffstat (limited to 'tests/testcalendar.c')
-rw-r--r-- | tests/testcalendar.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/tests/testcalendar.c b/tests/testcalendar.c index 16f04bf5d1..3d6fab7b18 100644 --- a/tests/testcalendar.c +++ b/tests/testcalendar.c @@ -496,7 +496,7 @@ create_calendar(void) vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); frame = create_frame ("<b>Options</b>", vbox, GTK_ALIGN_FILL, GTK_ALIGN_CENTER); - gtk_box_pack_start (GTK_BOX (rpane), frame, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (rpane), frame, FALSE, TRUE); size = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); context = gtk_widget_get_style_context (calendar); @@ -518,9 +518,9 @@ create_calendar(void) gtk_size_group_add_widget (size, label); 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); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE); + gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE); /* Build the width entry */ @@ -539,9 +539,9 @@ create_calendar(void) gtk_size_group_add_widget (size, label); 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); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE); + gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE); /* Build the height entry */ @@ -560,15 +560,15 @@ create_calendar(void) gtk_size_group_add_widget (size, label); 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); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE); + gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE); /* Build the right details frame */ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); frame = create_frame ("<b>Details</b>", vbox, GTK_ALIGN_FILL, GTK_ALIGN_FILL); - gtk_box_pack_start (GTK_BOX (rpane), frame, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (rpane), frame, FALSE, TRUE); details = gtk_text_view_new(); calendar_data.details_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (details)); @@ -586,12 +586,12 @@ create_calendar(void) GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); - gtk_box_pack_start (GTK_BOX (vbox), scroller, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), scroller, FALSE, TRUE); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, DEF_PAD_SMALL); gtk_widget_set_halign (hbox, GTK_ALIGN_START); gtk_widget_set_valign (hbox, GTK_ALIGN_CENTER); - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE); button = gtk_button_new_with_mnemonic ("Demonstrate _Details"); @@ -600,7 +600,7 @@ create_calendar(void) G_CALLBACK (demonstrate_details), &calendar_data); - gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE); button = gtk_button_new_with_mnemonic ("_Reset Details"); @@ -609,24 +609,24 @@ create_calendar(void) G_CALLBACK (reset_details), &calendar_data); - gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE); toggle = gtk_check_button_new_with_mnemonic ("_Use Details"); g_signal_connect (toggle, "toggled", G_CALLBACK(calendar_toggle_details), &calendar_data); - gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, TRUE, 0); - - /* Build the Right frame with the flags in */ + gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, TRUE); + + /* Build the Right frame with the flags in */ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); frame = create_expander ("<b>Flags</b>", vbox, GTK_ALIGN_FILL, GTK_ALIGN_CENTER); - gtk_box_pack_start (GTK_BOX (rpane), frame, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (rpane), frame, TRUE, TRUE); for (i = 0; i < G_N_ELEMENTS (calendar_data.settings); i++) { toggle = gtk_check_button_new_with_mnemonic(flags[i].label); - gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, TRUE); calendar_data.flag_checkboxes[i] = toggle; g_signal_connect (toggle, "toggled", @@ -643,27 +643,27 @@ create_calendar(void) 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, GTK_ALIGN_FILL, GTK_ALIGN_CENTER); - + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE); label = gtk_label_new ("Signal:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE); calendar_data.last_sig = gtk_label_new (""); - gtk_box_pack_start (GTK_BOX (hbox), calendar_data.last_sig, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), calendar_data.last_sig, FALSE, TRUE); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE); label = gtk_label_new ("Previous signal:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE); calendar_data.prev_sig = gtk_label_new (""); - gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev_sig, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev_sig, FALSE, TRUE); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE); label = gtk_label_new ("Second previous signal:"); - gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE); calendar_data.prev2_sig = gtk_label_new (""); - gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev2_sig, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev2_sig, FALSE, TRUE); /* * Glue everything together @@ -679,15 +679,15 @@ create_calendar(void) vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL); gtk_box_pack_start (GTK_BOX (vbox), hpaned, - TRUE, TRUE, 0); + TRUE, TRUE); gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), - FALSE, TRUE, 0); + FALSE, TRUE); gtk_box_pack_start (GTK_BOX (vbox), frame, - FALSE, TRUE, 0); + FALSE, TRUE); gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), - FALSE, TRUE, 0); + FALSE, TRUE); gtk_box_pack_start (GTK_BOX (vbox), bbox, - FALSE, TRUE, 0); + FALSE, TRUE); gtk_container_add (GTK_CONTAINER (window), vbox); |