[gtk+/wip/baedert/progressbar: 28/36] box: Remove fill child property
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/progressbar: 28/36] box: Remove fill child property
- Date: Mon, 24 Apr 2017 12:39:16 +0000 (UTC)
commit 12b94c7efefa5963d1288212d004496cca10b20b
Author: Timm Bäder <mail baedert org>
Date: Fri Apr 21 22:34:36 2017 +0200
box: Remove fill child property
GtkWidget:halign and GtkWidget:valign are sufficient
demos/gtk-demo/assistant.c | 6 +-
demos/gtk-demo/button_box.c | 40 +--
demos/gtk-demo/changedisplay.c | 12 +-
demos/gtk-demo/clipboard.c | 20 +-
demos/gtk-demo/colorsel.c | 4 +-
demos/gtk-demo/combobox.c | 8 +-
demos/gtk-demo/cursors.c | 4 +-
demos/gtk-demo/dialog.c | 21 +-
demos/gtk-demo/drawingarea.c | 8 +-
demos/gtk-demo/editable_cells.c | 11 +-
demos/gtk-demo/entry_buffer.c | 6 +-
demos/gtk-demo/entry_completion.c | 4 +-
demos/gtk-demo/expander.c | 14 +-
demos/gtk-demo/iconview.c | 4 +-
demos/gtk-demo/images.c | 18 +-
demos/gtk-demo/infobar.c | 26 +-
demos/gtk-demo/list_store.c | 4 +-
demos/gtk-demo/listbox.c | 4 +-
demos/gtk-demo/listbox.ui | 1 -
demos/gtk-demo/menus.c | 8 +-
demos/gtk-demo/overlay.c | 4 +-
demos/gtk-demo/panes.c | 8 +-
demos/gtk-demo/search_entry.c | 8 +-
demos/gtk-demo/search_entry2.c | 20 +-
demos/gtk-demo/sidebar.c | 6 +-
demos/gtk-demo/sizegroup.c | 6 +-
demos/gtk-demo/spinner.c | 2 +-
demos/gtk-demo/textscroll.c | 2 +-
demos/gtk-demo/toolpalette.c | 22 +-
demos/gtk-demo/tree_store.c | 5 +-
demos/widget-factory/widget-factory.c | 8 +-
demos/widget-factory/widget-factory.ui | 46 +--
docs/tools/widgets.c | 159 +++----
examples/search-bar.c | 4 +-
gtk/gtkactionbar.c | 4 +-
gtk/gtkappchooserdialog.c | 6 +-
gtk/gtkassistant.c | 8 +-
gtk/gtkbbox.c | 2 +-
gtk/gtkbox.c | 162 +-------
gtk/gtkbox.h | 8 +-
gtk/gtkcolorchooserwidget.c | 4 +-
gtk/gtkcustompaperunixdialog.c | 24 +-
gtk/gtkentrycompletion.c | 2 +-
gtk/gtkfilechooserwidget.c | 10 +-
gtk/gtkheaderbar.c | 12 +-
gtk/gtkinfobar.c | 3 +-
gtk/gtkmenusectionbox.c | 12 +-
gtk/gtkmenutoolbutton.c | 6 +-
gtk/gtkmodelmenuitem.c | 4 +-
gtk/gtkmountoperation.c | 32 +-
gtk/gtkpathbar.c | 4 +-
gtk/gtkprintbackend.c | 16 +-
gtk/gtkprinteroptionwidget.c | 20 +-
gtk/gtkprintunixdialog.c | 14 +-
gtk/gtkrecentchooserdialog.c | 2 +-
gtk/gtkshortcutssection.c | 2 +-
gtk/gtktoolbutton.c | 12 +-
gtk/gtktreeviewcolumn.c | 8 +-
gtk/inspector/general.c | 8 +-
gtk/inspector/prop-editor.c | 6 +-
gtk/inspector/recorder.c | 8 +-
gtk/inspector/size-groups.c | 4 +-
gtk/inspector/strv-editor.c | 10 +-
gtk/ui/gtkaboutdialog.ui | 19 -
gtk/ui/gtkassistant.ui | 9 -
gtk/ui/gtkcoloreditor.ui | 1 -
gtk/ui/gtkfilechooserwidget.ui | 9 -
gtk/ui/gtklockbutton.ui | 3 -
gtk/ui/gtkmessagedialog.ui | 6 -
gtk/ui/gtkplacesview.ui | 2 -
gtk/ui/gtkprintunixdialog.ui | 37 --
gtk/ui/gtkrecentchooserdefault.ui | 3 -
gtk/ui/gtkscalebutton.ui | 4 -
gtk/ui/gtktooltipwindow.ui | 4 -
tests/flicker.c | 42 +-
tests/gdkgears.c | 10 +-
tests/motion-compression.c | 6 +-
tests/overlayscroll.c | 2 +-
tests/print-editor.c | 6 +-
tests/syncscroll.c | 6 +-
tests/testaccel.c | 2 +-
tests/testactionbar.c | 4 +-
tests/testadjustsize.c | 4 +-
tests/testanimation.c | 8 +-
tests/testappchooserbutton.c | 10 +-
tests/testassistant.c | 9 +-
tests/testbaseline.c | 14 +-
tests/testbbox.c | 12 +-
tests/testbox.c | 41 +--
tests/testboxcss.c | 14 +-
tests/testcalendar.c | 69 ++--
tests/testcellarea.c | 52 ++--
tests/testcellrenderertext.c | 8 +-
tests/testclipboard.c | 4 +-
tests/testcombo.c | 26 +-
tests/testcombochange.c | 24 +-
tests/testellipsise.c | 6 +-
tests/testentrycompletion.c | 4 +-
tests/testexpand.c | 28 +-
tests/testexpander.c | 2 +-
tests/testfilechooserbutton.c | 26 +-
tests/testflowbox.c | 44 +-
tests/testframe.c | 6 +-
tests/testgiconpixbuf.c | 12 +-
tests/testgrid.c | 10 +-
tests/testgtk.c | 722 ++++++++++++++++----------------
tests/testheaderbar.c | 8 +-
tests/testheightforwidth.c | 2 +-
tests/testiconview.c | 22 +-
tests/testinput.c | 4 +-
tests/testmultidisplay.c | 4 +-
tests/testorientable.c | 18 +-
tests/testoverlay.c | 4 +-
tests/testpixbuf-scale.c | 10 +-
tests/testrecentchoosermenu.c | 6 +-
tests/testscale.c | 16 +-
tests/testscrolledwindow.c | 68 ++--
tests/testselection.c | 6 +-
tests/testsensitive.c | 8 +-
tests/testspinbutton.c | 2 +-
tests/teststack.c | 6 +-
tests/testswitch.c | 12 +-
tests/testtoolbar.c | 20 +-
tests/testtooltips.c | 22 +-
tests/testtoplevelembed.c | 4 +-
tests/testtreecolumns.c | 31 +-
tests/testtreecolumnsizing.c | 6 +-
tests/testtreeedit.c | 12 +-
tests/testtreeflow.c | 8 +-
tests/testtreefocus.c | 8 +-
tests/testtreesort.c | 18 +-
tests/testwindowsize.c | 2 +-
tests/treestoretest.c | 30 +-
testsuite/a11y/placeholder-text.ui | 3 -
testsuite/gtk/ui/container1.ui | 2 +-
testsuite/gtk/ui/container8.ui | 2 +-
136 files changed, 1117 insertions(+), 1513 deletions(-)
---
diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c
index 4dd76da..a1c0837 100644
--- a/demos/gtk-demo/assistant.c
+++ b/demos/gtk-demo/assistant.c
@@ -96,12 +96,12 @@ create_page1 (GtkWidget *assistant)
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
label = gtk_label_new ("You must fill out this entry to continue:");
- gtk_box_pack_start (GTK_BOX (box), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), label);
entry = gtk_entry_new ();
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
gtk_widget_set_valign (entry, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (box), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), entry);
g_signal_connect (G_OBJECT (entry), "changed",
G_CALLBACK (on_entry_changed), assistant);
@@ -119,7 +119,7 @@ create_page2 (GtkWidget *assistant)
checkbutton = gtk_check_button_new_with_label ("This is optional data, you may continue "
"even if you do not check this");
- gtk_box_pack_start (GTK_BOX (box), checkbutton, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), checkbutton);
gtk_assistant_append_page (GTK_ASSISTANT (assistant), box);
gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), box, TRUE);
diff --git a/demos/gtk-demo/button_box.c b/demos/gtk-demo/button_box.c
index b9a17ec..b2000a2 100644
--- a/demos/gtk-demo/button_box.c
+++ b/demos/gtk-demo/button_box.c
@@ -70,64 +70,52 @@ do_button_box (GtkWidget *do_widget)
frame_horz = gtk_frame_new ("Horizontal Button Boxes");
gtk_widget_set_margin_top (frame_horz, 10);
gtk_widget_set_margin_bottom (frame_horz, 10);
- gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
g_object_set (vbox, "margin", 10, NULL);
gtk_container_add (GTK_CONTAINER (frame_horz), vbox);
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Spread", 40, GTK_BUTTONBOX_SPREAD),
- TRUE);
+ create_bbox (TRUE, "Spread", 40, GTK_BUTTONBOX_SPREAD));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Edge", 40, GTK_BUTTONBOX_EDGE),
- TRUE);
+ create_bbox (TRUE, "Edge", 40, GTK_BUTTONBOX_EDGE));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Start", 40, GTK_BUTTONBOX_START),
- TRUE);
+ create_bbox (TRUE, "Start", 40, GTK_BUTTONBOX_START));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "End", 40, GTK_BUTTONBOX_END),
- TRUE);
+ create_bbox (TRUE, "End", 40, GTK_BUTTONBOX_END));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Center", 40, GTK_BUTTONBOX_CENTER),
- TRUE);
+ create_bbox (TRUE, "Center", 40, GTK_BUTTONBOX_CENTER));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Expand", 0, GTK_BUTTONBOX_EXPAND),
- TRUE);
+ create_bbox (TRUE, "Expand", 0, GTK_BUTTONBOX_EXPAND));
frame_vert = gtk_frame_new ("Vertical Button Boxes");
- gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
g_object_set (hbox, "margin", 10, NULL);
gtk_container_add (GTK_CONTAINER (frame_vert), hbox);
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Spread", 10, GTK_BUTTONBOX_SPREAD),
- TRUE);
+ create_bbox (FALSE, "Spread", 10, GTK_BUTTONBOX_SPREAD));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Edge", 10, GTK_BUTTONBOX_EDGE),
- TRUE);
+ create_bbox (FALSE, "Edge", 10, GTK_BUTTONBOX_EDGE));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Start", 10, GTK_BUTTONBOX_START),
- TRUE);
+ create_bbox (FALSE, "Start", 10, GTK_BUTTONBOX_START));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "End", 10, GTK_BUTTONBOX_END),
- TRUE);
+ create_bbox (FALSE, "End", 10, GTK_BUTTONBOX_END));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Center", 10, GTK_BUTTONBOX_CENTER),
- TRUE);
+ create_bbox (FALSE, "Center", 10, GTK_BUTTONBOX_CENTER));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Expand", 0, GTK_BUTTONBOX_EXPAND),
- TRUE);
+ create_bbox (FALSE, "Expand", 0, GTK_BUTTONBOX_EXPAND));
}
if (!gtk_widget_get_visible (window))
diff --git a/demos/gtk-demo/changedisplay.c b/demos/gtk-demo/changedisplay.c
index 3694eb0..baa3b36 100644
--- a/demos/gtk-demo/changedisplay.c
+++ b/demos/gtk-demo/changedisplay.c
@@ -312,7 +312,7 @@ create_frame (ChangeDisplayInfo *info,
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrollwin),
GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (hbox), scrollwin, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), scrollwin);
*tree_view = gtk_tree_view_new ();
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (*tree_view), FALSE);
@@ -322,7 +322,7 @@ create_frame (ChangeDisplayInfo *info,
gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
*button_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
- gtk_box_pack_start (GTK_BOX (hbox), *button_vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), *button_vbox);
if (!info->size_group)
info->size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
@@ -362,11 +362,11 @@ create_display_frame (ChangeDisplayInfo *info)
button = left_align_button_new ("_Open...");
g_signal_connect (button, "clicked", G_CALLBACK (open_display_cb), info);
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button);
button = left_align_button_new ("_Close");
g_signal_connect (button, "clicked", G_CALLBACK (close_display_cb), info);
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button);
info->display_model = (GtkTreeModel *)gtk_list_store_new (DISPLAY_NUM_COLUMNS,
G_TYPE_STRING,
@@ -539,10 +539,10 @@ do_changedisplay (GtkWidget *do_widget)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
g_object_set (vbox, "margin", 8, NULL);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
frame = create_display_frame (info);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
initialize_displays (info);
diff --git a/demos/gtk-demo/clipboard.c b/demos/gtk-demo/clipboard.c
index 8c6f8c3..dc3f11c 100644
--- a/demos/gtk-demo/clipboard.c
+++ b/demos/gtk-demo/clipboard.c
@@ -225,45 +225,45 @@ do_clipboard (GtkWidget *do_widget)
label = gtk_label_new ("\"Copy\" will copy the text\nin the entry to the clipboard");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
g_object_set (hbox, "margin", 8, NULL);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Create the first entry */
entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
/* Create the button */
button = gtk_button_new_with_mnemonic (_("_Copy"));
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (copy_button_clicked), entry);
label = gtk_label_new ("\"Paste\" will paste the text from the clipboard to the entry");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
g_object_set (hbox, "margin", 8, NULL);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Create the second entry */
entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
/* Create the button */
button = gtk_button_new_with_mnemonic (_("_Paste"));
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (paste_button_clicked), entry);
label = gtk_label_new ("Images can be transferred via the clipboard, too");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
g_object_set (hbox, "margin", 8, NULL);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Create the first image */
image = gtk_image_new_from_icon_name ("dialog-warning",
diff --git a/demos/gtk-demo/colorsel.c b/demos/gtk-demo/colorsel.c
index 8f6a1c5..c5c50e9 100644
--- a/demos/gtk-demo/colorsel.c
+++ b/demos/gtk-demo/colorsel.c
@@ -87,7 +87,7 @@ do_colorsel (GtkWidget *do_widget)
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
da = gtk_drawing_area_new ();
gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (da), 200);
@@ -100,7 +100,7 @@ do_colorsel (GtkWidget *do_widget)
gtk_widget_set_halign (button, GTK_ALIGN_END);
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (change_color_callback), NULL);
diff --git a/demos/gtk-demo/combobox.c b/demos/gtk-demo/combobox.c
index cbff3b1..bead7d0 100644
--- a/demos/gtk-demo/combobox.c
+++ b/demos/gtk-demo/combobox.c
@@ -326,7 +326,7 @@ do_combobox (GtkWidget *do_widget)
* insensitive rows
*/
frame = gtk_frame_new ("Items with icons");
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
g_object_set (box, "margin", 5, NULL);
@@ -367,7 +367,7 @@ do_combobox (GtkWidget *do_widget)
/* A combobox demonstrating trees.
*/
frame = gtk_frame_new ("Where are we ?");
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
g_object_set (box, "margin", 5, NULL);
@@ -395,7 +395,7 @@ do_combobox (GtkWidget *do_widget)
/* A GtkComboBoxEntry with validation */
frame = gtk_frame_new ("Editable");
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
g_object_set (box, "margin", 5, NULL);
@@ -413,7 +413,7 @@ do_combobox (GtkWidget *do_widget)
/* A combobox with string IDs */
frame = gtk_frame_new ("String IDs");
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
g_object_set (box, "margin", 5, NULL);
diff --git a/demos/gtk-demo/cursors.c b/demos/gtk-demo/cursors.c
index 019cd63..b9f48d9 100644
--- a/demos/gtk-demo/cursors.c
+++ b/demos/gtk-demo/cursors.c
@@ -27,13 +27,13 @@ add_section (GtkWidget *box,
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_widget_set_margin_top (label, 10);
gtk_widget_set_margin_bottom (label, 10);
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
section = gtk_flow_box_new ();
gtk_widget_set_halign (section, GTK_ALIGN_START);
gtk_flow_box_set_selection_mode (GTK_FLOW_BOX (section), GTK_SELECTION_NONE);
gtk_flow_box_set_min_children_per_line (GTK_FLOW_BOX (section), 2);
gtk_flow_box_set_max_children_per_line (GTK_FLOW_BOX (section), 20);
- gtk_box_pack_start (GTK_BOX (box), section, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), section);
return section;
}
diff --git a/demos/gtk-demo/dialog.c b/demos/gtk-demo/dialog.c
index 5b982f5..e9d0b5c 100644
--- a/demos/gtk-demo/dialog.c
+++ b/demos/gtk-demo/dialog.c
@@ -56,15 +56,15 @@ interactive_dialog_clicked (GtkButton *button,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_box_pack_start (GTK_BOX (content_area), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox);
image = gtk_image_new_from_icon_name ("dialog-question", GTK_ICON_SIZE_DIALOG);
- gtk_box_pack_start (GTK_BOX (hbox), image, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), image);
table = gtk_grid_new ();
gtk_grid_set_row_spacing (GTK_GRID (table), 4);
gtk_grid_set_column_spacing (GTK_GRID (table), 4);
- gtk_box_pack_start (GTK_BOX (hbox), table, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), table);
label = gtk_label_new_with_mnemonic ("_Entry 1");
gtk_grid_attach (GTK_GRID (table), label, 0, 0, 1, 1);
local_entry1 = gtk_entry_new ();
@@ -122,30 +122,29 @@ do_dialog (GtkWidget *do_widget)
/* Standard message dialog */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_button_new_with_mnemonic ("_Message Dialog");
g_signal_connect (button, "clicked",
G_CALLBACK (message_dialog_clicked), NULL);
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL),
- FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
/* Interactive dialog*/
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
button = gtk_button_new_with_mnemonic ("_Interactive Dialog");
g_signal_connect (button, "clicked",
G_CALLBACK (interactive_dialog_clicked), NULL);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE);
- gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
+ gtk_box_pack_start (GTK_BOX (vbox2), button);
table = gtk_grid_new ();
gtk_grid_set_row_spacing (GTK_GRID (table), 4);
gtk_grid_set_column_spacing (GTK_GRID (table), 4);
- gtk_box_pack_start (GTK_BOX (hbox), table, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), table);
label = gtk_label_new_with_mnemonic ("_Entry 1");
gtk_grid_attach (GTK_GRID (table), label, 0, 0, 1, 1);
diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c
index b613e3e..ec48399 100644
--- a/demos/gtk-demo/drawingarea.c
+++ b/demos/gtk-demo/drawingarea.c
@@ -221,11 +221,11 @@ do_drawingarea (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label),
"<u>Checkerboard pattern</u>");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
da = gtk_drawing_area_new ();
gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (da), 100);
@@ -240,11 +240,11 @@ do_drawingarea (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label),
"<u>Scribble area</u>");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
da = gtk_drawing_area_new ();
gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (da), 100);
diff --git a/demos/gtk-demo/editable_cells.c b/demos/gtk-demo/editable_cells.c
index 63ee416..99fe4a0 100644
--- a/demos/gtk-demo/editable_cells.c
+++ b/demos/gtk-demo/editable_cells.c
@@ -357,8 +357,7 @@ do_editable_cells (GtkWidget *do_widget)
gtk_container_add (GTK_CONTAINER (window), vbox);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Shopping list (you can edit the cells!)"),
- FALSE);
+ gtk_label_new ("Shopping list (you can edit the cells!)"));
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw),
@@ -366,7 +365,7 @@ do_editable_cells (GtkWidget *do_widget)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), sw);
/* create models */
items_model = create_items_model ();
@@ -387,17 +386,17 @@ do_editable_cells (GtkWidget *do_widget)
/* some buttons */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_button_new_with_label ("Add item");
g_signal_connect (button, "clicked",
G_CALLBACK (add_item), treeview);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
button = gtk_button_new_with_label ("Remove item");
g_signal_connect (button, "clicked",
G_CALLBACK (remove_item), treeview);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
gtk_window_set_default_size (GTK_WINDOW (window), 320, 200);
}
diff --git a/demos/gtk-demo/entry_buffer.c b/demos/gtk-demo/entry_buffer.c
index ad9cb80..5fbd4e0 100644
--- a/demos/gtk-demo/entry_buffer.c
+++ b/demos/gtk-demo/entry_buffer.c
@@ -34,19 +34,19 @@ do_entry_buffer (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label),
"Entries share a buffer. Typing in one is reflected in the other.");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
/* Create a buffer */
buffer = gtk_entry_buffer_new (NULL, 0);
/* Create our first entry */
entry = gtk_entry_new_with_buffer (buffer);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), entry);
/* Create the second entry */
entry = gtk_entry_new_with_buffer (buffer);
gtk_entry_set_visibility (GTK_ENTRY (entry), FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), entry);
g_object_unref (buffer);
}
diff --git a/demos/gtk-demo/entry_completion.c b/demos/gtk-demo/entry_completion.c
index 7c078cd..b9a8183 100644
--- a/demos/gtk-demo/entry_completion.c
+++ b/demos/gtk-demo/entry_completion.c
@@ -60,11 +60,11 @@ do_entry_completion (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), "Completion demo, try writing <b>total</b> or <b>gnome</b>
for example.");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
/* Create our entry */
entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), entry);
/* Create the completion object */
completion = gtk_entry_completion_new ();
diff --git a/demos/gtk-demo/expander.c b/demos/gtk-demo/expander.c
index a4523eb..fb48210 100644
--- a/demos/gtk-demo/expander.c
+++ b/demos/gtk-demo/expander.c
@@ -25,19 +25,11 @@ expander_cb (GtkExpander *expander, GParamSpec *pspec, GtkWindow *dialog)
gtk_window_set_resizable (dialog, gtk_expander_get_expanded (expander));
}
-static void
-do_not_expand (GtkWidget *child, gpointer data)
-{
- gtk_container_child_set (GTK_CONTAINER (gtk_widget_get_parent (child)), child,
- "fill", FALSE, NULL);
-}
-
GtkWidget *
do_expander (GtkWidget *do_widget)
{
GtkWidget *toplevel;
GtkWidget *area;
- GtkWidget *box;
GtkWidget *expander;
GtkWidget *sw;
GtkWidget *tv;
@@ -57,10 +49,6 @@ do_expander (GtkWidget *do_widget)
"but not the full story.");
area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (window));
- box = gtk_widget_get_parent (area);
- gtk_container_child_set (GTK_CONTAINER (gtk_widget_get_parent (box)), box,
- "fill", TRUE, NULL);
- gtk_container_foreach (GTK_CONTAINER (area), do_not_expand, NULL);
expander = gtk_expander_new ("Details:");
sw = gtk_scrolled_window_new (NULL, NULL);
@@ -85,7 +73,7 @@ do_expander (GtkWidget *do_widget)
"resize the window. Do it already !", -1);
gtk_container_add (GTK_CONTAINER (sw), tv);
gtk_container_add (GTK_CONTAINER (expander), sw);
- gtk_box_pack_end (GTK_BOX (area), expander, TRUE);
+ gtk_box_pack_end (GTK_BOX (area), expander);
g_signal_connect (expander, "notify::expanded",
G_CALLBACK (expander_cb), window);
diff --git a/demos/gtk-demo/iconview.c b/demos/gtk-demo/iconview.c
index 30537eb..5303d13 100644
--- a/demos/gtk-demo/iconview.c
+++ b/demos/gtk-demo/iconview.c
@@ -266,7 +266,7 @@ do_iconview (GtkWidget *do_widget)
gtk_container_add (GTK_CONTAINER (window), vbox);
tool_bar = gtk_toolbar_new ();
- gtk_box_pack_start (GTK_BOX (vbox), tool_bar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), tool_bar);
up_button = gtk_tool_button_new (NULL, NULL);
gtk_tool_button_set_label (GTK_TOOL_BUTTON (up_button), _("_Up"));
@@ -292,7 +292,7 @@ do_iconview (GtkWidget *do_widget)
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (sw, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), sw);
/* Create the store and fill it with the contents of '/' */
parent = g_strdup ("/");
diff --git a/demos/gtk-demo/images.c b/demos/gtk-demo/images.c
index 12a312d..c80f5f2 100644
--- a/demos/gtk-demo/images.c
+++ b/demos/gtk-demo/images.c
@@ -354,13 +354,13 @@ do_images (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label),
"<u>Image loaded from a file</u>");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_widget_set_halign (frame, GTK_ALIGN_CENTER);
gtk_widget_set_valign (frame, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
image = gtk_image_new_from_icon_name ("gtk3-demo", GTK_ICON_SIZE_DIALOG);
@@ -372,13 +372,13 @@ do_images (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label),
"<u>Animation loaded from a file</u>");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_widget_set_halign (frame, GTK_ALIGN_CENTER);
gtk_widget_set_valign (frame, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
image = gtk_image_new_from_resource ("/images/floppybuddy.gif");
@@ -389,13 +389,13 @@ do_images (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label),
"<u>Symbolic themed icon</u>");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_widget_set_halign (frame, GTK_ALIGN_CENTER);
gtk_widget_set_valign (frame, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
gicon = g_themed_icon_new_with_default_fallbacks ("battery-caution-charging-symbolic");
image = gtk_image_new_from_gicon (gicon, GTK_ICON_SIZE_DIALOG);
@@ -408,13 +408,13 @@ do_images (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label),
"<u>Progressive image loading</u>");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_widget_set_halign (frame, GTK_ALIGN_CENTER);
gtk_widget_set_valign (frame, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
/* Create an empty image for now; the progressive loader
* will create the pixbuf and fill it in.
@@ -426,7 +426,7 @@ do_images (GtkWidget *do_widget)
/* Sensitivity control */
button = gtk_toggle_button_new_with_mnemonic ("_Insensitive");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "toggled",
G_CALLBACK (toggle_sensitivity_callback),
diff --git a/demos/gtk-demo/infobar.c b/demos/gtk-demo/infobar.c
index d261bd6..630e3fe 100644
--- a/demos/gtk-demo/infobar.c
+++ b/demos/gtk-demo/infobar.c
@@ -65,24 +65,24 @@ do_infobar (GtkWidget *do_widget)
gtk_container_add (GTK_CONTAINER (window), vbox);
bar = gtk_info_bar_new ();
- gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bar);
gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_INFO);
label = gtk_label_new ("This is an info bar with message type GTK_MESSAGE_INFO");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_xalign (GTK_LABEL (label), 0);
- gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label);
button = gtk_toggle_button_new_with_label ("Message");
g_object_bind_property (bar, "revealed", button, "active", G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
gtk_container_add (GTK_CONTAINER (actions), button);
bar = gtk_info_bar_new ();
- gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bar);
gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_WARNING);
label = gtk_label_new ("This is an info bar with message type GTK_MESSAGE_WARNING");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_xalign (GTK_LABEL (label), 0);
- gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label);
button = gtk_toggle_button_new_with_label ("Warning");
g_object_bind_property (bar, "revealed", button, "active", G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
@@ -91,24 +91,24 @@ do_infobar (GtkWidget *do_widget)
bar = gtk_info_bar_new_with_buttons (_("_OK"), GTK_RESPONSE_OK, NULL);
gtk_info_bar_set_show_close_button (GTK_INFO_BAR (bar), TRUE);
g_signal_connect (bar, "response", G_CALLBACK (on_bar_response), window);
- gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bar);
gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION);
label = gtk_label_new ("This is an info bar with message type GTK_MESSAGE_QUESTION");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_xalign (GTK_LABEL (label), 0);
- gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label);
button = gtk_toggle_button_new_with_label ("Question");
g_object_bind_property (bar, "revealed", button, "active", G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
gtk_container_add (GTK_CONTAINER (actions), button);
bar = gtk_info_bar_new ();
- gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bar);
gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_ERROR);
label = gtk_label_new ("This is an info bar with message type GTK_MESSAGE_ERROR");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_xalign (GTK_LABEL (label), 0);
- gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label);
button = gtk_toggle_button_new_with_label ("Error");
g_object_bind_property (bar, "revealed", button, "active", G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
@@ -116,12 +116,12 @@ do_infobar (GtkWidget *do_widget)
gtk_container_add (GTK_CONTAINER (actions), button);
bar = gtk_info_bar_new ();
- gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bar);
gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_OTHER);
label = gtk_label_new ("This is an info bar with message type GTK_MESSAGE_OTHER");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_xalign (GTK_LABEL (label), 0);
- gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (gtk_info_bar_get_content_area (GTK_INFO_BAR (bar))), label);
button = gtk_toggle_button_new_with_label ("Other");
g_object_bind_property (bar, "revealed", button, "active", G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
@@ -130,7 +130,7 @@ do_infobar (GtkWidget *do_widget)
frame = gtk_frame_new ("Info bars");
gtk_widget_set_margin_top (frame, 8);
gtk_widget_set_margin_bottom (frame, 8);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
g_object_set (vbox2, "margin", 8, NULL);
@@ -138,9 +138,9 @@ do_infobar (GtkWidget *do_widget)
/* Standard message dialog */
label = gtk_label_new ("An example of different info bars");
- gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), label);
- gtk_box_pack_start (GTK_BOX (vbox2), actions, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), actions);
}
if (!gtk_widget_get_visible (window))
diff --git a/demos/gtk-demo/list_store.c b/demos/gtk-demo/list_store.c
index b7e70b7..b792ef4 100644
--- a/demos/gtk-demo/list_store.c
+++ b/demos/gtk-demo/list_store.c
@@ -268,7 +268,7 @@ do_list_store (GtkWidget *do_widget)
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new ("This is the bug list (note: not based on real data, it would be nice to have a
nice ODBC interface to bugzilla or so, though).");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw),
@@ -276,7 +276,7 @@ do_list_store (GtkWidget *do_widget)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), sw);
/* create tree model */
model = create_model ();
diff --git a/demos/gtk-demo/listbox.c b/demos/gtk-demo/listbox.c
index 3d95bca..fbce986 100644
--- a/demos/gtk-demo/listbox.c
+++ b/demos/gtk-demo/listbox.c
@@ -359,11 +359,11 @@ do_listbox (GtkWidget *do_widget)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_container_add (GTK_CONTAINER (window), vbox);
label = gtk_label_new ("Messages from Gtk+ and friends");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
scrolled = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled);
listbox = gtk_list_box_new ();
gtk_container_add (GTK_CONTAINER (scrolled), listbox);
diff --git a/demos/gtk-demo/listbox.ui b/demos/gtk-demo/listbox.ui
index db0ce6e..d9b6677 100644
--- a/demos/gtk-demo/listbox.ui
+++ b/demos/gtk-demo/listbox.ui
@@ -90,7 +90,6 @@
</style>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack_type">end</property>
<property name="position">2</property>
</packing>
diff --git a/demos/gtk-demo/menus.c b/demos/gtk-demo/menus.c
index 107a6db..32b64cf 100644
--- a/demos/gtk-demo/menus.c
+++ b/demos/gtk-demo/menus.c
@@ -115,7 +115,7 @@ do_menus (GtkWidget *do_widget)
menubar = gtk_menu_bar_new ();
gtk_widget_set_hexpand (menubar, TRUE);
- gtk_box_pack_start (GTK_BOX (box1), menubar, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), menubar);
gtk_widget_show (menubar);
menu = create_menu (2);
@@ -136,19 +136,19 @@ do_menus (GtkWidget *do_widget)
gtk_widget_show (menuitem);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
gtk_widget_show (box2);
button = gtk_button_new_with_label ("Flip");
g_signal_connect (button, "clicked",
G_CALLBACK (change_orientation), menubar);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK(gtk_widget_destroy), window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
gtk_widget_show (button);
diff --git a/demos/gtk-demo/overlay.c b/demos/gtk-demo/overlay.c
index c6d7e90..976c62e 100644
--- a/demos/gtk-demo/overlay.c
+++ b/demos/gtk-demo/overlay.c
@@ -65,12 +65,12 @@ do_overlay (GtkWidget *do_widget)
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
gtk_widget_set_margin_top (label, 8);
gtk_widget_set_margin_bottom (label, 8);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
gtk_entry_set_placeholder_text (GTK_ENTRY (entry), "Your Lucky Number");
gtk_widget_set_margin_top (entry, 8);
gtk_widget_set_margin_bottom (entry, 8);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), entry);
gtk_container_add (GTK_CONTAINER (window), overlay);
diff --git a/demos/gtk-demo/panes.c b/demos/gtk-demo/panes.c
index 40c67f0..4f6501c 100644
--- a/demos/gtk-demo/panes.c
+++ b/demos/gtk-demo/panes.c
@@ -148,7 +148,7 @@ do_panes (GtkWidget *do_widget)
vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
g_object_set (vpaned, "margin", 5, NULL);
- gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), vpaned);
hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_paned_add1 (GTK_PANED (vpaned), hpaned);
@@ -177,15 +177,13 @@ do_panes (GtkWidget *do_widget)
create_pane_options (GTK_PANED (hpaned),
"Horizontal",
"Left",
- "Right"),
- FALSE);
+ "Right"));
gtk_box_pack_start (GTK_BOX (vbox),
create_pane_options (GTK_PANED (vpaned),
"Vertical",
"Top",
- "Bottom"),
- FALSE);
+ "Bottom"));
}
if (!gtk_widget_get_visible (window))
diff --git a/demos/gtk-demo/search_entry.c b/demos/gtk-demo/search_entry.c
index 5655108..27a777c 100644
--- a/demos/gtk-demo/search_entry.c
+++ b/demos/gtk-demo/search_entry.c
@@ -241,20 +241,20 @@ do_search_entry (GtkWidget *do_widget)
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), "Search entry demo");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Create our entry */
entry = gtk_search_entry_new ();
- gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
/* Create the find and cancel buttons */
notebook = gtk_notebook_new ();
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE);
gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), notebook, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), notebook);
find_button = gtk_button_new_with_label ("Find");
g_signal_connect (find_button, "clicked",
diff --git a/demos/gtk-demo/search_entry2.c b/demos/gtk-demo/search_entry2.c
index 650c256..29080a0 100644
--- a/demos/gtk-demo/search_entry2.c
+++ b/demos/gtk-demo/search_entry2.c
@@ -91,12 +91,12 @@ do_search_entry2 (GtkWidget *do_widget)
entry = gtk_search_entry_new ();
container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
gtk_widget_set_halign (container, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (container), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (container), entry);
searchbar = gtk_search_bar_new ();
gtk_search_bar_connect_entry (GTK_SEARCH_BAR (searchbar), GTK_ENTRY (entry));
gtk_search_bar_set_show_close_button (GTK_SEARCH_BAR (searchbar), FALSE);
gtk_container_add (GTK_CONTAINER (searchbar), container);
- gtk_box_pack_start (GTK_BOX (vbox), searchbar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), searchbar);
/* Hook the search bar to key presses */
g_signal_connect (window, "key-press-event",
@@ -104,26 +104,26 @@ do_search_entry2 (GtkWidget *do_widget)
/* Help */
label = gtk_label_new ("Start Typing to search");
- gtk_box_pack_start (GTK_BOX (vbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
/* Toggle button */
button = gtk_toggle_button_new_with_label ("Search");
g_object_bind_property (button, "active",
searchbar, "search-mode-enabled",
G_BINDING_BIDIRECTIONAL);
- gtk_box_pack_start (GTK_BOX (vbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
/* Result */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Result:");
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_widget_set_margin_start (label, 6);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
label = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
g_signal_connect (entry, "search-changed",
G_CALLBACK (search_changed_cb), label);
@@ -131,15 +131,15 @@ do_search_entry2 (GtkWidget *do_widget)
G_CALLBACK (changed_cb), label);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Signal:");
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_widget_set_margin_start (label, 6);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
label = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
g_signal_connect (entry, "search-changed",
G_CALLBACK (search_changed), label);
diff --git a/demos/gtk-demo/sidebar.c b/demos/gtk-demo/sidebar.c
index 4d6e9ab..27e8494 100644
--- a/demos/gtk-demo/sidebar.c
+++ b/demos/gtk-demo/sidebar.c
@@ -49,7 +49,7 @@ do_sidebar (GtkWidget *do_widget)
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
sidebar = gtk_stack_sidebar_new ();
- gtk_box_pack_start (GTK_BOX (box), sidebar, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), sidebar);
stack = gtk_stack_new ();
gtk_stack_set_transition_type (GTK_STACK (stack), GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN);
@@ -57,9 +57,9 @@ do_sidebar (GtkWidget *do_widget)
/* Separator between sidebar and stack */
widget = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
- gtk_box_pack_start (GTK_BOX(box), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX(box), widget);
- gtk_box_pack_start (GTK_BOX (box), stack, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), stack);
for (i=0; (c = *(pages+i)) != NULL; i++ )
{
diff --git a/demos/gtk-demo/sizegroup.c b/demos/gtk-demo/sizegroup.c
index 4fd1cf6..d1eb4a0 100644
--- a/demos/gtk-demo/sizegroup.c
+++ b/demos/gtk-demo/sizegroup.c
@@ -116,7 +116,7 @@ do_sizegroup (GtkWidget *do_widget)
/* Create one frame holding color options */
frame = gtk_frame_new ("Color Options");
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
table = gtk_grid_new ();
g_object_set (table, "margin", 5, NULL);
@@ -129,7 +129,7 @@ do_sizegroup (GtkWidget *do_widget)
/* And another frame holding line style options */
frame = gtk_frame_new ("Line Options");
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
table = gtk_grid_new ();
g_object_set (table, "margin", 5, NULL);
@@ -142,7 +142,7 @@ do_sizegroup (GtkWidget *do_widget)
/* And a check button to turn grouping on and off */
check_button = gtk_check_button_new_with_mnemonic ("_Enable grouping");
- gtk_box_pack_start (GTK_BOX (vbox), check_button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), check_button);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check_button), TRUE);
g_signal_connect (check_button, "toggled",
diff --git a/demos/gtk-demo/spinner.c b/demos/gtk-demo/spinner.c
index d1beb5a..b0cce83 100644
--- a/demos/gtk-demo/spinner.c
+++ b/demos/gtk-demo/spinner.c
@@ -53,7 +53,7 @@ do_spinner (GtkWidget *do_widget)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
g_object_set (vbox, "margin", 5, NULL);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
/* Sensitive */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
diff --git a/demos/gtk-demo/textscroll.c b/demos/gtk-demo/textscroll.c
index 0a1b27e..f6cfc53 100644
--- a/demos/gtk-demo/textscroll.c
+++ b/demos/gtk-demo/textscroll.c
@@ -157,7 +157,7 @@ create_text_view (GtkWidget *hbox,
guint timeout;
swindow = gtk_scrolled_window_new (NULL, NULL);
- gtk_box_pack_start (GTK_BOX (hbox), swindow, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), swindow);
textview = gtk_text_view_new ();
gtk_container_add (GTK_CONTAINER (swindow), textview);
diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c
index 6a5cfed..ad107f5 100644
--- a/demos/gtk-demo/toolpalette.c
+++ b/demos/gtk-demo/toolpalette.c
@@ -124,13 +124,11 @@ palette_drop_item (GtkToolItem *drag_item,
if (GTK_TOOL_ITEM_GROUP (drag_group) != drop_group)
{
- gboolean homogeneous, expand, fill, new_row;
+ gboolean homogeneous, new_row;
g_object_ref (drag_item);
gtk_container_child_get (GTK_CONTAINER (drag_group), GTK_WIDGET (drag_item),
"homogeneous", &homogeneous,
- "expand", &expand,
- "fill", &fill,
"new-row", &new_row,
NULL);
gtk_container_remove (GTK_CONTAINER (drag_group), GTK_WIDGET (drag_item));
@@ -138,8 +136,6 @@ palette_drop_item (GtkToolItem *drag_item,
drag_item, drop_position);
gtk_container_child_set (GTK_CONTAINER (drop_group), GTK_WIDGET (drag_item),
"homogeneous", homogeneous,
- "expand", expand,
- "fill", fill,
"new-row", new_row,
NULL);
g_object_unref (drag_item);
@@ -473,7 +469,7 @@ do_toolpalette (GtkWidget *do_widget)
"text", 0,
NULL);
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo_orientation), &iter);
- gtk_box_pack_start (GTK_BOX (box), combo_orientation, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), combo_orientation);
/* Style combo box: */
style_model = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT);
@@ -512,11 +508,11 @@ do_toolpalette (GtkWidget *do_widget)
"text", 0,
NULL);
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo_style), &iter);
- gtk_box_pack_start (GTK_BOX (box), combo_style, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), combo_style);
/* Add hbox */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
- gtk_box_pack_start (GTK_BOX (box), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), hbox);
/* Add and fill the ToolPalette: */
palette = gtk_tool_palette_new ();
@@ -549,7 +545,7 @@ do_toolpalette (GtkWidget *do_widget)
notebook = gtk_notebook_new ();
g_object_set (notebook, "margin", 6, NULL);
- gtk_box_pack_end (GTK_BOX(hbox), notebook, FALSE);
+ gtk_box_pack_end (GTK_BOX(hbox), notebook);
/* ===== DnD for tool items ===== */
@@ -751,19 +747,19 @@ load_special_items (GtkToolPalette *palette)
item = create_entry_item ("homogeneous=FALSE, expand=TRUE");
gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
gtk_container_child_set (GTK_CONTAINER (group), GTK_WIDGET (item),
- "homogeneous", FALSE, "expand", TRUE,
+ "homogeneous", FALSE,
NULL);
item = create_entry_item ("homogeneous=FALSE, expand=TRUE, fill=FALSE");
gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
gtk_container_child_set (GTK_CONTAINER (group), GTK_WIDGET (item),
- "homogeneous", FALSE, "expand", TRUE,
- "fill", FALSE, NULL);
+ "homogeneous", FALSE,
+ NULL);
item = create_entry_item ("homogeneous=FALSE, expand=TRUE, new-row=TRUE");
gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
gtk_container_child_set (GTK_CONTAINER (group), GTK_WIDGET (item),
- "homogeneous", FALSE, "expand", TRUE,
+ "homogeneous", FALSE,
"new-row", TRUE, NULL);
item = gtk_tool_button_new (NULL, NULL);
diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c
index d4737b8..4419f68 100644
--- a/demos/gtk-demo/tree_store.c
+++ b/demos/gtk-demo/tree_store.c
@@ -402,8 +402,7 @@ do_tree_store (GtkWidget *do_widget)
gtk_container_add (GTK_CONTAINER (window), vbox);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Jonathan's Holiday Card Planning Sheet"),
- FALSE);
+ gtk_label_new ("Jonathan's Holiday Card Planning Sheet"));
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw),
@@ -411,7 +410,7 @@ do_tree_store (GtkWidget *do_widget)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), sw);
/* create model */
model = create_model ();
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 76c9cc9..8d14034 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -804,7 +804,7 @@ overshot (GtkScrolledWindow *sw, GtkPositionType pos, GtkWidget *widget)
"margin", 6,
"xalign", 0.0,
NULL);
- gtk_box_pack_start (GTK_BOX (row), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (row), label);
gdk_rgba_parse (&rgba, color);
swatch = g_object_new (g_type_from_name ("GtkColorSwatch"),
"rgba", &rgba,
@@ -816,7 +816,7 @@ overshot (GtkScrolledWindow *sw, GtkPositionType pos, GtkWidget *widget)
NULL);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add (GTK_CONTAINER (box), swatch);
- gtk_box_pack_start (GTK_BOX (row), box, FALSE);
+ gtk_box_pack_start (GTK_BOX (row), box);
gtk_list_box_insert (GTK_LIST_BOX (widget), row, -1);
row = gtk_widget_get_parent (row);
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
@@ -915,7 +915,7 @@ populate_colors (GtkWidget *widget, GtkWidget *chooser)
"hexpand", TRUE,
"xalign", 0.0,
NULL);
- gtk_box_pack_start (GTK_BOX (row), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (row), label);
gdk_rgba_parse (&rgba, colors[i].color);
swatch = g_object_new (g_type_from_name ("GtkColorSwatch"),
"rgba", &rgba,
@@ -927,7 +927,7 @@ populate_colors (GtkWidget *widget, GtkWidget *chooser)
NULL);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add (GTK_CONTAINER (box), swatch);
- gtk_box_pack_start (GTK_BOX (row), box, FALSE);
+ gtk_box_pack_start (GTK_BOX (row), box);
gtk_list_box_insert (GTK_LIST_BOX (widget), row, -1);
row = gtk_widget_get_parent (row);
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 9d11516..86e44f9 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -450,9 +450,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<item>Jet McQuack</item>
</items>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkComboBoxText" id="comboboxtext2">
@@ -466,7 +463,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</child>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -479,7 +475,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<signal name="icon-release" handler="on_entry_icon_release" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">2</property>
</packing>
</child>
@@ -491,7 +486,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="text" translatable="yes">entry</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">3</property>
</packing>
</child>
@@ -515,7 +509,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="icon-name">window-close-symbolic</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -597,7 +590,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="adjustment">adjustment2</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">2</property>
</packing>
</child>
@@ -610,14 +602,10 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="max-width-chars">2</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">3</property>
</packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="grid1">
@@ -803,14 +791,8 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkSeparator" id="separator1">
@@ -830,9 +812,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="can_focus">1</property>
<property name="receives_default">1</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkToggleButton" id="togglebutton2">
@@ -842,7 +821,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="receives_default">1</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -854,7 +832,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="active">1</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">2</property>
</packing>
</child>
@@ -867,7 +844,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="active">1</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">3</property>
</packing>
</child>
@@ -899,7 +875,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</child>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">6</property>
</packing>
</child>
@@ -909,7 +884,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="receives_default">1</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">6</property>
</packing>
</child>
@@ -964,7 +938,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</child>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">2</property>
</packing>
</child>
@@ -989,9 +962,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<object class="GtkProgressBar" id="progressbar1">
<property name="fraction">0.5</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkProgressBar" id="progressbar2">
@@ -999,7 +969,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="inverted">1</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -1009,7 +978,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="show_text">1</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">2</property>
</packing>
</child>
@@ -1037,9 +1005,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkBox" id="box27">
@@ -1074,7 +1039,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</child>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -1105,10 +1069,12 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<object class="GtkBox" id="box28">
<property name="vexpand">1</property>
<property name="spacing">6</property>
+ <property name="homogeneous">1</property>
<child>
<object class="GtkProgressBar" id="progressbar5">
<property name="orientation">vertical</property>
<property name="fraction">0.5</property>
+ <property name="halign">end</property>
</object>
</child>
<child>
@@ -1116,20 +1082,19 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="orientation">vertical</property>
<property name="fraction">0.5</property>
<property name="inverted">1</property>
+ <property name="halign">start</property>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkBox" id="box23">
<property name="vexpand">1</property>
<property name="spacing">6</property>
+ <property name="homogeneous">1</property>
<child>
<object class="GtkScale" id="scale3">
<property name="height_request">100</property>
@@ -1140,6 +1105,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="fill_level">75</property>
<property name="draw_value">1</property>
<property name="digits">-1</property>
+ <property name="halign">end</property>
<signal name="format-value" handler="scale_format_value"/>
</object>
</child>
@@ -1154,6 +1120,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<property name="fill_level">75</property>
<property name="draw_value">1</property>
<property name="digits">-1</property>
+ <property name="halign">start</property>
<signal name="format-value" handler="scale_format_value_blank"/>
</object>
<packing>
@@ -1162,7 +1129,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
</child>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index dbc8296..200a1c3 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -154,7 +154,7 @@ create_menu_button (void)
gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Menu Button"), TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Menu Button"));
return new_widget_info ("menu-button", vbox, SMALL);
}
@@ -203,10 +203,9 @@ create_lockbutton (void)
widget = gtk_lock_button_new (g_object_new (G_TYPE_TEST_PERMISSION, NULL));
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Lock Button"),
- FALSE);
+ gtk_label_new ("Lock Button"));
gtk_widget_set_halign (vbox, GTK_ALIGN_CENTER);
gtk_widget_set_valign (vbox, GTK_ALIGN_CENTER);
@@ -248,11 +247,11 @@ create_radio (void)
widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
radio = gtk_radio_button_new_with_mnemonic (NULL, "Radio Button _One");
- gtk_box_pack_start (GTK_BOX (widget), radio, FALSE);
+ gtk_box_pack_start (GTK_BOX (widget), radio);
radio = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON (radio), "Radio Button _Two");
- gtk_box_pack_start (GTK_BOX (widget), radio, FALSE);
+ gtk_box_pack_start (GTK_BOX (widget), radio);
radio = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON (radio), "Radio Button T_hree");
- gtk_box_pack_start (GTK_BOX (widget), radio, FALSE);
+ gtk_box_pack_start (GTK_BOX (widget), radio);
gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
@@ -404,7 +403,7 @@ create_search_bar (void)
gtk_container_add (GTK_CONTAINER (box), widget);
view = gtk_text_view_new ();
- gtk_box_pack_start (GTK_BOX (box), view, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), view);
info = new_widget_info ("search-bar", box, SMALL);
@@ -422,7 +421,7 @@ create_action_bar (void)
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
view = gtk_text_view_new ();
- gtk_box_pack_start (GTK_BOX (box), view, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), view);
widget = gtk_action_bar_new ();
@@ -552,10 +551,9 @@ create_icon_view (void)
gtk_container_add (GTK_CONTAINER (widget), icon_view);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
- gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Icon View"),
- FALSE);
+ gtk_label_new ("Icon View"));
info = new_widget_info ("icon-view", vbox, MEDIUM);
info->no_focus = FALSE;
@@ -577,10 +575,9 @@ create_color_button (void)
picker = gtk_color_button_new_with_rgba (&color);
gtk_widget_set_halign (picker, GTK_ALIGN_CENTER);
gtk_widget_set_valign (picker, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), picker, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), picker);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Color Button"),
- FALSE);
+ gtk_label_new ("Color Button"));
return new_widget_info ("color-button", vbox, SMALL);
}
@@ -595,10 +592,9 @@ create_font_button (void)
picker = gtk_font_button_new_with_font ("Sans Serif 10");
gtk_widget_set_halign (picker, GTK_ALIGN_CENTER);
gtk_widget_set_valign (picker, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), picker, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), picker);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Font Button"),
- FALSE);
+ gtk_label_new ("Font Button"));
return new_widget_info ("font-button", vbox, SMALL);
}
@@ -618,16 +614,14 @@ create_file_button (void)
gtk_widget_set_size_request (picker, 150, -1);
gtk_widget_set_halign (picker, GTK_ALIGN_CENTER);
gtk_widget_set_valign (picker, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), picker, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), picker);
gtk_box_pack_start (GTK_BOX (vbox2),
- gtk_label_new ("File Button (Files)"),
- FALSE);
+ gtk_label_new ("File Button (Files)"));
gtk_box_pack_start (GTK_BOX (vbox),
- vbox2, TRUE);
+ vbox2);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_separator_new (GTK_ORIENTATION_HORIZONTAL),
- FALSE);
+ gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
picker = gtk_file_chooser_button_new ("File Chooser Button",
@@ -638,12 +632,11 @@ create_file_button (void)
g_free (path);
gtk_widget_set_halign (picker, GTK_ALIGN_CENTER);
gtk_widget_set_valign (picker, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), picker, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), picker);
gtk_box_pack_start (GTK_BOX (vbox2),
- gtk_label_new ("File Button (Select Folder)"),
- FALSE);
+ gtk_label_new ("File Button (Select Folder)"));
gtk_box_pack_start (GTK_BOX (vbox),
- vbox2, TRUE);
+ vbox2);
return new_widget_info ("file-button", vbox, MEDIUM);
}
@@ -658,18 +651,15 @@ create_separator (void)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
gtk_box_pack_start (GTK_BOX (hbox),
- gtk_separator_new (GTK_ORIENTATION_HORIZONTAL),
- TRUE);
+ gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
gtk_box_pack_start (GTK_BOX (hbox),
- gtk_separator_new (GTK_ORIENTATION_VERTICAL),
- TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_separator_new (GTK_ORIENTATION_VERTICAL));
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
gtk_box_pack_start (GTK_BOX (vbox),
g_object_new (GTK_TYPE_LABEL,
"label", "Horizontal and Vertical\nSeparators",
"justify", GTK_JUSTIFY_CENTER,
- NULL),
- FALSE);
+ NULL));
return new_widget_info ("separator", vbox, MEDIUM);
}
@@ -695,8 +685,7 @@ create_panes (void)
NULL),
FALSE, FALSE);
gtk_box_pack_start (GTK_BOX (hbox),
- pane,
- TRUE);
+ pane);
pane = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_paned_pack1 (GTK_PANED (pane),
g_object_new (GTK_TYPE_FRAME,
@@ -709,15 +698,13 @@ create_panes (void)
NULL),
FALSE, FALSE);
gtk_box_pack_start (GTK_BOX (hbox),
- pane,
- TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ pane);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
gtk_box_pack_start (GTK_BOX (vbox),
g_object_new (GTK_TYPE_LABEL,
"label", "Horizontal and Vertical\nPanes",
"justify", GTK_JUSTIFY_CENTER,
- NULL),
- FALSE);
+ NULL));
return new_widget_info ("panes", vbox, MEDIUM);
}
@@ -879,10 +866,9 @@ create_menubar (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Menu Bar"),
- FALSE);
+ gtk_label_new ("Menu Bar"));
return new_widget_info ("menubar", vbox, SMALL);
}
@@ -958,10 +944,9 @@ create_progressbar (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Progress Bar"),
- FALSE);
+ gtk_label_new ("Progress Bar"));
return new_widget_info ("progressbar", vbox, SMALL);
}
@@ -976,10 +961,9 @@ create_level_bar (void)
gtk_level_bar_set_value (GTK_LEVEL_BAR (widget), 0.333);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Level Bar"),
- FALSE);
+ gtk_label_new ("Level Bar"));
return new_widget_info ("levelbar", vbox, SMALL);
}
@@ -1011,10 +995,9 @@ create_scrollbar (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Scrollbar"),
- FALSE);
+ gtk_label_new ("Scrollbar"));
return new_widget_info ("scrollbar", vbox, SMALL);
}
@@ -1030,10 +1013,9 @@ create_spinbutton (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Spin Button"),
- FALSE);
+ gtk_label_new ("Spin Button"));
return new_widget_info ("spinbutton", vbox, SMALL);
}
@@ -1047,13 +1029,12 @@ create_statusbar (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Status Bar"),
- FALSE);
+ gtk_label_new ("Status Bar"));
widget = gtk_statusbar_new ();
gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
gtk_statusbar_push (GTK_STATUSBAR (widget), 0, "Hold on...");
- gtk_box_pack_end (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), widget);
info = new_widget_info ("statusbar", vbox, SMALL);
@@ -1071,19 +1052,16 @@ create_scales (void)
gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
gtk_box_pack_start (GTK_BOX (hbox),
gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
- 0.0, 100.0, 1.0),
- TRUE);
+ 0.0, 100.0, 1.0));
gtk_box_pack_start (GTK_BOX (hbox),
gtk_scale_new_with_range (GTK_ORIENTATION_VERTICAL,
- 0.0, 100.0, 1.0),
- TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ 0.0, 100.0, 1.0));
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
gtk_box_pack_start (GTK_BOX (vbox),
g_object_new (GTK_TYPE_LABEL,
"label", "Horizontal and Vertical\nScales",
"justify", GTK_JUSTIFY_CENTER,
- NULL),
- FALSE);
+ NULL));
return new_widget_info ("scales", vbox, MEDIUM);}
static WidgetInfo *
@@ -1098,10 +1076,9 @@ create_image (void)
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Image"),
- FALSE);
+ gtk_label_new ("Image"));
return new_widget_info ("image", vbox, SMALL);
}
@@ -1119,10 +1096,9 @@ create_spinner (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Spinner"),
- FALSE);
+ gtk_label_new ("Spinner"));
return new_widget_info ("spinner", vbox, SMALL);
}
@@ -1141,7 +1117,7 @@ create_volume_button (void)
gtk_container_add (GTK_CONTAINER (widget), box);
button = gtk_volume_button_new ();
- gtk_box_pack_end (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (box), button);
gtk_scale_button_set_value (GTK_SCALE_BUTTON (button), 33);
popup = gtk_scale_button_get_popup (GTK_SCALE_BUTTON (button));
@@ -1190,10 +1166,9 @@ create_appchooserbutton (void)
picker = gtk_app_chooser_button_new ("text/plain");
gtk_widget_set_halign (picker, GTK_ALIGN_CENTER);
gtk_widget_set_valign (picker, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), picker, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), picker);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Application Button"),
- FALSE);
+ gtk_label_new ("Application Button"));
return new_widget_info ("appchooserbutton", vbox, SMALL);
}
@@ -1276,10 +1251,9 @@ create_placessidebar (void)
gtk_widget_set_halign (bar, GTK_ALIGN_CENTER);
gtk_widget_set_valign (bar, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), bar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bar);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Places Sidebar"),
- FALSE);
+ gtk_label_new ("Places Sidebar"));
return new_widget_info ("placessidebar", vbox, ASIS);
}
@@ -1309,11 +1283,10 @@ create_stack (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), switcher, FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), stack, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), switcher);
+ gtk_box_pack_start (GTK_BOX (vbox), stack);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Stack"),
- FALSE);
+ gtk_label_new ("Stack"));
return new_widget_info ("stack", vbox, ASIS);
}
@@ -1343,11 +1316,10 @@ create_stack_switcher (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), switcher, FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), stack, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), switcher);
+ gtk_box_pack_start (GTK_BOX (vbox), stack);
gtk_box_pack_start (GTK_BOX (vbox),
- gtk_label_new ("Stack Switcher"),
- FALSE);
+ gtk_label_new ("Stack Switcher"));
return new_widget_info ("stackswitcher", vbox, ASIS);
}
@@ -1379,9 +1351,9 @@ create_sidebar (void)
frame = gtk_frame_new (NULL);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (hbox), sidebar, FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), gtk_separator_new (GTK_ORIENTATION_VERTICAL), FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), stack, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), sidebar);
+ gtk_box_pack_start (GTK_BOX (hbox), gtk_separator_new (GTK_ORIENTATION_VERTICAL));
+ gtk_box_pack_start (GTK_BOX (hbox), stack);
gtk_container_add (GTK_CONTAINER (frame), hbox);
return new_widget_info ("sidebar", frame, ASIS);
@@ -1473,9 +1445,8 @@ create_flow_box (void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Flow Box"),
- FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Flow Box"));
info = new_widget_info ("flow-box", vbox, ASIS);
info->no_focus = FALSE;
diff --git a/examples/search-bar.c b/examples/search-bar.c
index 3d3a1ad..f932ec8 100644
--- a/examples/search-bar.c
+++ b/examples/search-bar.c
@@ -30,10 +30,10 @@ activate_cb (GtkApplication *app,
entry = gtk_search_entry_new ();
gtk_widget_set_hexpand (entry, TRUE);
- gtk_box_pack_start (GTK_BOX (box), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), entry);
menu_button = gtk_menu_button_new ();
- gtk_box_pack_start (GTK_BOX (box), menu_button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), menu_button);
gtk_search_bar_connect_entry (GTK_SEARCH_BAR (search_bar), GTK_ENTRY (entry));
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index a6aa7c7..bc06fbd 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -412,7 +412,7 @@ gtk_action_bar_pack_start (GtkActionBar *action_bar,
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_box_pack_start (GTK_BOX (priv->box), child, TRUE);
+ gtk_box_pack_start (GTK_BOX (priv->box), child);
}
/**
@@ -431,7 +431,7 @@ gtk_action_bar_pack_end (GtkActionBar *action_bar,
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_box_pack_end (GTK_BOX (priv->box), child, TRUE);
+ gtk_box_pack_end (GTK_BOX (priv->box), child);
}
/**
diff --git a/gtk/gtkappchooserdialog.c b/gtk/gtkappchooserdialog.c
index 11d844f..ee33f0f 100644
--- a/gtk/gtkappchooserdialog.c
+++ b/gtk/gtkappchooserdialog.c
@@ -348,7 +348,7 @@ construct_appchooser_widget (GtkAppChooserDialog *self)
/* Need to build the appchooser widget after, because of the content-type construct-only property */
self->priv->app_chooser_widget = gtk_app_chooser_widget_new (self->priv->content_type);
gtk_widget_set_vexpand (self->priv->app_chooser_widget, TRUE);
- gtk_box_pack_start (GTK_BOX (self->priv->inner_box), self->priv->app_chooser_widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (self->priv->inner_box), self->priv->app_chooser_widget);
g_signal_connect (self->priv->app_chooser_widget, "application-selected",
@@ -362,10 +362,10 @@ construct_appchooser_widget (GtkAppChooserDialog *self)
/* Add the custom button to the new appchooser */
gtk_box_pack_start (GTK_BOX (self->priv->inner_box),
- self->priv->show_more_button, FALSE);
+ self->priv->show_more_button);
gtk_box_pack_start (GTK_BOX (self->priv->inner_box),
- self->priv->software_button, FALSE);
+ self->priv->software_button);
info = gtk_app_chooser_get_app_info (GTK_APP_CHOOSER (self->priv->app_chooser_widget));
gtk_dialog_set_response_sensitive (GTK_DIALOG (self), GTK_RESPONSE_OK, info != NULL);
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 184aa49..3532d40 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -1727,14 +1727,14 @@ gtk_assistant_insert_page (GtkAssistant *assistant,
priv->pages = g_list_insert (priv->pages, page_info, position);
- gtk_box_pack_start (GTK_BOX (priv->sidebar), page_info->regular_title, FALSE);
- gtk_box_pack_start (GTK_BOX (priv->sidebar), page_info->current_title, FALSE);
+ gtk_box_pack_start (GTK_BOX (priv->sidebar), page_info->regular_title);
+ gtk_box_pack_start (GTK_BOX (priv->sidebar), page_info->current_title);
gtk_box_reorder_child (GTK_BOX (priv->sidebar), page_info->regular_title, 2 * position);
gtk_box_reorder_child (GTK_BOX (priv->sidebar), page_info->current_title, 2 * position + 1);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (box);
- gtk_box_pack_start (GTK_BOX (box), page, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), page);
g_object_set (box, "margin", 12, NULL);
g_signal_connect (box, "remove", G_CALLBACK (assistant_remove_page_cb), assistant);
@@ -1837,7 +1837,7 @@ add_to_action_area (GtkAssistant *assistant,
gtk_widget_set_valign (child, GTK_ALIGN_BASELINE);
- gtk_box_pack_end (GTK_BOX (priv->action_area), child, FALSE);
+ gtk_box_pack_end (GTK_BOX (priv->action_area), child);
}
/**
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index cb849fd..ce8cc54 100644
--- a/gtk/gtkbbox.c
+++ b/gtk/gtkbbox.c
@@ -145,7 +145,7 @@ static void
gtk_button_box_add (GtkContainer *container,
GtkWidget *widget)
{
- gtk_box_pack_start (GTK_BOX (container), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (container), widget);
}
static void
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 34f57eb..26a78ec 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -49,8 +49,7 @@
* both ends of the same GtkBox.
*
* Because GtkBox is a #GtkContainer, you may also use gtk_container_add()
- * to insert widgets into the box, and they will be packed with the default
- * values for expand and fill child properties. Use gtk_container_remove()
+ * to insert widgets into the box. Use gtk_container_remove()
* to remove widgets from the GtkBox.
*
* Use gtk_box_set_homogeneous() to specify whether or not all children
@@ -63,10 +62,6 @@
* Use gtk_box_reorder_child() to move a GtkBox child to a different
* place in the box.
*
- * Use gtk_box_set_child_packing() to reset the expand and
- * fill child properties.
- * Use gtk_box_query_child_packing() to query these fields.
- *
* Note that a single-row or single-column #GtkGrid provides exactly
* the same functionality as #GtkBox.
*
@@ -112,7 +107,6 @@ enum {
enum {
CHILD_PROP_0,
- CHILD_PROP_FILL,
CHILD_PROP_PACK_TYPE,
CHILD_PROP_POSITION,
LAST_CHILD_PROP
@@ -140,9 +134,6 @@ static GParamSpec *child_props[LAST_CHILD_PROP] = { NULL, };
* GtkBoxChild:
* @widget: the child widget, packed into the GtkBox.
* neighbors, set when packed, zero by default.
- * @fill: flag indicates whether any extra space given to this child due to its
- * @expand attribute being set is actually allocated to the child, rather than
- * being used as padding around the widget; set when packed, %TRUE by default.
* @pack: one of #GtkPackType indicating whether the child is packed with
* reference to the start (top/left) or end (bottom/right) of the GtkBox.
*/
@@ -150,7 +141,6 @@ struct _GtkBoxChild
{
GtkWidget *widget;
- guint fill : 1;
guint pack : 1;
};
@@ -270,22 +260,6 @@ gtk_box_class_init (GtkBoxClass *class)
g_object_class_install_properties (object_class, LAST_PROP, props);
- /**
- * GtkBox:fill:
- *
- * Whether the child should receive extra space when the parent grows.
- *
- * Note that the #GtkWidget:halign, #GtkWidget:valign, #GtkWidget:hexpand
- * and #GtkWidget:vexpand properties are the preferred way to influence
- * child size allocation in containers.
- */
- child_props[CHILD_PROP_FILL] =
- g_param_spec_boolean ("fill",
- P_("Fill"),
- P_("Whether extra space given to the child should be allocated to the child or
used as padding"),
- TRUE,
- GTK_PARAM_READWRITE);
-
child_props[CHILD_PROP_PACK_TYPE] =
g_param_spec_enum ("pack-type",
P_("Pack type"),
@@ -612,10 +586,7 @@ gtk_box_size_allocate_no_center (GtkWidget *widget,
int child_allocation_width;
int child_minimum_height, child_natural_height;
- if (child->fill)
- child_allocation_width = MAX (1, child_size);
- else
- child_allocation_width = sizes[i].minimum_size;
+ child_allocation_width = MAX (1, child_size);
child_minimum_baseline = -1;
child_natural_baseline = -1;
@@ -706,16 +677,8 @@ gtk_box_size_allocate_no_center (GtkWidget *widget,
/* Assign the child's position. */
if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
{
- if (child->fill)
- {
- child_allocation.width = MAX (1, child_size);
- child_allocation.x = x;
- }
- else
- {
- child_allocation.width = sizes[i].minimum_size;
- child_allocation.x = x + (child_size - child_allocation.width) / 2;
- }
+ child_allocation.width = MAX (1, child_size);
+ child_allocation.x = x;
if (packing == GTK_PACK_START)
{
@@ -734,16 +697,8 @@ gtk_box_size_allocate_no_center (GtkWidget *widget,
}
else /* (private->orientation == GTK_ORIENTATION_VERTICAL) */
{
- if (child->fill)
- {
- child_allocation.height = MAX (1, child_size);
- child_allocation.y = y;
- }
- else
- {
- child_allocation.height = sizes[i].minimum_size;
- child_allocation.y = y + (child_size - child_allocation.height) / 2;
- }
+ child_allocation.height = MAX (1, child_size);
+ child_allocation.y = y;
if (packing == GTK_PACK_START)
{
@@ -957,10 +912,7 @@ gtk_box_size_allocate_with_center (GtkWidget *widget,
gint child_allocation_width;
gint child_minimum_height, child_natural_height;
- if (child->fill)
- child_allocation_width = MAX (1, child_size);
- else
- child_allocation_width = sizes[packing][i].minimum_size;
+ child_allocation_width = MAX (1, child_size);
child_minimum_baseline = -1;
child_natural_baseline = -1;
@@ -1050,16 +1002,8 @@ gtk_box_size_allocate_with_center (GtkWidget *widget,
/* Assign the child's position. */
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
- if (child->fill)
- {
- child_allocation.width = MAX (1, child_size);
- child_allocation.x = x;
- }
- else
- {
- child_allocation.width = sizes[packing][i].minimum_size;
- child_allocation.x = x + (child_size - child_allocation.width) / 2;
- }
+ child_allocation.width = MAX (1, child_size);
+ child_allocation.x = x;
if ((packing == GTK_PACK_START && direction == GTK_TEXT_DIR_LTR) ||
(packing == GTK_PACK_END && direction == GTK_TEXT_DIR_RTL))
@@ -1074,16 +1018,8 @@ gtk_box_size_allocate_with_center (GtkWidget *widget,
}
else /* (private->orientation == GTK_ORIENTATION_VERTICAL) */
{
- if (child->fill)
- {
- child_allocation.height = MAX (1, child_size);
- child_allocation.y = y;
- }
- else
- {
- child_allocation.height = sizes[packing][i].minimum_size;
- child_allocation.y = y + (child_size - child_allocation.height) / 2;
- }
+ child_allocation.height = MAX (1, child_size);
+ child_allocation.y = y;
if (packing == GTK_PACK_START)
{
@@ -1187,26 +1123,11 @@ gtk_box_set_child_property (GtkContainer *container,
const GValue *value,
GParamSpec *pspec)
{
- gboolean fill = 0;
- GtkPackType pack_type = 0;
-
- if (property_id != CHILD_PROP_POSITION)
- gtk_box_query_child_packing (GTK_BOX (container),
- child,
- &fill,
- &pack_type);
switch (property_id)
{
- case CHILD_PROP_FILL:
- gtk_box_set_child_packing (GTK_BOX (container),
- child,
- g_value_get_boolean (value),
- pack_type);
- break;
case CHILD_PROP_PACK_TYPE:
gtk_box_set_child_packing (GTK_BOX (container),
child,
- fill,
g_value_get_enum (value));
break;
case CHILD_PROP_POSITION:
@@ -1227,22 +1148,16 @@ gtk_box_get_child_property (GtkContainer *container,
GValue *value,
GParamSpec *pspec)
{
- gboolean fill = FALSE;
GtkPackType pack_type = 0;
GList *list;
- if (property_id != CHILD_PROP_POSITION)
- gtk_box_query_child_packing (GTK_BOX (container),
- child,
- &fill,
- &pack_type);
switch (property_id)
{
guint i;
- case CHILD_PROP_FILL:
- g_value_set_boolean (value, fill);
- break;
case CHILD_PROP_PACK_TYPE:
+ gtk_box_query_child_packing (GTK_BOX (container),
+ child,
+ &pack_type);
g_value_set_enum (value, pack_type);
break;
case CHILD_PROP_POSITION:
@@ -1431,7 +1346,6 @@ gtk_box_direction_changed (GtkWidget *widget,
static GtkBoxChild *
gtk_box_pack (GtkBox *box,
GtkWidget *child,
- gboolean fill,
GtkPackType pack_type)
{
GtkContainer *container = GTK_CONTAINER (box);
@@ -1444,7 +1358,6 @@ gtk_box_pack (GtkBox *box,
child_info = g_new (GtkBoxChild, 1);
child_info->widget = child;
- child_info->fill = fill ? TRUE : FALSE;
child_info->pack = pack_type;
private->children = g_list_append (private->children, child_info);
@@ -1454,8 +1367,6 @@ gtk_box_pack (GtkBox *box,
gtk_widget_set_parent (child, GTK_WIDGET (box));
- if (!fill)
- gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_FILL]);
if (pack_type != GTK_PACK_START)
gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_PACK_TYPE]);
gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_POSITION]);
@@ -1785,10 +1696,7 @@ gtk_box_compute_size_for_opposing_orientation (GtkBox *box,
}
}
- if (child->fill)
- child_size = MAX (1, child_size);
- else
- child_size = sizes[i].minimum_size;
+ child_size = MAX (1, child_size);
child_minimum_baseline = child_natural_baseline = -1;
@@ -1999,11 +1907,6 @@ gtk_box_new (GtkOrientation orientation,
* gtk_box_pack_start:
* @box: a #GtkBox
* @child: the #GtkWidget to be added to @box
- * @fill: %TRUE if space given to @child by the @expand option is
- * actually allocated to @child, rather than just padding it. This
- * parameter has no effect if @expand is set to %FALSE. A child is
- * always allocated the full height of a horizontal #GtkBox and the full width
- * of a vertical #GtkBox. This option affects the other dimension
*
* Adds @child to @box, packed with reference to the start of @box.
* The @child is packed after any other child packed with reference
@@ -2011,21 +1914,15 @@ gtk_box_new (GtkOrientation orientation,
*/
void
gtk_box_pack_start (GtkBox *box,
- GtkWidget *child,
- gboolean fill)
+ GtkWidget *child)
{
- gtk_box_pack (box, child, fill, GTK_PACK_START);
+ gtk_box_pack (box, child, GTK_PACK_START);
}
/**
* gtk_box_pack_end:
* @box: a #GtkBox
* @child: the #GtkWidget to be added to @box
- * @fill: %TRUE if space given to @child by the @expand option is
- * actually allocated to @child, rather than just padding it. This
- * parameter has no effect if @expand is set to %FALSE. A child is
- * always allocated the full height of a horizontal #GtkBox and the full width
- * of a vertical #GtkBox. This option affects the other dimension
*
* Adds @child to @box, packed with reference to the end of @box.
* The @child is packed after (away from end of) any other child
@@ -2033,10 +1930,9 @@ gtk_box_pack_start (GtkBox *box,
*/
void
gtk_box_pack_end (GtkBox *box,
- GtkWidget *child,
- gboolean fill)
+ GtkWidget *child)
{
- gtk_box_pack (box, child, fill, GTK_PACK_END);
+ gtk_box_pack (box, child, GTK_PACK_END);
}
/**
@@ -2255,8 +2151,6 @@ gtk_box_reorder_child (GtkBox *box,
* gtk_box_query_child_packing:
* @box: a #GtkBox
* @child: the #GtkWidget of the child to query
- * @fill: (out) (optional): pointer to return location for fill child
- * property
* @pack_type: (out) (optional): pointer to return location for pack-type
* child property
*
@@ -2265,7 +2159,6 @@ gtk_box_reorder_child (GtkBox *box,
void
gtk_box_query_child_packing (GtkBox *box,
GtkWidget *child,
- gboolean *fill,
GtkPackType *pack_type)
{
GtkBoxPrivate *private;
@@ -2289,8 +2182,6 @@ gtk_box_query_child_packing (GtkBox *box,
if (list)
{
- if (fill)
- *fill = child_info->fill;
if (pack_type)
*pack_type = child_info->pack;
}
@@ -2300,7 +2191,6 @@ gtk_box_query_child_packing (GtkBox *box,
* gtk_box_set_child_packing:
* @box: a #GtkBox
* @child: the #GtkWidget of the child to set
- * @fill: the new value of the fill child property
* @pack_type: the new value of the pack-type child property
*
* Sets the way @child is packed into @box.
@@ -2308,7 +2198,6 @@ gtk_box_query_child_packing (GtkBox *box,
void
gtk_box_set_child_packing (GtkBox *box,
GtkWidget *child,
- gboolean fill,
GtkPackType pack_type)
{
GtkBoxPrivate *private;
@@ -2333,14 +2222,6 @@ gtk_box_set_child_packing (GtkBox *box,
gtk_widget_freeze_child_notify (child);
if (list)
{
- fill = fill != FALSE;
-
- if (child_info->fill != fill)
- {
- child_info->fill = fill;
- gtk_container_child_notify_by_pspec (GTK_CONTAINER (box), child, child_props[CHILD_PROP_FILL]);
- }
-
if (pack_type != GTK_PACK_END)
pack_type = GTK_PACK_START;
if (child_info->pack != pack_type)
@@ -2361,8 +2242,7 @@ static void
gtk_box_add (GtkContainer *container,
GtkWidget *widget)
{
- gtk_box_pack_start (GTK_BOX (container), widget,
- TRUE);
+ gtk_box_pack_start (GTK_BOX (container), widget);
}
static void
@@ -2502,7 +2382,7 @@ gtk_box_set_center_widget (GtkBox *box,
}
if (widget)
- priv->center = gtk_box_pack (box, widget, TRUE, GTK_PACK_START);
+ priv->center = gtk_box_pack (box, widget, GTK_PACK_START);
if (old_center)
g_object_unref (old_center);
diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h
index af99839..79abe10 100644
--- a/gtk/gtkbox.h
+++ b/gtk/gtkbox.h
@@ -82,12 +82,10 @@ GtkWidget* gtk_box_new (GtkOrientation orientation,
GDK_AVAILABLE_IN_ALL
void gtk_box_pack_start (GtkBox *box,
- GtkWidget *child,
- gboolean fill);
+ GtkWidget *child);
GDK_AVAILABLE_IN_ALL
void gtk_box_pack_end (GtkBox *box,
- GtkWidget *child,
- gboolean fill);
+ GtkWidget *child);
GDK_AVAILABLE_IN_ALL
void gtk_box_set_homogeneous (GtkBox *box,
@@ -113,12 +111,10 @@ void gtk_box_reorder_child (GtkBox *box,
GDK_AVAILABLE_IN_ALL
void gtk_box_query_child_packing (GtkBox *box,
GtkWidget *child,
- gboolean *fill,
GtkPackType *pack_type);
GDK_AVAILABLE_IN_ALL
void gtk_box_set_child_packing (GtkBox *box,
GtkWidget *child,
- gboolean fill,
GtkPackType pack_type);
GDK_AVAILABLE_IN_3_12
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index 259a6ae..57b93c7 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -535,12 +535,12 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
cc->priv->custom = box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
g_object_set (box, "margin-top", 12, NULL);
- gtk_box_pack_end (GTK_BOX (cc->priv->palette), box, FALSE);
+ gtk_box_pack_end (GTK_BOX (cc->priv->palette), box);
/* translators: label for the custom section in the color chooser */
cc->priv->custom_label = label = gtk_label_new (_("Custom"));
gtk_widget_set_halign (label, GTK_ALIGN_START);
- gtk_box_pack_end (GTK_BOX (cc->priv->palette), label, FALSE);
+ gtk_box_pack_end (GTK_BOX (cc->priv->palette), label);
cc->priv->button = button = gtk_color_swatch_new ();
gtk_widget_set_name (button, "add-color-button");
diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c
index cc9e42f..f0aeaab 100644
--- a/gtk/gtkcustompaperunixdialog.c
+++ b/gtk/gtkcustompaperunixdialog.c
@@ -555,7 +555,7 @@ new_unit_widget (GtkCustomPaperUnixDialog *dialog,
else
gtk_spin_button_set_digits (GTK_SPIN_BUTTON (button), 1);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
gtk_widget_show (button);
data->spin_button = button;
@@ -569,7 +569,7 @@ new_unit_widget (GtkCustomPaperUnixDialog *dialog,
label = gtk_label_new (_("mm"));
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
gtk_widget_show (label);
gtk_label_set_mnemonic_widget (GTK_LABEL (mnemonic_label), button);
@@ -979,13 +979,13 @@ wrap_in_frame (const gchar *label,
g_free (bold_text);
frame = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
- gtk_box_pack_start (GTK_BOX (frame), label_widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (frame), label_widget);
gtk_widget_set_margin_start (child, 12);
gtk_widget_set_halign (child, GTK_ALIGN_FILL);
gtk_widget_set_valign (child, GTK_ALIGN_FILL);
- gtk_box_pack_start (GTK_BOX (frame), child, FALSE);
+ gtk_box_pack_start (GTK_BOX (frame), child);
gtk_widget_show (frame);
@@ -1036,11 +1036,11 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 18);
- gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox);
gtk_widget_show (hbox);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
gtk_widget_show (vbox);
scrolled = gtk_scrolled_window_new (NULL, NULL);
@@ -1048,7 +1048,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled),
GTK_SHADOW_IN);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled);
gtk_widget_show (scrolled);
treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (priv->custom_paper_list));
@@ -1079,7 +1079,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
context = gtk_widget_get_style_context (toolbar);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_INLINE_TOOLBAR);
- gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), toolbar);
gtk_widget_show (toolbar);
icon = g_themed_icon_new_with_default_fallbacks ("list-add-symbolic");
@@ -1098,7 +1098,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
priv->values_box = vbox;
- gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
gtk_widget_show (vbox);
grid = gtk_grid_new ();
@@ -1130,7 +1130,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
frame = wrap_in_frame (_("Paper Size"), grid);
gtk_widget_show (grid);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
gtk_widget_show (frame);
grid = gtk_grid_new ();
@@ -1203,7 +1203,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
NULL, NULL);
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
- gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), combo);
gtk_widget_show (combo);
g_signal_connect_swapped (combo, "changed",
@@ -1211,7 +1211,7 @@ populate_dialog (GtkCustomPaperUnixDialog *dialog)
frame = wrap_in_frame (_("Paper Margins"), grid);
gtk_widget_show (grid);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
gtk_widget_show (frame);
update_custom_widgets_from_list (dialog);
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 803fc53..856cf0e 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1324,7 +1324,7 @@ gtk_entry_completion_insert_action (GtkEntryCompletion *completion,
gtk_tree_path_free (path);
gtk_box_pack_start (GTK_BOX (completion->priv->vbox),
- completion->priv->action_view, FALSE);
+ completion->priv->action_view);
gtk_widget_show (completion->priv->action_view);
}
}
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 3bc7aad..82f2d86 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -926,7 +926,7 @@ update_preview_widget_visibility (GtkFileChooserWidget *impl)
if (!priv->preview_label)
{
priv->preview_label = gtk_label_new (priv->preview_display_name);
- gtk_box_pack_start (GTK_BOX (priv->preview_box), priv->preview_label, FALSE);
+ gtk_box_pack_start (GTK_BOX (priv->preview_box), priv->preview_label);
gtk_box_reorder_child (GTK_BOX (priv->preview_box), priv->preview_label, 0);
gtk_label_set_ellipsize (GTK_LABEL (priv->preview_label), PANGO_ELLIPSIZE_MIDDLE);
gtk_widget_show (priv->preview_label);
@@ -967,7 +967,7 @@ set_preview_widget (GtkFileChooserWidget *impl,
if (priv->preview_widget)
{
gtk_widget_show (priv->preview_widget);
- gtk_box_pack_start (GTK_BOX (priv->preview_box), priv->preview_widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (priv->preview_box), priv->preview_widget);
gtk_box_reorder_child (GTK_BOX (priv->preview_box),
priv->preview_widget,
(priv->use_preview_label && priv->preview_label) ? 1 : 0);
@@ -2687,7 +2687,7 @@ save_widgets_create (GtkFileChooserWidget *impl)
gtk_style_context_add_class (gtk_widget_get_style_context (vbox), "search-bar");
priv->save_widgets_table = gtk_grid_new ();
- gtk_box_pack_start (GTK_BOX (vbox), priv->save_widgets_table, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), priv->save_widgets_table);
gtk_grid_set_row_spacing (GTK_GRID (priv->save_widgets_table), 12);
gtk_grid_set_column_spacing (GTK_GRID (priv->save_widgets_table), 12);
@@ -2707,7 +2707,7 @@ save_widgets_create (GtkFileChooserWidget *impl)
gtk_label_set_mnemonic_widget (GTK_LABEL (widget), priv->location_entry);
priv->save_widgets = vbox;
- gtk_box_pack_start (GTK_BOX (impl), priv->save_widgets, FALSE);
+ gtk_box_pack_start (GTK_BOX (impl), priv->save_widgets);
gtk_box_reorder_child (GTK_BOX (impl), priv->save_widgets, 0);
gtk_widget_show (priv->save_widgets);
}
@@ -2774,7 +2774,7 @@ location_switch_to_filename_entry (GtkFileChooserWidget *impl)
if (!priv->location_entry)
{
location_entry_create (impl);
- gtk_box_pack_start (GTK_BOX (priv->location_entry_box), priv->location_entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (priv->location_entry_box), priv->location_entry);
}
_gtk_file_chooser_entry_set_base_folder (GTK_FILE_CHOOSER_ENTRY (priv->location_entry),
priv->current_folder);
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 4473d41..0055f3b 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -140,7 +140,7 @@ init_sizing_box (GtkHeaderBar *bar)
w = gtk_label_new (NULL);
context = gtk_widget_get_style_context (w);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_TITLE);
- gtk_box_pack_start (GTK_BOX (priv->label_sizing_box), w, FALSE);
+ gtk_box_pack_start (GTK_BOX (priv->label_sizing_box), w);
gtk_label_set_line_wrap (GTK_LABEL (w), FALSE);
gtk_label_set_single_line_mode (GTK_LABEL (w), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (w), PANGO_ELLIPSIZE_END);
@@ -149,7 +149,7 @@ init_sizing_box (GtkHeaderBar *bar)
w = gtk_label_new (NULL);
context = gtk_widget_get_style_context (w);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_SUBTITLE);
- gtk_box_pack_start (GTK_BOX (priv->label_sizing_box), w, FALSE);
+ gtk_box_pack_start (GTK_BOX (priv->label_sizing_box), w);
gtk_label_set_line_wrap (GTK_LABEL (w), FALSE);
gtk_label_set_single_line_mode (GTK_LABEL (w), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (w), PANGO_ELLIPSIZE_END);
@@ -177,7 +177,7 @@ create_title_box (const char *title,
gtk_label_set_line_wrap (GTK_LABEL (title_label), FALSE);
gtk_label_set_single_line_mode (GTK_LABEL (title_label), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (title_label), PANGO_ELLIPSIZE_END);
- gtk_box_pack_start (GTK_BOX (label_box), title_label, FALSE);
+ gtk_box_pack_start (GTK_BOX (label_box), title_label);
gtk_label_set_width_chars (GTK_LABEL (title_label), MIN_TITLE_CHARS);
subtitle_label = gtk_label_new (subtitle);
@@ -186,7 +186,7 @@ create_title_box (const char *title,
gtk_label_set_line_wrap (GTK_LABEL (subtitle_label), FALSE);
gtk_label_set_single_line_mode (GTK_LABEL (subtitle_label), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (subtitle_label), PANGO_ELLIPSIZE_END);
- gtk_box_pack_start (GTK_BOX (label_box), subtitle_label, FALSE);
+ gtk_box_pack_start (GTK_BOX (label_box), subtitle_label);
gtk_widget_set_visible (subtitle_label, subtitle && subtitle[0]);
if (ret_title_label)
@@ -441,7 +441,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
if (button)
{
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
n_children ++;
}
}
@@ -456,7 +456,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
continue;
}
- gtk_box_pack_start (GTK_BOX (box), separator, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), separator);
if (i == 1)
gtk_box_reorder_child (GTK_BOX (box), separator, 0);
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 97b601c..5f29c06 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -518,8 +518,7 @@ gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
else
g_warning ("Only 'activatable' widgets can be packed into the action area of a GtkInfoBar");
- gtk_box_pack_end (GTK_BOX (info_bar->priv->action_area),
- child, FALSE);
+ gtk_box_pack_end (GTK_BOX (info_bar->priv->action_area), child);
if (response_id == GTK_RESPONSE_HELP)
gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (info_bar->priv->action_area),
child, TRUE);
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index 9dda6a9..3179290 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -134,7 +134,7 @@ gtk_menu_section_box_sync_separators (GtkMenuSectionBox *box,
return;
if (should_have_separator)
- gtk_box_pack_start (GTK_BOX (box), box->separator, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), box->separator);
else
gtk_container_remove (GTK_CONTAINER (box), box->separator);
}
@@ -343,7 +343,7 @@ gtk_menu_section_box_init (GtkMenuSectionBox *box)
item_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
box->item_box = GTK_BOX (item_box);
- gtk_box_pack_end (GTK_BOX (box), item_box, FALSE);
+ gtk_box_pack_end (GTK_BOX (box), item_box);
gtk_widget_set_halign (GTK_WIDGET (item_box), GTK_ALIGN_FILL);
gtk_widget_set_halign (GTK_WIDGET (box), GTK_ALIGN_FILL);
@@ -451,7 +451,7 @@ gtk_menu_section_box_new_submenu (GtkMenuTrackerItem *item,
g_object_set_data (G_OBJECT (button), "focus", focus);
g_object_set_data (G_OBJECT (focus), "focus", button);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
g_signal_connect (focus, "clicked", G_CALLBACK (open_submenu), item);
g_signal_connect (button, "clicked", G_CALLBACK (close_submenu), item);
@@ -512,17 +512,17 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item,
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_set_valign (separator, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (box->separator), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box->separator), separator);
title = gtk_label_new (label);
g_object_bind_property (item, "label", title, "label", G_BINDING_SYNC_CREATE);
gtk_style_context_add_class (gtk_widget_get_style_context (title), GTK_STYLE_CLASS_SEPARATOR);
gtk_widget_set_halign (title, GTK_ALIGN_START);
- gtk_box_pack_start (GTK_BOX (box->separator), title, FALSE);
+ gtk_box_pack_start (GTK_BOX (box->separator), title);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_set_valign (separator, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (box->separator), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box->separator), separator);
}
else
{
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index 05509ff..d34d02d 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -140,8 +140,7 @@ gtk_menu_tool_button_construct_contents (GtkMenuToolButton *button)
g_object_ref (priv->arrow_button);
gtk_container_remove (GTK_CONTAINER (parent),
priv->arrow_button);
- gtk_box_pack_end (GTK_BOX (box), priv->arrow_button,
- FALSE);
+ gtk_box_pack_end (GTK_BOX (box), priv->arrow_button);
g_object_unref (priv->arrow_button);
}
@@ -285,8 +284,7 @@ gtk_menu_tool_button_init (GtkMenuToolButton *button)
g_object_unref (real_button);
arrow_button = gtk_menu_button_new ();
- gtk_box_pack_end (GTK_BOX (box), arrow_button,
- FALSE);
+ gtk_box_pack_end (GTK_BOX (box), arrow_button);
/* the arrow button is insentive until we set a menu */
gtk_widget_set_sensitive (arrow_button, FALSE);
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index 888bc8e..2cf12ef 100644
--- a/gtk/gtkmodelmenuitem.c
+++ b/gtk/gtkmodelmenuitem.c
@@ -180,7 +180,7 @@ gtk_model_menu_item_set_icon (GtkModelMenuItem *item,
/* Reparent the child without destroying it */
g_object_ref (child);
gtk_container_remove (GTK_CONTAINER (item), child);
- gtk_box_pack_end (GTK_BOX (box), child, TRUE);
+ gtk_box_pack_end (GTK_BOX (box), child);
g_object_unref (child);
gtk_container_add (GTK_CONTAINER (item), box);
@@ -200,7 +200,7 @@ gtk_model_menu_item_set_icon (GtkModelMenuItem *item,
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
gtk_image_set_pixel_size (GTK_IMAGE (image), 16);
- gtk_box_pack_start (GTK_BOX (child), image, FALSE);
+ gtk_box_pack_start (GTK_BOX (child), image);
}
g_object_notify (G_OBJECT (item), "icon");
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 1ddaa19..2f5189d 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -547,17 +547,17 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
/* Build contents */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox);
icon = gtk_image_new_from_icon_name ("dialog-password",
GTK_ICON_SIZE_DIALOG);
gtk_widget_set_halign (icon, GTK_ALIGN_CENTER);
gtk_widget_set_valign (icon, GTK_ALIGN_START);
- gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), icon);
main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
- gtk_box_pack_start (GTK_BOX (hbox), main_vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), main_vbox);
secondary = strstr (message, "\n");
if (secondary != NULL)
@@ -573,8 +573,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
- gtk_box_pack_start (GTK_BOX (main_vbox), GTK_WIDGET (label),
- TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), GTK_WIDGET (label));
g_free (primary);
attrs = pango_attr_list_new ();
pango_attr_list_insert (attrs, pango_attr_weight_new (PANGO_WEIGHT_BOLD));
@@ -587,8 +586,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
- gtk_box_pack_start (GTK_BOX (main_vbox), GTK_WIDGET (label),
- FALSE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), GTK_WIDGET (label));
}
grid = gtk_grid_new ();
@@ -596,7 +594,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
gtk_grid_set_row_spacing (GTK_GRID (grid), 12);
gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
gtk_widget_set_margin_bottom (grid, 12);
- gtk_box_pack_start (GTK_BOX (main_vbox), grid, FALSE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), grid);
can_anonymous = priv->ask_flags & G_ASK_PASSWORD_ANONYMOUS_SUPPORTED;
@@ -620,8 +618,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
choice = gtk_radio_button_new_with_mnemonic (NULL, _("_Anonymous"));
gtk_box_pack_start (GTK_BOX (anon_box),
- choice,
- FALSE);
+ choice);
g_signal_connect (choice, "toggled",
G_CALLBACK (pw_dialog_anonymous_toggled), operation);
priv->anonymous_toggle = choice;
@@ -629,8 +626,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (choice));
choice = gtk_radio_button_new_with_mnemonic (group, _("Registered U_ser"));
gtk_box_pack_start (GTK_BOX (anon_box),
- choice,
- FALSE);
+ choice);
g_signal_connect (choice, "toggled",
G_CALLBACK (pw_dialog_anonymous_toggled), operation);
}
@@ -678,7 +674,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
GINT_TO_POINTER (G_PASSWORD_SAVE_NEVER));
g_signal_connect (choice, "toggled",
G_CALLBACK (remember_button_toggled), operation);
- gtk_box_pack_start (GTK_BOX (remember_box), choice, FALSE);
+ gtk_box_pack_start (GTK_BOX (remember_box), choice);
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (choice));
choice = gtk_radio_button_new_with_mnemonic (group, _("Remember password until you _logout"));
@@ -688,7 +684,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
GINT_TO_POINTER (G_PASSWORD_SAVE_FOR_SESSION));
g_signal_connect (choice, "toggled",
G_CALLBACK (remember_button_toggled), operation);
- gtk_box_pack_start (GTK_BOX (remember_box), choice, FALSE);
+ gtk_box_pack_start (GTK_BOX (remember_box), choice);
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (choice));
choice = gtk_radio_button_new_with_mnemonic (group, _("Remember _forever"));
@@ -698,7 +694,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
GINT_TO_POINTER (G_PASSWORD_SAVE_PERMANENTLY));
g_signal_connect (choice, "toggled",
G_CALLBACK (remember_button_toggled), operation);
- gtk_box_pack_start (GTK_BOX (remember_box), choice, FALSE);
+ gtk_box_pack_start (GTK_BOX (remember_box), choice);
}
g_signal_connect (G_OBJECT (dialog), "response",
@@ -1403,7 +1399,7 @@ create_show_processes_dialog (GtkMountOperation *op,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
if (secondary != NULL)
s = g_strdup_printf ("<big><b>%s</b></big>\n\n%s", primary, secondary);
@@ -1414,7 +1410,7 @@ create_show_processes_dialog (GtkMountOperation *op,
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), s);
g_free (s);
- gtk_box_pack_start (GTK_BOX (vbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
/* First count the items in the list then
* add the buttons in reverse order */
@@ -1466,7 +1462,7 @@ create_show_processes_dialog (GtkMountOperation *op,
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_IN);
gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_window);
g_signal_connect (tree_view, "popup-menu",
G_CALLBACK (on_popup_menu_for_process_tree_view),
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index fe0d228..d5e9e29 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1486,8 +1486,8 @@ make_directory_button (GtkPathBar *path_bar,
button_data->image = gtk_image_new ();
button_data->label = gtk_label_new (NULL);
child = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (child), button_data->image, FALSE);
- gtk_box_pack_start (GTK_BOX (child), button_data->label, FALSE);
+ gtk_box_pack_start (GTK_BOX (child), button_data->image);
+ gtk_box_pack_start (GTK_BOX (child), button_data->label);
break;
case NORMAL_BUTTON:
default:
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 0c850a0..4094279 100644
--- a/gtk/gtkprintbackend.c
+++ b/gtk/gtkprintbackend.c
@@ -789,12 +789,12 @@ request_password (GtkPrintBackend *backend,
/* Packing */
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
- gtk_box_pack_start (GTK_BOX (content_area), main_box, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), main_box);
- gtk_box_pack_start (GTK_BOX (main_box), icon, FALSE);
- gtk_box_pack_start (GTK_BOX (main_box), vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (main_box), icon);
+ gtk_box_pack_start (GTK_BOX (main_box), vbox);
- gtk_box_pack_start (GTK_BOX (vbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
/* Right - 2. */
for (i = 0; i < length; i++)
@@ -820,10 +820,10 @@ request_password (GtkPrintBackend *backend,
gtk_entry_set_visibility (GTK_ENTRY (entry), ai_visible[i]);
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), box, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), box);
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
- gtk_box_pack_start (GTK_BOX (box), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
+ gtk_box_pack_start (GTK_BOX (box), entry);
g_signal_connect (entry, "changed",
G_CALLBACK (store_entry), &(priv->auth_info[i]));
@@ -836,7 +836,7 @@ request_password (GtkPrintBackend *backend,
gtk_widget_set_margin_top (chkbtn, 6);
gtk_widget_set_margin_bottom (chkbtn, 6);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (chkbtn), FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), chkbtn, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), chkbtn);
g_signal_connect (chkbtn, "toggled",
G_CALLBACK (store_auth_info_toggled),
&(priv->store_auth_info));
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index b0a502d..2bd5832 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -737,7 +737,7 @@ alternative_append (GtkWidget *box,
button = gtk_radio_button_new_with_label (group, label);
gtk_widget_show (button);
gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
g_object_set_data (G_OBJECT (button), "value", (gpointer)value);
g_signal_connect (button, "toggled",
@@ -768,7 +768,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
gtk_combo_box_set_active (GTK_COMBO_BOX (priv->combo), 0);
gtk_widget_set_sensitive (GTK_WIDGET (widget), FALSE);
gtk_widget_show (priv->combo);
- gtk_box_pack_start (GTK_BOX (widget), priv->combo, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->combo);
}
else switch (source->type)
{
@@ -776,7 +776,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
priv->check = gtk_check_button_new_with_mnemonic (source->display_text);
g_signal_connect (priv->check, "toggled", G_CALLBACK (check_toggled_cb), widget);
gtk_widget_show (priv->check);
- gtk_box_pack_start (GTK_BOX (widget), priv->check, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->check);
break;
case GTK_PRINTER_OPTION_TYPE_PICKONE:
case GTK_PRINTER_OPTION_TYPE_PICKONE_PASSWORD:
@@ -808,7 +808,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
source->choices_display[i],
source->choices[i]);
gtk_widget_show (priv->combo);
- gtk_box_pack_start (GTK_BOX (widget), priv->combo, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->combo);
g_signal_connect (priv->combo, "changed", G_CALLBACK (combo_changed_cb), widget);
text = g_strdup_printf ("%s:", source->display_text);
@@ -822,7 +822,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
priv->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_set_valign (priv->box, GTK_ALIGN_BASELINE);
gtk_widget_show (priv->box);
- gtk_box_pack_start (GTK_BOX (widget), priv->box, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->box);
for (i = 0; i < source->num_choices; i++)
{
group = alternative_append (priv->box,
@@ -850,7 +850,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
gtk_entry_set_activates_default (GTK_ENTRY (priv->entry),
gtk_printer_option_get_activates_default (source));
gtk_widget_show (priv->entry);
- gtk_box_pack_start (GTK_BOX (widget), priv->entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->entry);
g_signal_connect (priv->entry, "changed", G_CALLBACK (entry_changed_cb), widget);
text = g_strdup_printf ("%s:", source->display_text);
@@ -863,7 +863,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
case GTK_PRINTER_OPTION_TYPE_FILESAVE:
priv->button = gtk_button_new ();
gtk_widget_show (priv->button);
- gtk_box_pack_start (GTK_BOX (widget), priv->button, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->button);
g_signal_connect (priv->button, "clicked", G_CALLBACK (filesave_choose_cb), widget);
text = g_strdup_printf ("%s:", source->display_text);
@@ -876,13 +876,11 @@ construct_widgets (GtkPrinterOptionWidget *widget)
case GTK_PRINTER_OPTION_TYPE_INFO:
priv->info_label = gtk_label_new (NULL);
gtk_label_set_selectable (GTK_LABEL (priv->info_label), TRUE);
- gtk_widget_show (priv->info_label);
- gtk_box_pack_start (GTK_BOX (widget), priv->info_label, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->info_label);
text = g_strdup_printf ("%s:", source->display_text);
priv->label = gtk_label_new_with_mnemonic (text);
g_free (text);
- gtk_widget_show (priv->label);
break;
@@ -891,7 +889,7 @@ construct_widgets (GtkPrinterOptionWidget *widget)
}
priv->image = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_MENU);
- gtk_box_pack_start (GTK_BOX (widget), priv->image, FALSE);
+ gtk_box_pack_start (GTK_BOX (widget), priv->image);
}
/*
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 2c014d4..19414e7 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -1306,13 +1306,13 @@ wrap_in_frame (const gchar *label,
g_free (bold_text);
frame = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
- gtk_box_pack_start (GTK_BOX (frame), label_widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (frame), label_widget);
gtk_widget_set_margin_start (child, 12);
gtk_widget_set_halign (child, GTK_ALIGN_FILL);
gtk_widget_set_valign (child, GTK_ALIGN_FILL);
- gtk_box_pack_start (GTK_BOX (frame), child, FALSE);
+ gtk_box_pack_start (GTK_BOX (frame), child);
gtk_widget_show (frame);
@@ -1357,14 +1357,14 @@ add_option_to_extension_point (GtkPrinterOption *option,
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_set_valign (hbox, GTK_ALIGN_BASELINE);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
gtk_widget_show (hbox);
- gtk_box_pack_start (GTK_BOX (extension_point), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (extension_point), hbox);
}
else
- gtk_box_pack_start (GTK_BOX (extension_point), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (extension_point), widget);
}
static gint
@@ -1643,7 +1643,7 @@ update_dialog_from_settings (GtkPrintUnixDialog *dialog)
gtk_widget_show (frame);
gtk_box_pack_start (GTK_BOX (priv->advanced_vbox),
- frame, FALSE);
+ frame);
}
}
diff --git a/gtk/gtkrecentchooserdialog.c b/gtk/gtkrecentchooserdialog.c
index 2cbcc53..24e781c 100644
--- a/gtk/gtkrecentchooserdialog.c
+++ b/gtk/gtkrecentchooserdialog.c
@@ -206,7 +206,7 @@ gtk_recent_chooser_dialog_constructed (GObject *object)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (object));
gtk_box_pack_start (GTK_BOX (content_area),
- priv->chooser, TRUE);
+ priv->chooser);
_gtk_recent_chooser_set_delegate (GTK_RECENT_CHOOSER (object),
GTK_RECENT_CHOOSER (priv->chooser));
diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c
index b14a76b..65d6a31 100644
--- a/gtk/gtkshortcutssection.c
+++ b/gtk/gtkshortcutssection.c
@@ -458,7 +458,7 @@ gtk_shortcuts_section_init (GtkShortcutsSection *self)
gtk_widget_set_hexpand (GTK_WIDGET (self->switcher), TRUE);
gtk_widget_set_halign (GTK_WIDGET (self->switcher), GTK_ALIGN_CENTER);
gtk_container_add (GTK_CONTAINER (self->footer), GTK_WIDGET (self->switcher));
- gtk_box_pack_end (GTK_BOX (self->footer), self->show_all, TRUE);
+ gtk_box_pack_end (GTK_BOX (self->footer), self->show_all);
gtk_widget_set_halign (self->show_all, GTK_ALIGN_END);
self->pan_gesture = gtk_gesture_pan_new (GTK_WIDGET (self->stack), GTK_ORIENTATION_HORIZONTAL);
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c
index 6872f4b..aaaa0c4 100644
--- a/gtk/gtktoolbutton.c
+++ b/gtk/gtktoolbutton.c
@@ -518,8 +518,8 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item)
else
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL,0);
if (icon)
- gtk_box_pack_start (GTK_BOX (box), icon, TRUE);
- gtk_box_pack_end (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), icon);
+ gtk_box_pack_end (GTK_BOX (box), label);
gtk_container_add (GTK_CONTAINER (button->priv->button), box);
gtk_style_context_add_class (gtk_widget_get_style_context (button->priv->button), "image-button");
gtk_style_context_add_class (gtk_widget_get_style_context (button->priv->button), "text-button");
@@ -530,17 +530,17 @@ gtk_tool_button_construct_contents (GtkToolItem *tool_item)
{
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
if (icon)
- gtk_box_pack_start (GTK_BOX (box), icon, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), icon);
if (label)
- gtk_box_pack_end (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_end (GTK_BOX (box), label);
}
else
{
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
if (icon)
- gtk_box_pack_end (GTK_BOX (box), icon, TRUE);
+ gtk_box_pack_end (GTK_BOX (box), icon);
if (label)
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
}
gtk_container_add (GTK_CONTAINER (button->priv->button), box);
gtk_style_context_add_class (gtk_widget_get_style_context (button->priv->button), "image-button");
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index df023db..0e17119 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -849,13 +849,13 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column)
if (priv->xalign <= 0.5)
{
- gtk_box_pack_start (GTK_BOX (hbox), priv->frame, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), priv->arrow, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), priv->frame);
+ gtk_box_pack_start (GTK_BOX (hbox), priv->arrow);
}
else
{
- gtk_box_pack_start (GTK_BOX (hbox), priv->arrow, FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), priv->frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), priv->arrow);
+ gtk_box_pack_start (GTK_BOX (hbox), priv->frame);
}
gtk_container_add (GTK_CONTAINER (priv->frame), child);
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c
index 1f1ac64..28eae3f 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -138,13 +138,13 @@ add_check_row (GtkInspectorGeneral *gen,
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
- gtk_box_pack_start (GTK_BOX (box), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), label);
check = gtk_image_new_from_icon_name ("object-select-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_set_halign (check, GTK_ALIGN_END);
gtk_widget_set_valign (check, GTK_ALIGN_BASELINE);
gtk_widget_set_opacity (check, value ? 1.0 : 0.0);
- gtk_box_pack_start (GTK_BOX (box), check, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), check);
row = gtk_list_box_row_new ();
gtk_container_add (GTK_CONTAINER (row), box);
@@ -176,14 +176,14 @@ add_label_row (GtkInspectorGeneral *gen,
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
- gtk_box_pack_start (GTK_BOX (box), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), label);
label = gtk_label_new (value);
gtk_label_set_selectable (GTK_LABEL (label), TRUE);
gtk_widget_set_halign (label, GTK_ALIGN_END);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_label_set_xalign (GTK_LABEL (label), 1.0);
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
row = gtk_list_box_row_new ();
gtk_container_add (GTK_CONTAINER (row), box);
diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c
index 72a54ac..c963a8d 100644
--- a/gtk/inspector/prop-editor.c
+++ b/gtk/inspector/prop-editor.c
@@ -938,7 +938,7 @@ property_editor (GObject *object,
first = b;
g_object_set_data (G_OBJECT (b), "index", GINT_TO_POINTER (j));
gtk_widget_show (b);
- gtk_box_pack_start (GTK_BOX (box), b, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), b);
connect_controller (G_OBJECT (b), "toggled",
object, spec, G_CALLBACK (enum_modified));
++j;
@@ -980,7 +980,7 @@ property_editor (GObject *object,
b = gtk_check_button_new_with_label (fclass->values[j].value_name);
g_object_set_data (G_OBJECT (b), "index", GINT_TO_POINTER (j));
gtk_widget_show (b);
- gtk_box_pack_start (GTK_BOX (box), b, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), b);
connect_controller (G_OBJECT (b), "toggled",
object, spec, G_CALLBACK (flags_modified));
}
@@ -1605,7 +1605,7 @@ add_gtk_settings_info (GtkInspectorPropEditor *editor)
gtk_widget_set_halign (button, GTK_ALIGN_END);
gtk_widget_show (button);
gtk_widget_set_sensitive (button, FALSE);
- gtk_box_pack_end (GTK_BOX (row), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (row), button);
switch (_gtk_settings_get_setting_source (GTK_SETTINGS (object), name))
{
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index be2c016..aeb7007 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -348,7 +348,7 @@ gtk_inspector_recorder_recordings_list_create_widget (gpointer item,
widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_box_pack_start (GTK_BOX (widget), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (widget), hbox);
for (i = 0; i < g_list_model_get_n_items (priv->recordings); i++)
{
@@ -387,17 +387,17 @@ gtk_inspector_recorder_recordings_list_create_widget (gpointer item,
label = gtk_label_new (str);
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
g_free (str);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
button = gtk_toggle_button_new ();
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
gtk_button_set_icon_name (GTK_BUTTON (button), "view-more-symbolic");
- gtk_box_pack_end (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
label = gtk_label_new (gtk_inspector_render_recording_get_profiler_info
(GTK_INSPECTOR_RENDER_RECORDING (recording)));
gtk_widget_hide (label);
- gtk_box_pack_end (GTK_BOX (widget), label, FALSE);
+ gtk_box_pack_end (GTK_BOX (widget), label);
g_object_bind_property (button, "active", label, "visible", 0);
}
else
diff --git a/gtk/inspector/size-groups.c b/gtk/inspector/size-groups.c
index c69c409..fdc4e4d 100644
--- a/gtk/inspector/size-groups.c
+++ b/gtk/inspector/size-groups.c
@@ -225,7 +225,7 @@ add_size_group (GtkInspectorSizeGroups *sl,
g_object_set (label, "margin", 10, NULL);
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
- gtk_box_pack_start (GTK_BOX (box2), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), label);
combo = gtk_combo_box_text_new ();
g_object_set (combo, "margin", 10, NULL);
@@ -238,7 +238,7 @@ add_size_group (GtkInspectorSizeGroups *sl,
g_object_bind_property (group, "mode",
combo, "active",
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
- gtk_box_pack_start (GTK_BOX (box2), combo, FALSE);
+ gtk_box_pack_start (GTK_BOX (box2), combo);
listbox = gtk_list_box_new ();
gtk_container_add (GTK_CONTAINER (box), listbox);
diff --git a/gtk/inspector/strv-editor.c b/gtk/inspector/strv-editor.c
index 38c89f4..0ea973b 100644
--- a/gtk/inspector/strv-editor.c
+++ b/gtk/inspector/strv-editor.c
@@ -68,17 +68,17 @@ add_string (GtkInspectorStrvEditor *editor,
entry = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (entry), str);
gtk_widget_show (entry);
- gtk_box_pack_start (GTK_BOX (box), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), entry);
g_object_set_data (G_OBJECT (box), "entry", entry);
g_signal_connect_swapped (entry, "notify::text", G_CALLBACK (emit_changed), editor);
button = gtk_button_new_from_icon_name ("user-trash-symbolic", GTK_ICON_SIZE_MENU);
gtk_style_context_add_class (gtk_widget_get_style_context (button), "image-button");
gtk_widget_show (button);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
g_signal_connect (button, "clicked", G_CALLBACK (remove_string), editor);
- gtk_box_pack_start (GTK_BOX (editor->box), box, FALSE);
+ gtk_box_pack_start (GTK_BOX (editor->box), box);
gtk_widget_grab_focus (entry);
@@ -107,8 +107,8 @@ gtk_inspector_strv_editor_init (GtkInspectorStrvEditor *editor)
gtk_widget_show (editor->button);
g_signal_connect (editor->button, "clicked", G_CALLBACK (add_cb), editor);
- gtk_box_pack_start (GTK_BOX (editor), editor->box, TRUE);
- gtk_box_pack_start (GTK_BOX (editor), editor->button, FALSE);
+ gtk_box_pack_start (GTK_BOX (editor), editor->box);
+ gtk_box_pack_start (GTK_BOX (editor), editor->button);
}
static void
diff --git a/gtk/ui/gtkaboutdialog.ui b/gtk/ui/gtkaboutdialog.ui
index 2f8a335..6224fd4 100644
--- a/gtk/ui/gtkaboutdialog.ui
+++ b/gtk/ui/gtkaboutdialog.ui
@@ -37,9 +37,6 @@
<property name="visible">1</property>
<property name="icon-name">image-missing</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="name_label">
@@ -49,7 +46,6 @@
<property name="selectable">1</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -74,9 +70,6 @@
<property name="justify">center</property>
<property name="selectable">1</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="comments_label">
@@ -87,9 +80,6 @@
<property name="selectable">1</property>
<property name="max-width-chars">60</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="website_label">
@@ -98,9 +88,6 @@
<property name="selectable">1</property>
<signal name="activate-link" handler="emit_activate_link" object="GtkAboutDialog"
swapped="yes"/>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="copyright_label">
@@ -111,9 +98,6 @@
<property name="selectable">1</property>
<property name="max-width-chars">60</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="license_label">
@@ -125,9 +109,6 @@
<property name="selectable">1</property>
<property name="max-width-chars">60</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
</object>
<packing>
diff --git a/gtk/ui/gtkassistant.ui b/gtk/ui/gtkassistant.ui
index d8c4df7..c75cb99 100644
--- a/gtk/ui/gtkassistant.ui
+++ b/gtk/ui/gtkassistant.ui
@@ -18,9 +18,6 @@
<class name="sidebar"/>
</style>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkBox" id="content_box">
@@ -58,7 +55,6 @@
<signal name="clicked" handler="on_assistant_apply" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
</packing>
</child>
@@ -76,7 +72,6 @@
<signal name="clicked" handler="on_assistant_forward" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
<property name="position">1</property>
</packing>
@@ -94,7 +89,6 @@
<signal name="clicked" handler="on_assistant_back" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
<property name="position">2</property>
</packing>
@@ -112,7 +106,6 @@
<signal name="clicked" handler="on_assistant_last" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
<property name="position">3</property>
</packing>
@@ -131,7 +124,6 @@
<signal name="clicked" handler="on_assistant_cancel" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
<property name="position">4</property>
</packing>
@@ -150,7 +142,6 @@
<signal name="clicked" handler="on_assistant_close" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
<property name="position">5</property>
</packing>
diff --git a/gtk/ui/gtkcoloreditor.ui b/gtk/ui/gtkcoloreditor.ui
index 1ecd5f6..9d3a67b 100644
--- a/gtk/ui/gtkcoloreditor.ui
+++ b/gtk/ui/gtkcoloreditor.ui
@@ -120,7 +120,6 @@
</child>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
diff --git a/gtk/ui/gtkfilechooserwidget.ui b/gtk/ui/gtkfilechooserwidget.ui
index 2083711..3eb3425 100644
--- a/gtk/ui/gtkfilechooserwidget.ui
+++ b/gtk/ui/gtkfilechooserwidget.ui
@@ -66,7 +66,6 @@
<signal name="notify::active" handler="new_folder_popover_active"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
<property name="position">1</property>
</packing>
@@ -111,16 +110,10 @@
</packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
</object>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkBox" id="list_and_preview_box">
@@ -319,7 +312,6 @@
<property name="spacing">12</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -361,7 +353,6 @@
<signal name="changed" handler="filter_combo_changed" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
</packing>
</child>
diff --git a/gtk/ui/gtklockbutton.ui b/gtk/ui/gtklockbutton.ui
index 324c445..6e8c3bf 100644
--- a/gtk/ui/gtklockbutton.ui
+++ b/gtk/ui/gtklockbutton.ui
@@ -13,9 +13,6 @@
<object class="GtkImage" id="image">
<property name="icon-name">image-missing</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkStack" id="stack">
diff --git a/gtk/ui/gtkmessagedialog.ui b/gtk/ui/gtkmessagedialog.ui
index 5e350b4..bec46b9 100644
--- a/gtk/ui/gtkmessagedialog.ui
+++ b/gtk/ui/gtkmessagedialog.ui
@@ -35,9 +35,6 @@
<property name="wrap">1</property>
<property name="max-width-chars">60</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="secondary_label">
@@ -59,9 +56,6 @@
</packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
</object>
</child>
diff --git a/gtk/ui/gtkplacesview.ui b/gtk/ui/gtkplacesview.ui
index f7e8932..8281d37 100644
--- a/gtk/ui/gtkplacesview.ui
+++ b/gtk/ui/gtkplacesview.ui
@@ -381,7 +381,6 @@
</child>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
@@ -459,7 +458,6 @@
</child>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
diff --git a/gtk/ui/gtkprintunixdialog.ui b/gtk/ui/gtkprintunixdialog.ui
index cf3fefa..0c63f97 100644
--- a/gtk/ui/gtkprintunixdialog.ui
+++ b/gtk/ui/gtkprintunixdialog.ui
@@ -153,7 +153,6 @@
<property name="spacing">18</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -182,9 +181,6 @@
<relation type="label-for" target="range_table"/>
</accessibility>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="range_table">
@@ -284,7 +280,6 @@
</accessibility>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -309,9 +304,6 @@
<relation type="label-for" target="grid1"/>
</accessibility>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="grid1">
@@ -393,7 +385,6 @@
</accessibility>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -404,7 +395,6 @@
</child>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -415,9 +405,6 @@
<property name="visible">1</property>
<property name="label" translatable="yes">General</property>
</object>
- <packing>
- <property name="tab-fill">0</property>
- </packing>
</child>
<child>
<object class="GtkBox" id="page_setup_main_box">
@@ -448,9 +435,6 @@
<relation type="label-for" target="grid2"/>
</accessibility>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="grid2">
@@ -617,7 +601,6 @@
</accessibility>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -642,9 +625,6 @@
<relation type="label-for" target="grid3"/>
</accessibility>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="grid3">
@@ -795,7 +775,6 @@
</accessibility>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -805,9 +784,6 @@
</packing>
</child>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkBox" id="box6">
@@ -863,9 +839,6 @@
<relation type="label-for" target="grid5"/>
</accessibility>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="grid5">
@@ -926,7 +899,6 @@
</accessibility>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -954,9 +926,6 @@
<relation type="label-for" target="grid6"/>
</accessibility>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="grid6">
@@ -1049,7 +1018,6 @@
</accessibility>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -1077,9 +1045,6 @@
<relation type="label-for" target="grid7"/>
</accessibility>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid" id="grid7">
@@ -1140,7 +1105,6 @@
</accessibility>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
@@ -1317,7 +1281,6 @@
</child>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
<property name="position">1</property>
</packing>
diff --git a/gtk/ui/gtkrecentchooserdefault.ui b/gtk/ui/gtkrecentchooserdefault.ui
index c50b503..789c103 100644
--- a/gtk/ui/gtkrecentchooserdefault.ui
+++ b/gtk/ui/gtkrecentchooserdefault.ui
@@ -66,7 +66,6 @@
</child>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
@@ -83,13 +82,11 @@
<signal name="changed" handler="filter_combo_changed_cb" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="pack-type">end</property>
</packing>
</child>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
diff --git a/gtk/ui/gtkscalebutton.ui b/gtk/ui/gtkscalebutton.ui
index fcf97ed..c2f1b5b 100644
--- a/gtk/ui/gtkscalebutton.ui
+++ b/gtk/ui/gtkscalebutton.ui
@@ -36,9 +36,6 @@
<signal name="button-release-event" handler="cb_button_release" swapped="no"/>
<signal name="clicked" handler="cb_button_clicked" swapped="no"/>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkScale" id="scale">
@@ -67,7 +64,6 @@
<signal name="clicked" handler="cb_button_clicked" swapped="no"/>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">2</property>
</packing>
</child>
diff --git a/gtk/ui/gtktooltipwindow.ui b/gtk/ui/gtktooltipwindow.ui
index 8096505..b90048c 100644
--- a/gtk/ui/gtktooltipwindow.ui
+++ b/gtk/ui/gtktooltipwindow.ui
@@ -16,9 +16,6 @@
<object class="GtkImage" id="image">
<property name="icon-name">image-missing</property>
</object>
- <packing>
- <property name="fill">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label">
@@ -26,7 +23,6 @@
<property name="max-width-chars">70</property>
</object>
<packing>
- <property name="fill">0</property>
<property name="position">1</property>
</packing>
</child>
diff --git a/tests/flicker.c b/tests/flicker.c
index 8cb1e19..9391ebf 100644
--- a/tests/flicker.c
+++ b/tests/flicker.c
@@ -75,12 +75,12 @@ create_flicker (void)
spinbutton7_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton7 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton7_adj), 1, 0);
gtk_widget_show (spinbutton7);
- gtk_box_pack_start (GTK_BOX (hbox2), spinbutton7, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox2), spinbutton7);
spinbutton8_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton8 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton8_adj), 1, 0);
gtk_widget_show (spinbutton8);
- gtk_box_pack_start (GTK_BOX (hbox2), spinbutton8, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox2), spinbutton8);
vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vbox1);
@@ -89,42 +89,42 @@ create_flicker (void)
spinbutton9_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton9 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton9_adj), 1, 0);
gtk_widget_show (spinbutton9);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton9, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton9);
spinbutton10_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton10 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton10_adj), 1, 0);
gtk_widget_show (spinbutton10);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton10, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton10);
spinbutton11_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton11 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton11_adj), 1, 0);
gtk_widget_show (spinbutton11);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton11, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton11);
spinbutton12_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton12 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton12_adj), 1, 0);
gtk_widget_show (spinbutton12);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton12, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton12);
spinbutton13_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton13 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton13_adj), 1, 0);
gtk_widget_show (spinbutton13);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton13, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton13);
spinbutton14_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton14 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton14_adj), 1, 0);
gtk_widget_show (spinbutton14);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton14, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton14);
spinbutton15_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton15 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton15_adj), 1, 0);
gtk_widget_show (spinbutton15);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton15, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton15);
spinbutton16_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton16 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton16_adj), 1, 0);
gtk_widget_show (spinbutton16);
- gtk_box_pack_start (GTK_BOX (vbox1), spinbutton16, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), spinbutton16);
vpaned1 = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_widget_show (vpaned1);
@@ -138,17 +138,17 @@ create_flicker (void)
spinbutton17_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton17 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton17_adj), 1, 0);
gtk_widget_show (spinbutton17);
- gtk_box_pack_start (GTK_BOX (hbox1), spinbutton17, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox1), spinbutton17);
spinbutton18_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton18 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton18_adj), 1, 0);
gtk_widget_show (spinbutton18);
- gtk_box_pack_start (GTK_BOX (hbox1), spinbutton18, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox1), spinbutton18);
spinbutton19_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton19 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton19_adj), 1, 0);
gtk_widget_show (spinbutton19);
- gtk_box_pack_start (GTK_BOX (hbox1), spinbutton19, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox1), spinbutton19);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vbox2);
@@ -157,42 +157,42 @@ create_flicker (void)
spinbutton20_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton20 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton20_adj), 1, 0);
gtk_widget_show (spinbutton20);
- gtk_box_pack_start (GTK_BOX (vbox2), spinbutton20, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinbutton20);
spinbutton21_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton21 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton21_adj), 1, 0);
gtk_widget_show (spinbutton21);
- gtk_box_pack_start (GTK_BOX (vbox2), spinbutton21, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinbutton21);
spinbutton22_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton22 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton22_adj), 1, 0);
gtk_widget_show (spinbutton22);
- gtk_box_pack_start (GTK_BOX (vbox2), spinbutton22, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinbutton22);
spinbutton23_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton23 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton23_adj), 1, 0);
gtk_widget_show (spinbutton23);
- gtk_box_pack_start (GTK_BOX (vbox2), spinbutton23, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinbutton23);
spinbutton24_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton24 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton24_adj), 1, 0);
gtk_widget_show (spinbutton24);
- gtk_box_pack_start (GTK_BOX (vbox2), spinbutton24, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinbutton24);
spinbutton25_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton25 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton25_adj), 1, 0);
gtk_widget_show (spinbutton25);
- gtk_box_pack_start (GTK_BOX (vbox2), spinbutton25, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinbutton25);
spinbutton26_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton26 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton26_adj), 1, 0);
gtk_widget_show (spinbutton26);
- gtk_box_pack_start (GTK_BOX (vbox2), spinbutton26, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinbutton26);
spinbutton27_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
spinbutton27 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton27_adj), 1, 0);
gtk_widget_show (spinbutton27);
- gtk_box_pack_end (GTK_BOX (vbox2), spinbutton27, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox2), spinbutton27);
return window1;
}
diff --git a/tests/gdkgears.c b/tests/gdkgears.c
index 7ee6458..ab9ab33 100644
--- a/tests/gdkgears.c
+++ b/tests/gdkgears.c
@@ -175,26 +175,26 @@ main (int argc, char *argv[])
gtk_gears_set_fps_label (GTK_GEARS (gears), GTK_LABEL (fps_label));
spinner = gtk_spinner_new ();
- gtk_box_pack_end (GTK_BOX (hbox), spinner, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), spinner);
gtk_widget_show (spinner);
gtk_spinner_start (GTK_SPINNER (spinner));
check = gtk_check_button_new_with_label ("Animate spinner");
- gtk_box_pack_end (GTK_BOX (hbox), check, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), check);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), TRUE);
gtk_widget_show (check);
g_signal_connect (check, "toggled",
G_CALLBACK (toggle_spin), spinner);
check = gtk_check_button_new_with_label ("Alpha");
- gtk_box_pack_end (GTK_BOX (hbox), check, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), check);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), FALSE);
gtk_widget_show (check);
g_signal_connect (check, "toggled",
G_CALLBACK (toggle_alpha), gears);
check = gtk_check_button_new_with_label ("Overlay");
- gtk_box_pack_end (GTK_BOX (hbox), check, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), check);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), FALSE);
gtk_widget_show (check);
g_signal_connect (check, "toggled",
@@ -207,7 +207,7 @@ main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (popover), label);
gtk_menu_button_set_popover (GTK_MENU_BUTTON (button), popover);
gtk_widget_show (button);
- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
scrolled = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),
diff --git a/tests/motion-compression.c b/tests/motion-compression.c
index 5cd7bf5..a7d67f8 100644
--- a/tests/motion-compression.c
+++ b/tests/motion-compression.c
@@ -54,16 +54,16 @@ main (int argc, char **argv)
adjustment = gtk_adjustment_new (20, 0, 200, 1, 10, 0);
scale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, adjustment);
- gtk_box_pack_end (GTK_BOX (vbox), scale, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), scale);
label = gtk_label_new ("Event processing time (ms):");
gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_end (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), label);
da = gtk_drawing_area_new ();
gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (da), on_draw, NULL, NULL);
gtk_widget_set_vexpand (da, TRUE);
- gtk_box_pack_end (GTK_BOX (vbox), da, TRUE);
+ gtk_box_pack_end (GTK_BOX (vbox), da);
g_signal_connect (window, "motion-notify-event",
G_CALLBACK (on_motion_notify), NULL);
diff --git a/tests/overlayscroll.c b/tests/overlayscroll.c
index b6c8179..c8e5776 100644
--- a/tests/overlayscroll.c
+++ b/tests/overlayscroll.c
@@ -65,7 +65,7 @@ main (int argc, char *argv[])
GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (box), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), sw);
content = get_content ();
diff --git a/tests/print-editor.c b/tests/print-editor.c
index c111b2d..f641173 100644
--- a/tests/print-editor.c
+++ b/tests/print-editor.c
@@ -321,15 +321,15 @@ create_custom_widget (GtkPrintOperation *operation,
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
gtk_widget_show (hbox);
label = gtk_label_new ("Font:");
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
gtk_widget_show (label);
font = gtk_font_button_new_with_font (data->font);
- gtk_box_pack_start (GTK_BOX (hbox), font, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), font);
gtk_widget_show (font);
data->font_button = font;
diff --git a/tests/syncscroll.c b/tests/syncscroll.c
index 39556f3..b0c4b4f 100644
--- a/tests/syncscroll.c
+++ b/tests/syncscroll.c
@@ -32,7 +32,7 @@ main (int argc, char *argv[])
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_NEVER,
GTK_POLICY_EXTERNAL);
- gtk_box_pack_start (GTK_BOX (box), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), sw);
tv = gtk_text_view_new ();
fill_text_view (tv, "Left");
gtk_container_add (GTK_CONTAINER (sw), tv);
@@ -43,7 +43,7 @@ main (int argc, char *argv[])
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_NEVER,
GTK_POLICY_EXTERNAL);
- gtk_box_pack_start (GTK_BOX (box), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), sw);
tv = gtk_text_view_new ();
fill_text_view (tv, "Middle");
gtk_container_add (GTK_CONTAINER (sw), tv);
@@ -52,7 +52,7 @@ main (int argc, char *argv[])
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_NEVER,
GTK_POLICY_EXTERNAL);
- gtk_box_pack_start (GTK_BOX (box), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), sw);
tv = gtk_text_view_new ();
fill_text_view (tv, "Right");
gtk_container_add (GTK_CONTAINER (sw), tv);
diff --git a/tests/testaccel.c b/tests/testaccel.c
index 262d2e2..7023e6a 100644
--- a/tests/testaccel.c
+++ b/tests/testaccel.c
@@ -75,7 +75,7 @@ key_test (void)
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_widget_show (box);
gtk_container_add (GTK_CONTAINER (window), box);
- gtk_box_pack_start (GTK_BOX (box), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), sw);
store = gtk_list_store_new (3, G_TYPE_INT, G_TYPE_UINT, G_TYPE_UINT);
tv = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
diff --git a/tests/testactionbar.c b/tests/testactionbar.c
index 1c69204..00ff9c5 100644
--- a/tests/testactionbar.c
+++ b/tests/testactionbar.c
@@ -113,7 +113,7 @@ activate (GApplication *gapp)
"row-spacing", 12,
"column-spacing", 12,
NULL);
- gtk_box_pack_start (GTK_BOX (box), grid, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), grid);
label = gtk_label_new ("Start");
gtk_widget_set_halign (label, GTK_ALIGN_END);
@@ -147,7 +147,7 @@ activate (GApplication *gapp)
gtk_grid_attach (GTK_GRID (grid), label, 0, 3, 1, 1);
gtk_grid_attach (GTK_GRID (grid), check, 1, 3, 1, 1);
- gtk_box_pack_end (GTK_BOX (box), bar, FALSE);
+ gtk_box_pack_end (GTK_BOX (box), bar);
gtk_container_add (GTK_CONTAINER (window), box);
gtk_widget_show (window);
}
diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c
index 8673c61..513de07 100644
--- a/tests/testadjustsize.c
+++ b/tests/testadjustsize.c
@@ -337,7 +337,7 @@ open_valigned_label_window (void)
label = gtk_label_new ("Both labels expand");
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
label = gtk_label_new ("Some wrapping text with width-chars = 15 and max-width-chars = 35");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
@@ -353,7 +353,7 @@ open_valigned_label_window (void)
gtk_widget_set_valign (frame, GTK_ALIGN_CENTER);
gtk_widget_set_halign (frame, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (box), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
gtk_window_present (GTK_WINDOW (window));
}
diff --git a/tests/testanimation.c b/tests/testanimation.c
index 5cbfa20..45f4602 100644
--- a/tests/testanimation.c
+++ b/tests/testanimation.c
@@ -330,13 +330,13 @@ do_image (const char *filename)
g_free (escaped);
g_free (str);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_widget_set_halign (frame, GTK_ALIGN_CENTER);
gtk_widget_set_valign (frame, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
image = gtk_image_new_from_pixbuf (NULL);
gtk_container_add (GTK_CONTAINER (frame), image);
@@ -384,13 +384,13 @@ do_nonprogressive (const gchar *filename)
g_free (escaped);
g_free (str);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_widget_set_halign (frame, GTK_ALIGN_CENTER);
gtk_widget_set_valign (frame, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
image = gtk_image_new_from_file (filename);
gtk_container_add (GTK_CONTAINER (frame), image);
diff --git a/tests/testappchooserbutton.c b/tests/testappchooserbutton.c
index c96dc11..53a9ded 100644
--- a/tests/testappchooserbutton.c
+++ b/tests/testappchooserbutton.c
@@ -76,22 +76,22 @@ main (int argc,
gtk_container_add (GTK_CONTAINER (toplevel), box);
combobox = gtk_app_chooser_button_new ("image/jpeg");
- gtk_box_pack_start (GTK_BOX (box), combobox, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), combobox);
g_signal_connect (combobox, "changed",
G_CALLBACK (combo_changed_cb), NULL);
w = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (w), "<b>Selected app info</b>");
- gtk_box_pack_start (GTK_BOX (box), w, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), w);
w = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_box_pack_start (GTK_BOX (box), w, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), w);
sel_image = gtk_image_new ();
- gtk_box_pack_start (GTK_BOX (w), sel_image, TRUE);
+ gtk_box_pack_start (GTK_BOX (w), sel_image);
sel_name = gtk_label_new (NULL);
- gtk_box_pack_start (GTK_BOX (w), sel_name, TRUE);
+ gtk_box_pack_start (GTK_BOX (w), sel_name);
gtk_app_chooser_button_set_heading (GTK_APP_CHOOSER_BUTTON (combobox), "Choose one, <i>not</i> two");
gtk_app_chooser_button_append_separator (GTK_APP_CHOOSER_BUTTON (combobox));
diff --git a/tests/testassistant.c b/tests/testassistant.c
index 28774f8..9d87879 100644
--- a/tests/testassistant.c
+++ b/tests/testassistant.c
@@ -377,13 +377,13 @@ create_nonlinear_assistant (GtkWidget *widget)
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);
+ gtk_box_pack_start (GTK_BOX (page), button);
g_signal_connect (G_OBJECT (button), "toggled", G_CALLBACK (select_branch), GINT_TO_POINTER ('A'));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
button = gtk_radio_button_new_with_label (gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
"branch B");
- gtk_box_pack_start (GTK_BOX (page), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (page), button);
g_signal_connect (G_OBJECT (button), "toggled", G_CALLBACK (select_branch), GINT_TO_POINTER ('B'));
gtk_assistant_append_page (GTK_ASSISTANT (assistant), page);
@@ -649,8 +649,7 @@ create_page_flipping_assistant (GtkWidget *widget)
page = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (page),
- get_test_page ("Page 2"),
- TRUE);
+ get_test_page ("Page 2"));
gtk_assistant_append_page (GTK_ASSISTANT (assistant), page);
gtk_assistant_set_page_title (GTK_ASSISTANT (assistant), page, "Page 2");
gtk_assistant_set_page_complete (GTK_ASSISTANT (assistant), page, TRUE);
@@ -721,7 +720,7 @@ main (int argc, gchar *argv[])
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (buttons[i].func), NULL);
- gtk_box_pack_start (GTK_BOX (box), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), button);
}
gtk_widget_show (window);
diff --git a/tests/testbaseline.c b/tests/testbaseline.c
index 98c2866..5c9b77f 100644
--- a/tests/testbaseline.c
+++ b/tests/testbaseline.c
@@ -100,7 +100,7 @@ main (int argc,
for (j = 0; j < 2; j++)
{
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
char *aligns_names[] = { "FILL", "BASELINE" };
GtkAlign aligns[] = { GTK_ALIGN_FILL, GTK_ALIGN_BASELINE};
@@ -136,7 +136,7 @@ main (int argc,
}
grid_hbox = hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
combo = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), baseline_pos_str[0]);
@@ -148,7 +148,7 @@ main (int argc,
for (j = 0; j < 2; j++)
{
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
g_signal_connect (G_OBJECT (combo), "changed",
G_CALLBACK (baseline_position_changed), hbox);
@@ -227,7 +227,7 @@ main (int argc,
vbox, gtk_label_new ("grid"));
grid_hbox = hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Align me:");
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
@@ -295,7 +295,7 @@ main (int argc,
gtk_container_add (GTK_CONTAINER (hbox), grid);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
adjustment = gtk_adjustment_new (0.0, -1.0, 5.0, 1.0, 1.0, 0.0);
spin = gtk_spin_button_new (adjustment, 1.0, 0);
@@ -320,7 +320,7 @@ main (int argc,
vbox, gtk_label_new ("button box"));
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
adjustment = gtk_adjustment_new (34.0, 1.0, 64.0, 1.0, 1.0, 0.0);
spin = gtk_spin_button_new (adjustment, 1.0, 0);
@@ -333,7 +333,7 @@ main (int argc,
for (j = 0; j < 3; j++)
{
hbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
gtk_box_set_baseline_position (GTK_BOX (hbox), j);
diff --git a/tests/testbbox.c b/tests/testbbox.c
index 754bf92..ab3a6fb 100644
--- a/tests/testbbox.c
+++ b/tests/testbbox.c
@@ -129,7 +129,7 @@ main (int argc,
/* GtkHButtonBox */
hbbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (vbox), hbbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbbox);
for (i = 0; i < N_BUTTONS; i++) {
buttons[i] = gtk_button_new_with_label (strings[i]);
@@ -142,27 +142,27 @@ main (int argc,
/* GtkVButtonBox */
vbbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
- gtk_box_pack_start (GTK_BOX (vbox), vbbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), vbbox);
/* Options */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
combo_types = gtk_combo_box_text_new ();
populate_combo_with (GTK_COMBO_BOX_TEXT (combo_types), types);
g_signal_connect (G_OBJECT (combo_types), "changed", G_CALLBACK (combo_types_changed_cb), buttons);
- gtk_box_pack_start (GTK_BOX (hbox), combo_types, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), combo_types);
combo_styles = gtk_combo_box_text_new ();
populate_combo_with (GTK_COMBO_BOX_TEXT (combo_styles), styles);
g_signal_connect (G_OBJECT (combo_styles), "changed", G_CALLBACK (combo_changed_cb), NULL);
- gtk_box_pack_start (GTK_BOX (hbox), combo_styles, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), combo_styles);
option = gtk_check_button_new_with_label ("Help is secondary");
g_signal_connect (G_OBJECT (option), "toggled", G_CALLBACK (option_cb), buttons[N_BUTTONS - 1]);
- gtk_box_pack_start (GTK_BOX (hbox), option, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), option);
gtk_widget_show (window);
gtk_widget_hide (vbbox);
diff --git a/tests/testbox.c b/tests/testbox.c
index 1125f70..cd958e8 100644
--- a/tests/testbox.c
+++ b/tests/testbox.c
@@ -1,19 +1,6 @@
#include <gtk/gtk.h>
static void
-fill_toggled (GtkToggleButton *b, GtkWidget *w)
-{
- gboolean active;
- GtkWidget *parent;
-
- active = gtk_toggle_button_get_active (b);
- parent = gtk_widget_get_parent (w);
- gtk_container_child_set (GTK_CONTAINER (parent), w,
- "fill", active,
- NULL);
-}
-
-static void
edit_widget (GtkWidget *button)
{
GtkWidget *dialog;
@@ -21,7 +8,6 @@ edit_widget (GtkWidget *button)
GtkWidget *label;
GtkWidget *entry;
GtkWidget *check;
- gboolean fill;
dialog = GTK_WIDGET (g_object_get_data (G_OBJECT (button), "dialog"));
@@ -58,17 +44,6 @@ edit_widget (GtkWidget *button)
gtk_grid_attach (GTK_GRID (grid), label, 0, 1, 1, 1);
gtk_grid_attach (GTK_GRID (grid), check, 1, 1, 1, 1);
- label = gtk_label_new ("Fill:");
- gtk_widget_set_halign (label, GTK_ALIGN_END);
- check = gtk_check_button_new ();
- gtk_box_query_child_packing (GTK_BOX (gtk_widget_get_parent (button)),
- button, &fill, NULL);
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), fill);
- g_signal_connect (check, "toggled",
- G_CALLBACK (fill_toggled), button);
- gtk_grid_attach (GTK_GRID (grid), label, 0, 3, 1, 1);
- gtk_grid_attach (GTK_GRID (grid), check, 1, 3, 1, 1);
-
g_object_set_data (G_OBJECT (button), "dialog", dialog);
}
@@ -114,12 +89,12 @@ main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (window), vbox);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (box), test_widget ("1"), TRUE);
- gtk_box_pack_start (GTK_BOX (box), test_widget ("2"), TRUE);
- gtk_box_pack_start (GTK_BOX (box), test_widget ("3"), TRUE);
- gtk_box_pack_start (GTK_BOX (box), test_widget ("4"), TRUE);
- gtk_box_pack_end (GTK_BOX (box), test_widget ("5"), TRUE);
- gtk_box_pack_end (GTK_BOX (box), test_widget ("6"), TRUE);
+ gtk_box_pack_start (GTK_BOX (box), test_widget ("1"));
+ gtk_box_pack_start (GTK_BOX (box), test_widget ("2"));
+ gtk_box_pack_start (GTK_BOX (box), test_widget ("3"));
+ gtk_box_pack_start (GTK_BOX (box), test_widget ("4"));
+ gtk_box_pack_end (GTK_BOX (box), test_widget ("5"));
+ gtk_box_pack_end (GTK_BOX (box), test_widget ("6"));
gtk_box_set_center_widget (GTK_BOX (box), test_widget ("center"));
gtk_container_add (GTK_CONTAINER (vbox), box);
@@ -138,14 +113,14 @@ main (int argc, char *argv[])
gtk_widget_set_halign (b, GTK_ALIGN_CENTER);
label = gtk_label_new ("Spacing:");
gtk_widget_set_halign (label, GTK_ALIGN_END);
- gtk_box_pack_start (GTK_BOX (b), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (b), label);
spin = gtk_spin_button_new_with_range (0, 10, 1);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE);
gtk_widget_set_halign (spin, GTK_ALIGN_START);
g_signal_connect (spin, "value-changed",
G_CALLBACK (spacing_changed), box);
- gtk_box_pack_start (GTK_BOX (b), spin, TRUE);
+ gtk_box_pack_start (GTK_BOX (b), spin);
gtk_container_add (GTK_CONTAINER (vbox), b);
gtk_widget_show (window);
diff --git a/tests/testboxcss.c b/tests/testboxcss.c
index f98574f..0a16a96 100644
--- a/tests/testboxcss.c
+++ b/tests/testboxcss.c
@@ -173,10 +173,10 @@ main (gint argc, gchar **argv)
toolbar = gtk_toolbar_new ();
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_TEXT);
- gtk_box_pack_start (GTK_BOX (main_box), toolbar, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_box), toolbar);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (main_box), box, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_box), box);
container = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_min_content_width (GTK_SCROLLED_WINDOW (container), 200);
@@ -198,28 +198,28 @@ main (gint argc, gchar **argv)
gtk_text_view_get_buffer (GTK_TEXT_VIEW (child)));
container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (main_box), container, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_box), container);
child = gtk_switch_new ();
gtk_switch_set_active (GTK_SWITCH (child), gtk_widget_get_default_direction () == GTK_TEXT_DIR_LTR);
g_signal_connect (child,
"notify::active",
G_CALLBACK (set_orientation),
NULL);
- gtk_box_pack_start (GTK_BOX (container), child, FALSE);
+ gtk_box_pack_start (GTK_BOX (container), child);
child = gtk_label_new ("left-to-right");
- gtk_box_pack_start (GTK_BOX (container), child, FALSE);
+ gtk_box_pack_start (GTK_BOX (container), child);
child = gtk_button_new_with_label ("Add button");
g_signal_connect_swapped (child,
"clicked",
G_CALLBACK (add_button),
box);
- gtk_box_pack_end (GTK_BOX (container), child, FALSE);
+ gtk_box_pack_end (GTK_BOX (container), child);
child = gtk_button_new_with_label ("Add toolbutton");
g_signal_connect_swapped (child,
"clicked",
G_CALLBACK (add_toolbutton),
toolbar);
- gtk_box_pack_end (GTK_BOX (container), child, FALSE);
+ gtk_box_pack_end (GTK_BOX (container), child);
add_toolbutton (GTK_TOOLBAR (toolbar));
add_toolbutton (GTK_TOOLBAR (toolbar));
diff --git a/tests/testcalendar.c b/tests/testcalendar.c
index 4cd6c74..d5fc1a3 100644
--- a/tests/testcalendar.c
+++ b/tests/testcalendar.c
@@ -495,7 +495,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, TRUE);
+ gtk_box_pack_start (GTK_BOX (rpane), frame);
size = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
context = gtk_widget_get_style_context (calendar);
@@ -517,9 +517,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, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Build the width entry */
@@ -538,9 +538,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, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Build the height entry */
@@ -559,15 +559,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, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* 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, TRUE);
+ gtk_box_pack_start (GTK_BOX (rpane), frame);
details = gtk_text_view_new();
calendar_data.details_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (details));
@@ -585,12 +585,12 @@ create_calendar(void)
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (vbox), scroller, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scroller);
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, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_button_new_with_mnemonic ("Demonstrate _Details");
@@ -599,7 +599,7 @@ create_calendar(void)
G_CALLBACK (demonstrate_details),
&calendar_data);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
button = gtk_button_new_with_mnemonic ("_Reset Details");
@@ -608,24 +608,24 @@ create_calendar(void)
G_CALLBACK (reset_details),
&calendar_data);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
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, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), toggle);
/* 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);
+ gtk_box_pack_start (GTK_BOX (rpane), frame);
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, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), toggle);
calendar_data.flag_checkboxes[i] = toggle;
g_signal_connect (toggle, "toggled",
@@ -644,25 +644,25 @@ create_calendar(void)
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, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Signal:");
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
calendar_data.last_sig = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), calendar_data.last_sig, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), calendar_data.last_sig);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Previous signal:");
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
calendar_data.prev_sig = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev_sig, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev_sig);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Second previous signal:");
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
calendar_data.prev2_sig = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev2_sig, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), calendar_data.prev2_sig);
/*
* Glue everything together
@@ -677,16 +677,11 @@ create_calendar(void)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, DEF_PAD_SMALL);
- gtk_box_pack_start (GTK_BOX (vbox), hpaned,
- TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL),
- TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), frame,
- TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL),
- TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), bbox,
- TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hpaned);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
+ gtk_box_pack_start (GTK_BOX (vbox), bbox);
gtk_container_add (GTK_CONTAINER (window), vbox);
diff --git a/tests/testcellarea.c b/tests/testcellarea.c
index 099e7c0..04cba16 100644
--- a/tests/testcellarea.c
+++ b/tests/testcellarea.c
@@ -196,19 +196,19 @@ simple_cell_area (void)
gtk_container_add (GTK_CONTAINER (frame), iconview);
- gtk_box_pack_end (GTK_BOX (hbox), frame, TRUE);
+ gtk_box_pack_end (GTK_BOX (hbox), frame);
/* Now add some controls */
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
gtk_widget_show (vbox);
- gtk_box_pack_end (GTK_BOX (hbox), vbox, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), vbox);
widget = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Horizontal");
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Vertical");
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (orientation_changed), iconview);
@@ -216,7 +216,7 @@ simple_cell_area (void)
widget = gtk_check_button_new_with_label ("Align 2nd Cell");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (align_cell_2_toggled), iconview);
@@ -224,7 +224,7 @@ simple_cell_area (void)
widget = gtk_check_button_new_with_label ("Align 3rd Cell");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (align_cell_3_toggled), iconview);
@@ -233,7 +233,7 @@ simple_cell_area (void)
widget = gtk_check_button_new_with_label ("Expand 1st Cell");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (expand_cell_1_toggled), iconview);
@@ -241,7 +241,7 @@ simple_cell_area (void)
widget = gtk_check_button_new_with_label ("Expand 2nd Cell");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (expand_cell_2_toggled), iconview);
@@ -249,7 +249,7 @@ simple_cell_area (void)
widget = gtk_check_button_new_with_label ("Expand 3rd Cell");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (expand_cell_3_toggled), iconview);
@@ -441,19 +441,19 @@ focus_cell_area (void)
gtk_container_add (GTK_CONTAINER (frame), iconview);
- gtk_box_pack_end (GTK_BOX (hbox), frame, TRUE);
+ gtk_box_pack_end (GTK_BOX (hbox), frame);
/* Now add some controls */
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
gtk_widget_show (vbox);
- gtk_box_pack_end (GTK_BOX (hbox), vbox, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), vbox);
widget = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Horizontal");
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Vertical");
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (orientation_changed), iconview);
@@ -461,7 +461,7 @@ focus_cell_area (void)
widget = gtk_check_button_new_with_label ("Focus Sibling");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (focus_sibling_toggled), iconview);
@@ -531,7 +531,7 @@ background_area (void)
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_width_chars (GTK_LABEL (label), 40);
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), label);
iconview = focus_iconview (TRUE, NULL, NULL);
@@ -543,20 +543,20 @@ background_area (void)
gtk_container_add (GTK_CONTAINER (frame), iconview);
- gtk_box_pack_end (GTK_BOX (hbox), frame, TRUE);
+ gtk_box_pack_end (GTK_BOX (hbox), frame);
/* Now add some controls */
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 4);
gtk_widget_show (vbox);
- gtk_box_pack_end (GTK_BOX (hbox), vbox, FALSE);
- gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), vbox);
+ gtk_box_pack_start (GTK_BOX (main_vbox), hbox);
widget = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Horizontal");
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Vertical");
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
gtk_widget_show (widget);
- gtk_box_pack_start (GTK_BOX (vbox), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (orientation_changed), iconview);
@@ -565,9 +565,9 @@ background_area (void)
label = gtk_label_new ("Cell spacing");
gtk_widget_set_hexpand (label, TRUE);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
g_signal_connect (G_OBJECT (widget), "value-changed",
G_CALLBACK (cell_spacing_changed), iconview);
@@ -578,9 +578,9 @@ background_area (void)
label = gtk_label_new ("Row spacing");
gtk_widget_set_hexpand (label, TRUE);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
g_signal_connect (G_OBJECT (widget), "value-changed",
G_CALLBACK (row_spacing_changed), iconview);
@@ -590,9 +590,9 @@ background_area (void)
gtk_widget_set_hexpand (label, TRUE);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), gtk_icon_view_get_item_padding (GTK_ICON_VIEW
(iconview)));
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
g_signal_connect (G_OBJECT (widget), "value-changed",
G_CALLBACK (item_padding_changed), iconview);
diff --git a/tests/testcellrenderertext.c b/tests/testcellrenderertext.c
index 4a5f3f4..ffd734f 100644
--- a/tests/testcellrenderertext.c
+++ b/tests/testcellrenderertext.c
@@ -266,20 +266,20 @@ main (int argc, char **argv)
/* LTR */
label = gtk_label_new ("Left to right");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
tree = create_tree (FALSE);
gtk_widget_set_vexpand (tree, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), tree, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), tree);
/* RTL */
label = gtk_label_new ("Right to left");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
tree = create_tree (TRUE);
gtk_widget_set_vexpand (tree, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), tree, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), tree);
gtk_widget_show (window);
gtk_main ();
diff --git a/tests/testclipboard.c b/tests/testclipboard.c
index 6e25bbd..80c5ac9 100644
--- a/tests/testclipboard.c
+++ b/tests/testclipboard.c
@@ -120,9 +120,9 @@ main (int argc, char **argv)
NULL);
image = gtk_image_new ();
- gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (window))), image, FALSE);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (window))), image);
label = gtk_label_new ("No data found");
- gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (window))), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (window))), label);
g_signal_connect (window, "response", G_CALLBACK (on_response), NULL);
diff --git a/tests/testcombo.c b/tests/testcombo.c
index 64d86a7..9103f9c 100644
--- a/tests/testcombo.c
+++ b/tests/testcombo.c
@@ -1071,7 +1071,7 @@ main (int argc, char **argv)
/* GtkCellView */
tmp = gtk_frame_new ("GtkCellView");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1092,7 +1092,7 @@ main (int argc, char **argv)
/* GtkComboBox list */
tmp = gtk_frame_new ("GtkComboBox (list)");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1132,7 +1132,7 @@ main (int argc, char **argv)
/* GtkComboBox dynamic list */
tmp = gtk_frame_new ("GtkComboBox (dynamic list)");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1175,7 +1175,7 @@ main (int argc, char **argv)
/* GtkComboBox custom entry */
tmp = gtk_frame_new ("GtkComboBox (custom)");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1229,7 +1229,7 @@ main (int argc, char **argv)
/* GtkComboBox tree */
tmp = gtk_frame_new ("GtkComboBox (tree)");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1272,18 +1272,18 @@ main (int argc, char **argv)
/* GtkComboBox (grid mode) */
tmp = gtk_frame_new ("GtkComboBox (grid mode)");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
comboboxgrid = create_combo_box_grid_demo ();
- gtk_box_pack_start (GTK_BOX (boom), comboboxgrid, FALSE);
+ gtk_box_pack_start (GTK_BOX (boom), comboboxgrid);
/* GtkComboBoxEntry */
tmp = gtk_frame_new ("GtkComboBox with entry");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1295,7 +1295,7 @@ main (int argc, char **argv)
/* Phylogenetic tree */
tmp = gtk_frame_new ("What are you ?");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1317,7 +1317,7 @@ main (int argc, char **argv)
/* Capitals */
tmp = gtk_frame_new ("Where are you ?");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1348,7 +1348,7 @@ main (int argc, char **argv)
/* Aligned Food */
tmp = gtk_frame_new ("Hungry ?");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1382,7 +1382,7 @@ main (int argc, char **argv)
/* Ellipsizing growing combos */
tmp = gtk_frame_new ("Unconstrained Menu");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
boom = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (tmp), boom);
@@ -1401,7 +1401,7 @@ main (int argc, char **argv)
gtk_combo_box_set_popup_fixed_width (GTK_COMBO_BOX (combobox), FALSE);
tmp = gtk_frame_new ("Looong");
- gtk_box_pack_start (GTK_BOX (mainbox), tmp, FALSE);
+ gtk_box_pack_start (GTK_BOX (mainbox), tmp);
combobox = gtk_combo_box_text_new ();
for (i = 0; i < 200; i++)
{
diff --git a/tests/testcombochange.c b/tests/testcombochange.c
index 730d74c..78d69e7 100644
--- a/tests/testcombochange.c
+++ b/tests/testcombochange.c
@@ -247,30 +247,30 @@ main (int argc, char **argv)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox);
combo_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (hbox), combo_vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), combo_vbox);
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), "<b>Menu mode</b>");
- gtk_box_pack_start (GTK_BOX (combo_vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), label);
menu_combo = create_combo ("menu-combo", FALSE);
gtk_widget_set_margin_start (menu_combo, 12);
- gtk_box_pack_start (GTK_BOX (combo_vbox), menu_combo, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), menu_combo);
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), "<b>List mode</b>");
- gtk_box_pack_start (GTK_BOX (combo_vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), label);
list_combo = create_combo ("list-combo", TRUE);
gtk_widget_set_margin_start (list_combo, 12);
- gtk_box_pack_start (GTK_BOX (combo_vbox), list_combo, FALSE);
+ gtk_box_pack_start (GTK_BOX (combo_vbox), list_combo);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_set_hexpand (scrolled_window, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), scrolled_window);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
@@ -281,24 +281,24 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (scrolled_window), text_view);
button_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (hbox), button_vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button_vbox);
gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 300);
button = gtk_button_new_with_label ("Insert");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button);
g_signal_connect (button, "clicked", G_CALLBACK (on_insert), NULL);
button = gtk_button_new_with_label ("Delete");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button);
g_signal_connect (button, "clicked", G_CALLBACK (on_delete), NULL);
button = gtk_button_new_with_label ("Reorder");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button);
g_signal_connect (button, "clicked", G_CALLBACK (on_reorder), NULL);
button = gtk_button_new_with_label ("Animate");
- gtk_box_pack_start (GTK_BOX (button_vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (button_vbox), button);
g_signal_connect (button, "clicked", G_CALLBACK (on_animate), NULL);
gtk_widget_show (dialog);
diff --git a/tests/testellipsise.c b/tests/testellipsise.c
index 273d3f6..d094625 100644
--- a/tests/testellipsise.c
+++ b/tests/testellipsise.c
@@ -158,9 +158,9 @@ main (int argc, char *argv[])
gtk_widget_set_vexpand (overlay, TRUE);
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), label);
- gtk_box_pack_start (GTK_BOX (vbox), combo, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scale, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), overlay, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), combo);
+ gtk_box_pack_start (GTK_BOX (vbox), scale);
+ gtk_box_pack_start (GTK_BOX (vbox), overlay);
g_object_set_data (G_OBJECT (label), "combo", combo);
diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c
index c48d2c7..332d6be 100644
--- a/tests/testentrycompletion.c
+++ b/tests/testentrycompletion.c
@@ -307,7 +307,7 @@ main (int argc, char *argv[])
label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (label), "Completion demo, try writing <b>total</b> or <b>gnome</b> for
example.");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
/* Create our first entry */
entry = gtk_entry_new ();
@@ -392,7 +392,7 @@ main (int argc, char *argv[])
gdk_threads_add_timeout (1000, (GSourceFunc) animation_timer, completion);
/* Fourth entry */
- gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Model-less entry completion"), FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Model-less entry completion"));
entry = gtk_entry_new ();
diff --git a/tests/testexpand.c b/tests/testexpand.c
index f8a54e7..de82023 100644
--- a/tests/testexpand.c
+++ b/tests/testexpand.c
@@ -54,31 +54,23 @@ create_box_window (void)
box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (box1),
- gtk_label_new ("VBox 1 Top"),
- FALSE);
+ gtk_label_new ("VBox 1 Top"));
gtk_box_pack_start (GTK_BOX (box1),
- box2,
- TRUE);
+ box2);
gtk_box_pack_end (GTK_BOX (box1),
- gtk_label_new ("VBox 1 Bottom"),
- FALSE);
+ gtk_label_new ("VBox 1 Bottom"));
gtk_box_pack_start (GTK_BOX (box2),
- gtk_label_new ("HBox 2 Left"),
- FALSE);
+ gtk_label_new ("HBox 2 Left"));
gtk_box_pack_start (GTK_BOX (box2),
- box3,
- TRUE);
+ box3);
gtk_box_pack_end (GTK_BOX (box2),
- gtk_label_new ("HBox 2 Right"),
- FALSE);
+ gtk_label_new ("HBox 2 Right"));
gtk_box_pack_start (GTK_BOX (box3),
- gtk_label_new ("VBox 3 Top"),
- FALSE);
+ gtk_label_new ("VBox 3 Top"));
gtk_box_pack_end (GTK_BOX (box3),
- gtk_label_new ("VBox 3 Bottom"),
- FALSE);
+ gtk_label_new ("VBox 3 Bottom"));
colorbox = gtk_frame_new (NULL);
@@ -90,7 +82,7 @@ create_box_window (void)
G_CALLBACK (on_toggle_hexpand), NULL);
gtk_container_add (GTK_CONTAINER (colorbox), toggle);
- gtk_box_pack_start (GTK_BOX (box3), colorbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (box3), colorbox);
colorbox = gtk_frame_new (NULL);
@@ -101,7 +93,7 @@ create_box_window (void)
g_signal_connect (G_OBJECT (toggle), "toggled",
G_CALLBACK (on_toggle_vexpand), NULL);
gtk_container_add (GTK_CONTAINER (colorbox), toggle);
- gtk_box_pack_start (GTK_BOX (box3), colorbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (box3), colorbox);
gtk_container_add (GTK_CONTAINER (window), box1);
gtk_widget_show (window);
diff --git a/tests/testexpander.c b/tests/testexpander.c
index d7e1126..3b08dea 100644
--- a/tests/testexpander.c
+++ b/tests/testexpander.c
@@ -74,7 +74,7 @@ main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (expander), sw);
gtk_widget_set_hexpand (expander, TRUE);
gtk_widget_set_vexpand (expander, TRUE);
- gtk_box_pack_end (GTK_BOX (area), expander, TRUE);
+ gtk_box_pack_end (GTK_BOX (area), expander);
g_signal_connect (expander, "notify::expanded",
G_CALLBACK (expander_cb), dialog);
diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c
index cdb6c97..f11269d 100644
--- a/tests/testfilechooserbutton.c
+++ b/tests/testfilechooserbutton.c
@@ -134,25 +134,25 @@ tests_button_clicked_cb (GtkButton *real_button,
button = gtk_button_new_with_label ("Print Selected Path");
g_signal_connect (button, "clicked",
G_CALLBACK (print_selected_path_clicked_cb), user_data);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Add $PWD's Parent as Shortcut");
g_signal_connect (button, "clicked",
G_CALLBACK (add_pwds_parent_as_shortcut_clicked_cb), user_data);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Remove $PWD's Parent as Shortcut");
g_signal_connect (button, "clicked",
G_CALLBACK (del_pwds_parent_as_shortcut_clicked_cb), user_data);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Unselect all");
g_signal_connect (button, "clicked",
G_CALLBACK (unselect_all_clicked_cb), user_data);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
gtk_widget_show (button);
g_signal_connect (tests, "delete-event", G_CALLBACK (delete_event_cb), NULL);
@@ -254,7 +254,7 @@ main (int argc,
frame = gtk_frame_new ("<b>GtkFileChooserButton</b>");
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
gtk_label_set_use_markup (GTK_LABEL (gtk_frame_get_label_widget (GTK_FRAME (frame))), TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
gtk_widget_set_halign (frame, GTK_ALIGN_FILL);
gtk_widget_set_valign (frame, GTK_ALIGN_FILL);
@@ -267,12 +267,12 @@ main (int argc,
/* OPEN */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_box_pack_start (GTK_BOX (group_box), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (group_box), hbox);
label = gtk_label_new_with_mnemonic ("_Open:");
gtk_size_group_add_widget (GTK_SIZE_GROUP (label_group), label);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
chooser = gtk_file_chooser_button_new ("Select A File - testfilechooserbutton",
GTK_FILE_CHOOSER_ACTION_OPEN);
@@ -285,20 +285,20 @@ main (int argc,
g_signal_connect (chooser, "selection-changed", G_CALLBACK (chooser_selection_changed_cb), NULL);
g_signal_connect (chooser, "file-activated", G_CALLBACK (chooser_file_activated_cb), NULL);
g_signal_connect (chooser, "update-preview", G_CALLBACK (chooser_update_preview_cb), NULL);
- gtk_box_pack_start (GTK_BOX (hbox), chooser, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), chooser);
button = gtk_button_new_with_label ("Tests");
g_signal_connect (button, "clicked", G_CALLBACK (tests_button_clicked_cb), chooser);
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
/* SELECT_FOLDER */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_box_pack_start (GTK_BOX (group_box), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (group_box), hbox);
label = gtk_label_new_with_mnemonic ("Select _Folder:");
gtk_size_group_add_widget (GTK_SIZE_GROUP (label_group), label);
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
chooser = gtk_file_chooser_button_new ("Select A Folder - testfilechooserbutton",
GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
@@ -312,11 +312,11 @@ main (int argc,
g_signal_connect (chooser, "selection-changed", G_CALLBACK (chooser_selection_changed_cb), NULL);
g_signal_connect (chooser, "file-activated", G_CALLBACK (chooser_file_activated_cb), NULL);
g_signal_connect (chooser, "update-preview", G_CALLBACK (chooser_update_preview_cb), NULL);
- gtk_box_pack_start (GTK_BOX (hbox), chooser, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), chooser);
button = gtk_button_new_with_label ("Tests");
g_signal_connect (button, "clicked", G_CALLBACK (tests_button_clicked_cb), chooser);
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
g_object_unref (label_group);
diff --git a/tests/testflowbox.c b/tests/testflowbox.c
index 621af02..cea9989 100644
--- a/tests/testflowbox.c
+++ b/tests/testflowbox.c
@@ -403,7 +403,7 @@ 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);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
swindow = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_set_hexpand (swindow, TRUE);
@@ -411,7 +411,7 @@ create_window (void)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_widget_show (swindow);
- gtk_box_pack_start (GTK_BOX (hbox), swindow, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), swindow);
flowbox = gtk_flow_box_new ();
gtk_widget_set_halign (flowbox, GTK_ALIGN_END);
@@ -440,14 +440,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);
+ gtk_box_pack_start (GTK_BOX (vbox), expander);
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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (homogeneous_toggled), flowbox);
@@ -458,7 +458,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
/* Add alignment controls */
widget = gtk_combo_box_text_new ();
@@ -470,7 +470,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (horizontal_alignment_changed), flowbox);
@@ -484,7 +484,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (vertical_alignment_changed), flowbox);
@@ -497,7 +497,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (orientation_changed), flowbox);
@@ -512,7 +512,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (selection_mode_changed), flowbox);
@@ -523,7 +523,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (line_length_changed), flowbox);
@@ -536,7 +536,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (max_line_length_changed), flowbox);
@@ -549,42 +549,42 @@ create_window (void)
widget = gtk_label_new ("H Spacing");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
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);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), hbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
gtk_widget_show (hbox);
widget = gtk_label_new ("V Spacing");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
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);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), hbox);
/* filtering and sorting */
@@ -593,7 +593,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (filter_toggled), flowbox);
@@ -603,7 +603,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);
+ gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (sort_toggled), flowbox);
@@ -616,7 +616,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);
+ gtk_box_pack_start (GTK_BOX (vbox), expander);
/* Add Items control */
widget = gtk_combo_box_text_new ();
@@ -629,7 +629,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);
+ gtk_box_pack_start (GTK_BOX (items_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (items_changed), flowbox);
@@ -643,7 +643,7 @@ create_window (void)
gtk_widget_show (widget);
gtk_widget_set_tooltip_text (widget, "Set the item's text orientation");
- gtk_box_pack_start (GTK_BOX (items_cntl), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (items_cntl), widget);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (text_orientation_changed), flowbox);
diff --git a/tests/testframe.c b/tests/testframe.c
index 208f2be..5da3c56 100644
--- a/tests/testframe.c
+++ b/tests/testframe.c
@@ -160,8 +160,8 @@ int main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (vbox));
frame = GTK_FRAME (gtk_frame_new ("Test GtkFrame"));
- gtk_widget_set_vexpand (frame, TRUE);
- gtk_box_pack_start (vbox, GTK_WIDGET (frame), TRUE);
+ gtk_widget_set_vexpand (GTK_WIDGET (frame), TRUE);
+ gtk_box_pack_start (vbox, GTK_WIDGET (frame));
widget = gtk_button_new_with_label ("Hello!");
gtk_container_add (GTK_CONTAINER (frame), widget);
@@ -169,7 +169,7 @@ int main (int argc, char **argv)
grid = GTK_GRID (gtk_grid_new ());
gtk_grid_set_row_spacing (grid, 12);
gtk_grid_set_column_spacing (grid, 6);
- gtk_box_pack_start (vbox, GTK_WIDGET (grid), FALSE);
+ gtk_box_pack_start (vbox, GTK_WIDGET (grid));
gtk_frame_get_label_align (frame, &xalign, &yalign);
diff --git a/tests/testgiconpixbuf.c b/tests/testgiconpixbuf.c
index 1d0b835..8e9b7af 100644
--- a/tests/testgiconpixbuf.c
+++ b/tests/testgiconpixbuf.c
@@ -36,30 +36,30 @@ main (int argc,
gtk_container_add (GTK_CONTAINER (toplevel), hbox);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
- gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
image = gtk_image_new_from_gicon (G_ICON (pixbuf), GTK_ICON_SIZE_DIALOG);
- gtk_box_pack_start (GTK_BOX (vbox), image, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), image);
label = gtk_label_new (NULL);
str = g_strdup_printf ("Normal icon, hash %u", g_icon_hash (G_ICON (pixbuf)));
gtk_label_set_label (GTK_LABEL (label), str);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
otherpix = gdk_pixbuf_new_from_file ("gnome-textfile.png", NULL);
emblem = g_emblem_new (G_ICON (otherpix));
emblemed = g_emblemed_icon_new (G_ICON (pixbuf), emblem);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
- gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
image2 = gtk_image_new_from_gicon (emblemed, GTK_ICON_SIZE_DIALOG);
- gtk_box_pack_start (GTK_BOX (vbox), image2, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), image2);
label = gtk_label_new (NULL);
str = g_strdup_printf ("Emblemed icon, hash %u", g_icon_hash (emblemed));
gtk_label_set_label (GTK_LABEL (label), str);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
gtk_widget_show (toplevel);
diff --git a/tests/testgrid.c b/tests/testgrid.c
index 78da435..febb321 100644
--- a/tests/testgrid.c
+++ b/tests/testgrid.c
@@ -144,21 +144,21 @@ box_comparison (void)
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);
+ gtk_box_pack_start (GTK_BOX (box), test_widget ("1", "white"));
label = gtk_label_new ("Some ellipsizing text");
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_label_set_width_chars (GTK_LABEL (label), 10);
- gtk_box_pack_start (GTK_BOX (box), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), label);
- gtk_box_pack_start (GTK_BOX (box), test_widget ("2", "green"), FALSE);
+ gtk_box_pack_start (GTK_BOX (box), test_widget ("2", "green"));
label = gtk_label_new ("Some text that may wrap if needed");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_width_chars (GTK_LABEL (label), 10);
- gtk_box_pack_start (GTK_BOX (box), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), label);
- gtk_box_pack_start (GTK_BOX (box), test_widget ("3", "red"), FALSE);
+ gtk_box_pack_start (GTK_BOX (box), test_widget ("3", "red"));
grid = gtk_grid_new ();
gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL);
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 3c38d7a..4bba2a2 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -214,10 +214,10 @@ build_alpha_widgets (void)
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);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
entry = gtk_entry_new ();
gtk_widget_set_hexpand (entry, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
gtk_widget_set_hexpand (hbox, TRUE);
gtk_grid_attach (GTK_GRID (grid), hbox, 0, 3, 2, 1);
@@ -263,19 +263,18 @@ create_alpha_window (GtkWidget *widget)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (content_area), vbox,
- TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
label = gtk_label_new (NULL);
- gtk_box_pack_start (GTK_BOX (vbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
label = gtk_label_new (NULL);
- gtk_box_pack_start (GTK_BOX (vbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
display = gtk_widget_get_display (window);
on_composited_changed (display, NULL, GTK_LABEL (label));
g_signal_connect (display, "notify::composited", G_CALLBACK (on_composited_changed), label);
- gtk_box_pack_start (GTK_BOX (vbox), build_alpha_widgets (), TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), build_alpha_widgets ());
g_signal_connect (window, "destroy",
G_CALLBACK (gtk_widget_destroyed),
@@ -337,7 +336,7 @@ create_buttons (GtkWidget *widget)
grid = gtk_grid_new ();
gtk_grid_set_row_spacing (GTK_GRID (grid), 5);
gtk_grid_set_column_spacing (GTK_GRID (grid), 5);
- gtk_box_pack_start (GTK_BOX (box1), grid, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), grid);
button[0] = gtk_button_new_with_label ("button1");
button[1] = gtk_button_new_with_mnemonic ("_button2");
@@ -362,16 +361,16 @@ create_buttons (GtkWidget *widget)
}
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button[9] = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button[9], "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button[9], TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button[9]);
gtk_widget_set_can_default (button[9], TRUE);
gtk_widget_grab_default (button[9]);
}
@@ -411,28 +410,28 @@ create_toggle_buttons (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), box1);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_toggle_button_new_with_label ("button1");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_toggle_button_new_with_label ("button2");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_toggle_button_new_with_label ("button3");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
}
@@ -531,26 +530,26 @@ create_check_buttons (GtkWidget *widget)
box1 = gtk_dialog_get_content_area (GTK_DIALOG (window));
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_check_button_new_with_mnemonic ("_button1");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_check_button_new_with_label ("button2");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_check_button_new_with_label ("button3");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_check_button_new_with_label ("inconsistent");
gtk_check_button_set_inconsistent (GTK_CHECK_BUTTON (button), TRUE);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
table = create_widget_grid (GTK_TYPE_CHECK_BUTTON);
- gtk_box_pack_start (GTK_BOX (box1), table, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), table);
}
if (!gtk_widget_get_visible (window))
@@ -594,56 +593,56 @@ create_radio_buttons (GtkWidget *widget)
box1 = gtk_dialog_get_content_area (GTK_DIALOG (window));
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_radio_button_new_with_label (NULL, "button1");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_radio_button_new_with_label (
gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
"button2");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_radio_button_new_with_label (
gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
"button3");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_radio_button_new_with_label (
gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
"inconsistent");
gtk_check_button_set_inconsistent (GTK_CHECK_BUTTON (button), TRUE);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_radio_button_new_with_label (NULL, "button4");
gtk_check_button_set_draw_indicator (GTK_CHECK_BUTTON (button), FALSE);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_radio_button_new_with_label (
gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
"button5");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_check_button_set_draw_indicator (GTK_CHECK_BUTTON (button), FALSE);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_radio_button_new_with_label (
gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
"button6");
gtk_check_button_set_draw_indicator (GTK_CHECK_BUTTON (button), FALSE);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
table = create_widget_grid (GTK_TYPE_RADIO_BUTTON);
- gtk_box_pack_start (GTK_BOX (box1), table, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), table);
}
if (!gtk_widget_get_visible (window))
@@ -718,58 +717,48 @@ create_button_box (GtkWidget *widget)
frame_horz = gtk_frame_new ("Horizontal Button Boxes");
gtk_widget_set_margin_top (frame_horz, 10);
gtk_widget_set_margin_bottom (frame_horz, 10);
- gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (frame_horz), vbox);
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Spread", 40, 85, 20, GTK_BUTTONBOX_SPREAD),
- TRUE);
+ create_bbox (TRUE, "Spread", 40, 85, 20, GTK_BUTTONBOX_SPREAD));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Edge", 40, 85, 20, GTK_BUTTONBOX_EDGE),
- TRUE);
+ create_bbox (TRUE, "Edge", 40, 85, 20, GTK_BUTTONBOX_EDGE));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Start", 40, 85, 20, GTK_BUTTONBOX_START),
- TRUE);
+ create_bbox (TRUE, "Start", 40, 85, 20, GTK_BUTTONBOX_START));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "End", 40, 85, 20, GTK_BUTTONBOX_END),
- TRUE);
+ create_bbox (TRUE, "End", 40, 85, 20, GTK_BUTTONBOX_END));
gtk_box_pack_start (GTK_BOX (vbox),
- create_bbox (TRUE, "Center", 40, 85, 20, GTK_BUTTONBOX_CENTER),
- TRUE);
+ create_bbox (TRUE, "Center", 40, 85, 20, GTK_BUTTONBOX_CENTER));
frame_vert = gtk_frame_new ("Vertical Button Boxes");
gtk_widget_set_margin_top (frame_vert, 10);
gtk_widget_set_margin_bottom (frame_vert, 10);
- gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add (GTK_CONTAINER (frame_vert), hbox);
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Spread", 30, 85, 20, GTK_BUTTONBOX_SPREAD),
- TRUE);
+ create_bbox (FALSE, "Spread", 30, 85, 20, GTK_BUTTONBOX_SPREAD));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Edge", 30, 85, 20, GTK_BUTTONBOX_EDGE),
- TRUE);
+ create_bbox (FALSE, "Edge", 30, 85, 20, GTK_BUTTONBOX_EDGE));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Start", 30, 85, 20, GTK_BUTTONBOX_START),
- TRUE);
+ create_bbox (FALSE, "Start", 30, 85, 20, GTK_BUTTONBOX_START));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "End", 30, 85, 20, GTK_BUTTONBOX_END),
- TRUE);
+ create_bbox (FALSE, "End", 30, 85, 20, GTK_BUTTONBOX_END));
gtk_box_pack_start (GTK_BOX (hbox),
- create_bbox (FALSE, "Center", 30, 85, 20, GTK_BUTTONBOX_CENTER),
- TRUE);
+ create_bbox (FALSE, "Center", 30, 85, 20, GTK_BUTTONBOX_CENTER));
}
if (!gtk_widget_get_visible (window))
@@ -912,10 +901,10 @@ create_statusbar (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), box1);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
statusbar = gtk_statusbar_new ();
- gtk_box_pack_end (GTK_BOX (box1), statusbar, TRUE);
+ gtk_box_pack_end (GTK_BOX (box1), statusbar);
g_signal_connect (statusbar,
"text_popped",
G_CALLBACK (statusbar_popped),
@@ -963,16 +952,16 @@ create_statusbar (GtkWidget *widget)
NULL);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
}
@@ -1023,64 +1012,64 @@ create_alpha_widgets (GtkWidget *widget)
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (main_hbox), vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (main_hbox), vbox);
/* Plain button (no gdkwindows */
label = gtk_label_new ("non-window widget");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
alpha1 = button = gtk_button_new_with_label ("A Button");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
/* windowed container with both windowed and normal button */
label = gtk_label_new ("\nwindow widget");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
alpha2 = event_box = gtk_event_box_new ();
- gtk_box_pack_start (GTK_BOX (vbox), event_box, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), event_box);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (event_box), vbox2);
button = gtk_button_new_with_label ("A Button");
- gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), button);
event_box = gtk_event_box_new ();
button = gtk_button_new_with_label ("A Button (in window)");
gtk_container_add (GTK_CONTAINER (event_box), button);
- gtk_box_pack_start (GTK_BOX (vbox2), event_box, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), event_box);
/* non-windowed container with both windowed and normal button */
label = gtk_label_new ("\nnon-window widget with widget child");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
alpha3 = vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), vbox2, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), vbox2);
button = gtk_button_new_with_label ("A Button");
- gtk_box_pack_start (GTK_BOX (vbox2), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), button);
event_box = gtk_event_box_new ();
button = gtk_button_new_with_label ("A Button (in window)");
gtk_container_add (GTK_CONTAINER (event_box), button);
- gtk_box_pack_start (GTK_BOX (vbox2), event_box, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), event_box);
scale = gtk_scale_new_with_range (GTK_ORIENTATION_VERTICAL,
0, 100, 1);
- gtk_box_pack_start (GTK_BOX (main_hbox), scale, FALSE);
+ gtk_box_pack_start (GTK_BOX (main_hbox), scale);
g_signal_connect (scale, "value_changed", G_CALLBACK (alpha_changed), alpha1);
gtk_range_set_value (GTK_RANGE (scale), 50);
scale = gtk_scale_new_with_range (GTK_ORIENTATION_VERTICAL,
0, 100, 1);
- gtk_box_pack_start (GTK_BOX (main_hbox), scale, FALSE);
+ gtk_box_pack_start (GTK_BOX (main_hbox), scale);
g_signal_connect (scale, "value_changed", G_CALLBACK (alpha_changed), alpha2);
gtk_range_set_value (GTK_RANGE (scale), 50);
scale = gtk_scale_new_with_range (GTK_ORIENTATION_VERTICAL,
0, 100, 1);
- gtk_box_pack_start (GTK_BOX (main_hbox), scale, FALSE);
+ gtk_box_pack_start (GTK_BOX (main_hbox), scale);
g_signal_connect (scale, "value_changed", G_CALLBACK (alpha_changed), alpha3);
gtk_range_set_value (GTK_RANGE (scale), 50);
@@ -1244,45 +1233,45 @@ void create_labels (GtkWidget *widget)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_container_add (GTK_CONTAINER (window), vbox);
- gtk_box_pack_end (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), hbox);
button = create_sensitivity_control (hbox);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button = create_selectable_control (hbox);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
- gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
frame = gtk_frame_new ("Normal Label");
label = gtk_label_new ("This is a Normal label");
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_START);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Multi-line Label");
label = gtk_label_new ("This is a Multi-line label.\nSecond line\nThird line");
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Left Justified Label");
label = gtk_label_new ("This is a Left-Justified\nMulti-line label.\nThird line");
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_MIDDLE);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Right Justified Label");
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_START);
label = gtk_label_new ("This is a Right-Justified\nMulti-line label.\nFourth line, (j/k)");
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Internationalized Label");
label = gtk_label_new (NULL);
@@ -1295,13 +1284,13 @@ void create_labels (GtkWidget *widget)
"Japanese <span lang=\"ja\">\345\205\203\346\260\227
\351\226\213\347\231\272</span>");
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Bidirection Label");
label = gtk_label_new ("\342\200\217Arabic \330\247\331\204\330\263\331\204\330\247\331\205
\330\271\331\204\331\212\331\203\331\205\n"
"\342\200\217Hebrew \327\251\327\234\327\225\327\235");
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Links in a label");
label = gtk_label_new ("Some <a href=\"http://en.wikipedia.org/wiki/Text\" title=\"plain
text\">text</a> may be marked up\n"
@@ -1309,11 +1298,11 @@ void create_labels (GtkWidget *widget)
"or activated via <a href=\"keynav\">keynav</a>");
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
g_signal_connect (label, "activate-link", G_CALLBACK (activate_link), NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
- gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
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 "\
"up the entire "/* big space to test spacing */\
@@ -1325,7 +1314,7 @@ void create_labels (GtkWidget *widget)
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Filled, wrapped label");
label = gtk_label_new ("This is an example of a line-wrapped, filled label. It should be taking "\
@@ -1338,7 +1327,7 @@ void create_labels (GtkWidget *widget)
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_FILL);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Underlined label");
label = gtk_label_new ("This label is underlined!\n"
@@ -1346,7 +1335,7 @@ void create_labels (GtkWidget *widget)
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
gtk_label_set_pattern (GTK_LABEL (label), "_________________________ _ _________ _ _____ _ __ __ ___
____ _____");
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
frame = gtk_frame_new ("Markup label");
label = gtk_label_new (NULL);
@@ -1373,7 +1362,7 @@ void create_labels (GtkWidget *widget)
g_assert (gtk_label_get_mnemonic_keyval (GTK_LABEL (label)) == GDK_KEY_s);
gtk_container_add (GTK_CONTAINER (frame), label);
- gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
}
if (!gtk_widget_get_visible (window))
@@ -1420,18 +1409,18 @@ create_rotated_label (GtkWidget *widget)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
label = gtk_label_new (NULL);
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);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
scale_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), scale_hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), scale_hbox);
scale_label = gtk_label_new (NULL);
gtk_label_set_markup (GTK_LABEL (scale_label), "<i>Angle: </i>");
- gtk_box_pack_start (GTK_BOX (scale_hbox), scale_label, FALSE);
+ gtk_box_pack_start (GTK_BOX (scale_hbox), scale_label);
hscale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
0, 360, 5);
@@ -1440,7 +1429,7 @@ create_rotated_label (GtkWidget *widget)
gtk_range_set_value (GTK_RANGE (hscale), 45);
gtk_widget_set_size_request (hscale, 200, -1);
- gtk_box_pack_start (GTK_BOX (scale_hbox), hscale, TRUE);
+ gtk_box_pack_start (GTK_BOX (scale_hbox), hscale);
}
if (!gtk_widget_get_visible (window))
@@ -1552,7 +1541,7 @@ create_rotated_text (GtkWidget *widget)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
drawing_area = gtk_drawing_area_new ();
- gtk_box_pack_start (GTK_BOX (content_area), drawing_area, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), drawing_area);
tile_pixbuf = gdk_pixbuf_new_from_file ("marble.xpm", NULL);
@@ -1639,22 +1628,22 @@ create_reparent (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), box1);
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
label = gtk_label_new ("Hello World");
frame = gtk_frame_new ("Frame 1");
- gtk_box_pack_start (GTK_BOX (box2), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), frame);
box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_add (GTK_CONTAINER (frame), box3);
button = gtk_button_new_with_label ("switch");
g_object_set_data (G_OBJECT (button), "user_data", label);
- gtk_box_pack_start (GTK_BOX (box3), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box3), button);
event_box = gtk_event_box_new ();
- gtk_box_pack_start (GTK_BOX (box3), event_box, TRUE);
+ gtk_box_pack_start (GTK_BOX (box3), event_box);
gtk_container_add (GTK_CONTAINER (event_box), label);
g_signal_connect (button, "clicked",
@@ -1666,32 +1655,32 @@ create_reparent (GtkWidget *widget)
GINT_TO_POINTER (42));
frame = gtk_frame_new ("Frame 2");
- gtk_box_pack_start (GTK_BOX (box2), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), frame);
box3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_add (GTK_CONTAINER (frame), box3);
button = gtk_button_new_with_label ("switch");
g_object_set_data (G_OBJECT (button), "user_data", label);
- gtk_box_pack_start (GTK_BOX (box3), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box3), button);
event_box = gtk_event_box_new ();
- gtk_box_pack_start (GTK_BOX (box3), event_box, TRUE);
+ gtk_box_pack_start (GTK_BOX (box3), event_box);
g_signal_connect (button, "clicked",
G_CALLBACK (reparent_label),
event_box);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy), window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
}
@@ -1792,43 +1781,43 @@ create_saved_position (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (vbox), button);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("X Origin : ");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
x_label = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), x_label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), x_label);
g_object_set_data (G_OBJECT (window), "x", x_label);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Y Origin : ");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
y_label = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), y_label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), y_label);
g_object_set_data (G_OBJECT (window), "y", y_label);
any =
g_object_new (gtk_separator_get_type (),
"GtkWidget::visible", TRUE,
NULL);
- gtk_box_pack_start (GTK_BOX (main_vbox), any, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), any);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (main_vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), hbox);
button = gtk_button_new_with_label ("Close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
@@ -1873,10 +1862,10 @@ create_pixbuf (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), box1);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new ();
- gtk_box_pack_start (GTK_BOX (box2), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gdk_window = gtk_widget_get_window (window);
@@ -1889,7 +1878,7 @@ create_pixbuf (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (button), box3);
button = gtk_button_new ();
- gtk_box_pack_start (GTK_BOX (box2), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
pixbufwid = new_pixbuf ("test.xpm", gdk_window);
@@ -1902,16 +1891,16 @@ create_pixbuf (GtkWidget *widget)
gtk_widget_set_sensitive (button, FALSE);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
}
@@ -1950,15 +1939,15 @@ create_tooltips (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), box1);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_toggle_button_new_with_label ("button1");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_tooltip_text (button, "This is button 1");
button = gtk_toggle_button_new_with_label ("button2");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_tooltip_text (button,
"This is button 2. This is also a really long tooltip which probably "
@@ -1966,7 +1955,7 @@ create_tooltips (GtkWidget *widget)
"Hopefully the wrapping will work correctly.");
toggle = gtk_toggle_button_new_with_label ("Override TipsQuery Label");
- gtk_box_pack_start (GTK_BOX (box2), toggle, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), toggle);
gtk_widget_set_tooltip_text (toggle, "Toggle TipsQuery view.");
@@ -1984,7 +1973,7 @@ create_tooltips (GtkWidget *widget)
"visible", TRUE,
"parent", box3,
NULL);
- gtk_box_set_child_packing (GTK_BOX (box3), button, FALSE, GTK_PACK_START);
+ gtk_box_set_child_packing (GTK_BOX (box3), button, GTK_PACK_START);
gtk_widget_set_tooltip_text (button, "Start the Tooltips Inspector");
frame = g_object_new (gtk_frame_get_type (),
@@ -1994,19 +1983,19 @@ create_tooltips (GtkWidget *widget)
"parent", box2,
NULL);
gtk_container_add (GTK_CONTAINER (frame), box3);
- gtk_box_set_child_packing (GTK_BOX (box2), frame, TRUE, GTK_PACK_START);
+ gtk_box_set_child_packing (GTK_BOX (box2), frame, GTK_PACK_START);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
@@ -2029,12 +2018,10 @@ pack_image (GtkWidget *box,
GtkWidget *image)
{
gtk_box_pack_start (GTK_BOX (box),
- gtk_label_new (text),
- FALSE);
+ gtk_label_new (text));
gtk_box_pack_start (GTK_BOX (box),
- image,
- TRUE);
+ image);
}
static void
@@ -2548,7 +2535,7 @@ create_menus (GtkWidget *widget)
gtk_widget_show (box1);
menubar = gtk_menu_bar_new ();
- gtk_box_pack_start (GTK_BOX (box1), menubar, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), menubar);
gtk_widget_show (menubar);
menu = create_menu (screen, 2, 50);
@@ -2586,7 +2573,7 @@ create_menus (GtkWidget *widget)
gtk_widget_show (menuitem);
menubar = gtk_menu_bar_new ();
- gtk_box_pack_start (GTK_BOX (box1), menubar, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), menubar);
gtk_widget_show (menubar);
menu = create_menu (screen, 2, 10);
@@ -2597,7 +2584,7 @@ create_menus (GtkWidget *widget)
gtk_widget_show (menuitem);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
gtk_widget_show (box2);
menu = create_menu (screen, 1, 5);
@@ -2639,22 +2626,22 @@ create_menus (GtkWidget *widget)
optionmenu = gtk_combo_box_text_new ();
gtk_combo_box_set_active (GTK_COMBO_BOX (optionmenu), 3);
- gtk_box_pack_start (GTK_BOX (box2), optionmenu, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), optionmenu);
gtk_widget_show (optionmenu);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
gtk_widget_show (separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
gtk_widget_show (box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
gtk_widget_show (button);
@@ -2721,33 +2708,33 @@ create_key_lookup (GtkWidget *widget)
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
button = gtk_button_new_with_mnemonic ("Button 1 (_a)");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = gtk_button_new_with_mnemonic ("Button 2 (_A)");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = gtk_button_new_with_mnemonic ("Button 3 (_\321\204)");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = gtk_button_new_with_mnemonic ("Button 4 (_\320\244)");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = gtk_button_new_with_mnemonic ("Button 6 (_b)");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = accel_button_new (accel_group, "Button 7", "<Alt><Shift>b");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = accel_button_new (accel_group, "Button 8", "<Alt>d");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = accel_button_new (accel_group, "Button 9", "<Alt>Cyrillic_ve");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = gtk_button_new_with_mnemonic ("Button 10 (_1)");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = gtk_button_new_with_mnemonic ("Button 11 (_!)");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = accel_button_new (accel_group, "Button 12", "<Super>a");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = accel_button_new (accel_group, "Button 13", "<Hyper>a");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = accel_button_new (accel_group, "Button 14", "<Meta>a");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
button = accel_button_new (accel_group, "Button 15", "<Shift><Mod4>b");
- gtk_box_pack_start (GTK_BOX (content_area), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
window_ptr = &window;
g_object_add_weak_pointer (G_OBJECT (window), window_ptr);
@@ -2847,12 +2834,12 @@ create_modal_window (GtkWidget *widget)
/* Pack widgets */
gtk_container_add (GTK_CONTAINER (window), box1);
- gtk_box_pack_start (GTK_BOX (box1), frame1, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), frame1);
gtk_container_add (GTK_CONTAINER (frame1), box2);
- gtk_box_pack_start (GTK_BOX (box2), btnColor, FALSE);
- gtk_box_pack_start (GTK_BOX (box2), btnFile, FALSE);
- gtk_box_pack_start (GTK_BOX (box1), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), FALSE);
- gtk_box_pack_start (GTK_BOX (box1), btnClose, FALSE);
+ gtk_box_pack_start (GTK_BOX (box2), btnColor);
+ gtk_box_pack_start (GTK_BOX (box2), btnFile);
+ gtk_box_pack_start (GTK_BOX (box1), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
+ gtk_box_pack_start (GTK_BOX (box1), btnClose);
/* connect signals */
g_signal_connect_swapped (btnClose, "clicked",
@@ -3039,7 +3026,7 @@ create_scrolled_windows (GtkWidget *widget)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (content_area), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), scrolled_window);
gtk_widget_show (scrolled_window);
grid = gtk_grid_new ();
@@ -3195,15 +3182,15 @@ create_entry (GtkWidget *widget)
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
- gtk_box_pack_start (GTK_BOX (box2), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), hbox);
entry = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (entry), "hello world \330\247\331\204\330\263\331\204\330\247\331\205
\330\271\331\204\331\212\331\203\331\205");
gtk_editable_select_region (GTK_EDITABLE (entry), 0, 5);
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
cb = GTK_COMBO_BOX_TEXT (gtk_combo_box_text_new_with_entry ());
@@ -3222,41 +3209,41 @@ create_entry (GtkWidget *widget)
cb_entry = gtk_bin_get_child (GTK_BIN (cb));
gtk_entry_set_text (GTK_ENTRY (cb_entry), "hello world \n\n\n foo");
gtk_editable_select_region (GTK_EDITABLE (cb_entry), 0, -1);
- gtk_box_pack_start (GTK_BOX (box2), GTK_WIDGET (cb), TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), GTK_WIDGET (cb));
sensitive_check = gtk_check_button_new_with_label("Sensitive");
- gtk_box_pack_start (GTK_BOX (box2), sensitive_check, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), sensitive_check);
g_signal_connect (sensitive_check, "toggled",
G_CALLBACK (entry_toggle_sensitive), entry);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sensitive_check), TRUE);
has_frame_check = gtk_check_button_new_with_label("Has Frame");
- gtk_box_pack_start (GTK_BOX (box2), has_frame_check, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), has_frame_check);
g_signal_connect (has_frame_check, "toggled",
G_CALLBACK (entry_toggle_frame), entry);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (has_frame_check), TRUE);
progress_check = gtk_check_button_new_with_label("Show Progress");
- gtk_box_pack_start (GTK_BOX (box2), progress_check, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), progress_check);
g_signal_connect (progress_check, "toggled",
G_CALLBACK (entry_toggle_progress), entry);
progress_check = gtk_check_button_new_with_label("Pulse Progress");
- gtk_box_pack_start (GTK_BOX (box2), progress_check, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), progress_check);
g_signal_connect (progress_check, "toggled",
G_CALLBACK (entry_toggle_pulse), entry);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
}
@@ -3292,7 +3279,7 @@ create_expander (GtkWidget *widget)
expander = gtk_expander_new ("The Hidden");
- gtk_box_pack_start (GTK_BOX (box1), expander, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), expander);
hidden = gtk_label_new ("Revealed!");
@@ -3387,10 +3374,10 @@ create_event_box (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), box1);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (box1), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (box1), hbox);
event_box = gtk_event_box_new ();
- gtk_box_pack_start (GTK_BOX (hbox), event_box, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), event_box);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (event_box), vbox);
@@ -3402,38 +3389,38 @@ create_event_box (GtkWidget *widget)
NULL);
label = gtk_label_new ("Click on this label");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
button = gtk_button_new_with_label ("button in eventbox");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (event_box_button_clicked),
NULL);
visible_window_check = gtk_check_button_new_with_label("Visible Window");
- gtk_box_pack_start (GTK_BOX (box1), visible_window_check, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), visible_window_check);
g_signal_connect (visible_window_check, "toggled",
G_CALLBACK (event_box_toggle_visible_window), event_box);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (visible_window_check), TRUE);
above_child_check = gtk_check_button_new_with_label("Above Child");
- gtk_box_pack_start (GTK_BOX (box1), above_child_check, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), above_child_check);
g_signal_connect (above_child_check, "toggled",
G_CALLBACK (event_box_toggle_above_child), event_box);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (above_child_check), FALSE);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
}
@@ -3502,7 +3489,7 @@ create_size_group_window (GdkScreen *screen,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (window));
grid = gtk_grid_new ();
- gtk_box_pack_start (GTK_BOX (content_area), grid, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), grid);
gtk_grid_set_row_spacing (GTK_GRID (grid), 5);
gtk_grid_set_column_spacing (GTK_GRID (grid), 5);
@@ -3563,17 +3550,17 @@ create_size_group_window (GdkScreen *screen,
g_object_unref (vgroup2);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
- gtk_box_pack_start (GTK_BOX (content_area), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox);
spin_button = gtk_spin_button_new_with_range (1, 100, 1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin_button), SIZE_GROUP_INITIAL_SIZE);
- gtk_box_pack_start (GTK_BOX (hbox), spin_button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), spin_button);
g_signal_connect (spin_button, "value_changed",
G_CALLBACK (size_group_hsize_changed), main_button);
spin_button = gtk_spin_button_new_with_range (1, 100, 1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin_button), SIZE_GROUP_INITIAL_SIZE);
- gtk_box_pack_start (GTK_BOX (hbox), spin_button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), spin_button);
g_signal_connect (spin_button, "value_changed",
G_CALLBACK (size_group_vsize_changed), main_button);
@@ -3824,7 +3811,7 @@ create_spins (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), main_vbox);
frame = gtk_frame_new ("Not accelerated");
- gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (frame), vbox);
@@ -3832,15 +3819,15 @@ create_spins (GtkWidget *widget)
/* Time, month, hex spinners */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
label = gtk_label_new ("Time :");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), label);
adjustment = gtk_adjustment_new (0, 0, 1410, 30, 60, 0);
spinner = gtk_spin_button_new (adjustment, 0, 0);
@@ -3851,15 +3838,15 @@ create_spins (GtkWidget *widget)
NULL);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinner), 5);
- gtk_box_pack_start (GTK_BOX (vbox2), spinner, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinner);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
label = gtk_label_new ("Month :");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), label);
adjustment = gtk_adjustment_new (1.0, 1.0, 12.0, 1.0,
5.0, 0.0);
@@ -3876,15 +3863,15 @@ create_spins (GtkWidget *widget)
NULL);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinner), 9);
- gtk_box_pack_start (GTK_BOX (vbox2), spinner, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinner);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
label = gtk_label_new ("Hex :");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), label);
adjustment = gtk_adjustment_new (0, 0, 255, 1, 16, 0);
spinner = gtk_spin_button_new (adjustment, 0, 0);
@@ -3899,87 +3886,87 @@ create_spins (GtkWidget *widget)
NULL);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinner), 4);
- gtk_box_pack_start (GTK_BOX (vbox2), spinner, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinner);
frame = gtk_frame_new ("Accelerated");
- gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (frame), vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
label = gtk_label_new ("Value :");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), label);
adjustment = gtk_adjustment_new (0.0, -10000.0, 10000.0,
0.5, 100.0, 0.0);
spinner1 = gtk_spin_button_new (adjustment, 1.0, 2);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner1), TRUE);
- gtk_box_pack_start (GTK_BOX (vbox2), spinner1, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinner1);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
label = gtk_label_new ("Digits :");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), label);
adjustment = gtk_adjustment_new (2, 1, 15, 1, 1, 0);
spinner2 = gtk_spin_button_new (adjustment, 0.0, 0);
g_signal_connect (adjustment, "value_changed",
G_CALLBACK (change_digits),
spinner2);
- gtk_box_pack_start (GTK_BOX (vbox2), spinner2, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), spinner2);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_check_button_new_with_label ("Snap to 0.5-ticks");
g_signal_connect (button, "clicked",
G_CALLBACK (toggle_snap),
spinner1);
- gtk_box_pack_start (GTK_BOX (vbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
button = gtk_check_button_new_with_label ("Numeric only input mode");
g_signal_connect (button, "clicked",
G_CALLBACK (toggle_numeric),
spinner1);
- gtk_box_pack_start (GTK_BOX (vbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
val_label = gtk_label_new ("");
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_button_new_with_label ("Value as Int");
g_object_set_data (G_OBJECT (button), "user_data", val_label);
g_signal_connect (button, "clicked",
G_CALLBACK (get_value),
GINT_TO_POINTER (1));
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
button = gtk_button_new_with_label ("Value as Float");
g_object_set_data (G_OBJECT (button), "user_data", val_label);
g_signal_connect (button, "clicked",
G_CALLBACK (get_value),
GINT_TO_POINTER (2));
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
- gtk_box_pack_start (GTK_BOX (vbox), val_label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), val_label);
gtk_label_set_text (GTK_LABEL (val_label), "0");
frame = gtk_frame_new ("Using Convenience Constructor");
- gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add (GTK_CONTAINER (frame), hbox);
@@ -3990,17 +3977,17 @@ create_spins (GtkWidget *widget)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spinner), 0.0);
g_signal_connect (spinner, "value_changed",
G_CALLBACK (get_spin_value), val_label);
- gtk_box_pack_start (GTK_BOX (hbox), spinner, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), val_label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), spinner);
+ gtk_box_pack_start (GTK_BOX (hbox), val_label);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (main_vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), hbox);
button = gtk_button_new_with_label ("Close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
}
if (!gtk_widget_get_visible (window))
@@ -4304,21 +4291,21 @@ create_cursors (GtkWidget *widget)
guint w, h;
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Cursor Theme:");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
entry = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (entry), "default");
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
gdk_display_get_maximal_cursor_size (gtk_widget_get_display (vbox), &w, &h);
size = gtk_spin_button_new_with_range (1.0, MIN (w, h), 1.0);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (size), 24.0);
- gtk_box_pack_start (GTK_BOX (hbox), size, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), size);
g_signal_connect (entry, "changed",
G_CALLBACK (change_cursor_theme), hbox);
@@ -4327,12 +4314,12 @@ create_cursors (GtkWidget *widget)
}
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Cursor Name:");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
entry = gtk_entry_new ();
completion = gtk_entry_completion_new ();
@@ -4341,7 +4328,7 @@ create_cursors (GtkWidget *widget)
gtk_entry_completion_set_text_column (completion, 0);
gtk_entry_set_completion (GTK_ENTRY (entry), completion);
g_object_unref (model);
- gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
frame =
g_object_new (gtk_frame_get_type (),
@@ -4368,16 +4355,16 @@ create_cursors (GtkWidget *widget)
any = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (main_vbox), any, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), any);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (main_vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (main_vbox), hbox);
button = gtk_button_new_with_label ("Close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
gtk_widget_show (window);
@@ -4531,7 +4518,7 @@ create_flipping (GtkWidget *widget)
gtk_window_set_title (GTK_WINDOW (window), "Bidirectional Flipping");
check_button = gtk_check_button_new_with_label ("Right-to-left global direction");
- gtk_box_pack_start (GTK_BOX (content_area), check_button, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), check_button);
if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check_button), TRUE);
@@ -4540,22 +4527,19 @@ create_flipping (GtkWidget *widget)
G_CALLBACK (flipping_toggled_cb), NULL);
check_button = gtk_check_button_new_with_label ("Toggle orientation of all boxes");
- gtk_box_pack_start (GTK_BOX (content_area), check_button, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), check_button);
g_signal_connect (check_button, "toggled",
G_CALLBACK (flipping_orientation_toggled_cb), NULL);
gtk_box_pack_start (GTK_BOX (content_area),
- create_forward_back ("Default", GTK_TEXT_DIR_NONE),
- TRUE);
+ create_forward_back ("Default", GTK_TEXT_DIR_NONE));
gtk_box_pack_start (GTK_BOX (content_area),
- create_forward_back ("Left-to-Right", GTK_TEXT_DIR_LTR),
- TRUE);
+ create_forward_back ("Left-to-Right", GTK_TEXT_DIR_LTR));
gtk_box_pack_start (GTK_BOX (content_area),
- create_forward_back ("Right-to-Left", GTK_TEXT_DIR_RTL),
- TRUE);
+ create_forward_back ("Right-to-Left", GTK_TEXT_DIR_RTL));
gtk_dialog_add_button (GTK_DIALOG (window), "Close", GTK_RESPONSE_CLOSE);
g_signal_connect (window, "response", G_CALLBACK (gtk_widget_destroy), NULL);
@@ -4642,7 +4626,7 @@ create_focus (GtkWidget *widget)
frame = gtk_frame_new ("Weird tab focus chain");
- gtk_box_pack_start (GTK_BOX (content_area), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), frame);
table = make_focus_table (&list);
@@ -4655,7 +4639,7 @@ create_focus (GtkWidget *widget)
frame = gtk_frame_new ("Default tab focus chain");
- gtk_box_pack_start (GTK_BOX (content_area), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), frame);
list = NULL;
table = make_focus_table (&list);
@@ -4747,7 +4731,7 @@ dialog_response_cb (GtkWidget *widget, gint response, gpointer unused)
label = gtk_label_new ("Dialog Test");
g_object_set (label, "margin", 10, NULL);
gtk_box_pack_start (GTK_BOX (content_area),
- label, TRUE);
+ label);
gtk_widget_show (label);
}
@@ -5002,7 +4986,7 @@ create_event_watcher (GtkWidget *widget)
g_signal_connect (button, "clicked",
G_CALLBACK (event_watcher_toggle),
NULL);
- gtk_box_pack_start (GTK_BOX (content_area), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), button);
gtk_widget_show (button);
gtk_dialog_add_button (GTK_DIALOG (dialog_window), "Close", GTK_RESPONSE_CLOSE);
@@ -5060,7 +5044,7 @@ create_range_controls (GtkWidget *widget)
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
gtk_widget_show (box2);
@@ -5070,11 +5054,11 @@ create_range_controls (GtkWidget *widget)
gtk_widget_set_size_request (GTK_WIDGET (scale), 150, -1);
gtk_scale_set_digits (GTK_SCALE (scale), 1);
gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE);
- gtk_box_pack_start (GTK_BOX (box2), scale, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), scale);
gtk_widget_show (scale);
scrollbar = gtk_scrollbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_ADJUSTMENT (adjustment));
- gtk_box_pack_start (GTK_BOX (box2), scrollbar, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), scrollbar);
gtk_widget_show (scrollbar);
scale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, GTK_ADJUSTMENT (adjustment));
@@ -5083,7 +5067,7 @@ create_range_controls (GtkWidget *widget)
"format_value",
G_CALLBACK (reformat_value),
NULL);
- gtk_box_pack_start (GTK_BOX (box2), scale, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), scale);
gtk_widget_show (scale);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
@@ -5092,7 +5076,7 @@ create_range_controls (GtkWidget *widget)
gtk_widget_set_size_request (scale, -1, 200);
gtk_scale_set_digits (GTK_SCALE (scale), 2);
gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), scale, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), scale);
gtk_widget_show (scale);
scale = gtk_scale_new (GTK_ORIENTATION_VERTICAL, GTK_ADJUSTMENT (adjustment));
@@ -5100,7 +5084,7 @@ create_range_controls (GtkWidget *widget)
gtk_scale_set_digits (GTK_SCALE (scale), 2);
gtk_scale_set_draw_value (GTK_SCALE (scale), TRUE);
gtk_range_set_inverted (GTK_RANGE (scale), TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), scale, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), scale);
gtk_widget_show (scale);
scale = gtk_scale_new (GTK_ORIENTATION_VERTICAL, GTK_ADJUSTMENT (adjustment));
@@ -5109,20 +5093,20 @@ create_range_controls (GtkWidget *widget)
"format_value",
G_CALLBACK (reformat_value),
NULL);
- gtk_box_pack_start (GTK_BOX (hbox), scale, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), scale);
gtk_widget_show (scale);
- gtk_box_pack_start (GTK_BOX (box2), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), hbox);
gtk_widget_show (hbox);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
gtk_widget_show (separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
gtk_widget_show (box2);
@@ -5130,7 +5114,7 @@ create_range_controls (GtkWidget *widget)
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
gtk_widget_show (button);
@@ -5272,21 +5256,21 @@ create_pages (GtkNotebook *notebook, gint start, gint end)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_check_button_new_with_label ("Fill Tab");
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
g_signal_connect (button, "toggled",
G_CALLBACK (tab_fill), child);
button = gtk_check_button_new_with_label ("Expand Tab");
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
g_signal_connect (button, "toggled",
G_CALLBACK (tab_expand), child);
button = gtk_button_new_with_label ("Hide Page");
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_hide),
child);
@@ -5297,13 +5281,13 @@ create_pages (GtkNotebook *notebook, gint start, gint end)
pixwid = gtk_image_new_from_pixbuf (book_closed);
g_object_set_data (G_OBJECT (child), "tab_pixmap", pixwid);
- gtk_box_pack_start (GTK_BOX (label_box), pixwid, TRUE);
+ gtk_box_pack_start (GTK_BOX (label_box), pixwid);
gtk_widget_set_margin_start (pixwid, 3);
gtk_widget_set_margin_end (pixwid, 3);
gtk_widget_set_margin_bottom (pixwid, 1);
gtk_widget_set_margin_top (pixwid, 1);
label = gtk_label_new_with_mnemonic (accel_buffer);
- gtk_box_pack_start (GTK_BOX (label_box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (label_box), label);
gtk_widget_show (label_box);
@@ -5311,13 +5295,13 @@ create_pages (GtkNotebook *notebook, gint start, gint end)
pixwid = gtk_image_new_from_pixbuf (book_closed);
g_object_set_data (G_OBJECT (child), "menu_pixmap", pixwid);
- gtk_box_pack_start (GTK_BOX (menu_box), pixwid, TRUE);
+ gtk_box_pack_start (GTK_BOX (menu_box), pixwid);
gtk_widget_set_margin_start (pixwid, 3);
gtk_widget_set_margin_end (pixwid, 3);
gtk_widget_set_margin_bottom (pixwid, 1);
gtk_widget_set_margin_top (pixwid, 1);
label = gtk_label_new (buffer);
- gtk_box_pack_start (GTK_BOX (menu_box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (menu_box), label);
gtk_widget_show (menu_box);
gtk_notebook_append_page_menu (notebook, child, label_box, menu_box);
@@ -5443,7 +5427,7 @@ create_notebook (GtkWidget *widget)
g_signal_connect (sample_notebook, "switch_page",
G_CALLBACK (page_switch), NULL);
gtk_notebook_set_tab_pos (GTK_NOTEBOOK (sample_notebook), GTK_POS_TOP);
- gtk_box_pack_start (GTK_BOX (box1), sample_notebook, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), sample_notebook);
gtk_widget_realize (sample_notebook);
@@ -5456,62 +5440,62 @@ create_notebook (GtkWidget *widget)
create_pages (GTK_NOTEBOOK (sample_notebook), 1, 5);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_check_button_new_with_label ("popup menu");
- gtk_box_pack_start (GTK_BOX (box2), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
g_signal_connect (button, "clicked",
G_CALLBACK (notebook_popup),
sample_notebook);
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
label = gtk_label_new ("Notebook Style :");
- gtk_box_pack_start (GTK_BOX (box2), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), label);
omenu = build_option_menu (items, G_N_ELEMENTS (items), 0,
notebook_type_changed,
sample_notebook);
- gtk_box_pack_start (GTK_BOX (box2), omenu, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), omenu);
button = gtk_button_new_with_label ("Show all Pages");
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
g_signal_connect (button, "clicked",
G_CALLBACK (show_all_pages), sample_notebook);
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
gtk_box_set_homogeneous (GTK_BOX (box2), TRUE);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_label ("prev");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_notebook_prev_page),
sample_notebook);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_button_new_with_label ("next");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_notebook_next_page),
sample_notebook);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
button = gtk_button_new_with_label ("rotate");
g_signal_connect (button, "clicked",
G_CALLBACK (rotate_notebook), sample_notebook);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
button = gtk_button_new_with_label ("close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box1), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box1), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
}
@@ -5634,7 +5618,7 @@ create_panes (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), vbox);
vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
- gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), vpaned);
hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_paned_add1 (GTK_PANED (vpaned), hpaned);
@@ -5663,15 +5647,13 @@ create_panes (GtkWidget *widget)
create_pane_options (GTK_PANED (hpaned),
"Horizontal",
"Left",
- "Right"),
- FALSE);
+ "Right"));
gtk_box_pack_start (GTK_BOX (vbox),
create_pane_options (GTK_PANED (vpaned),
"Vertical",
"Top",
- "Bottom"),
- FALSE);
+ "Bottom"));
gtk_widget_show (vbox);
}
@@ -5726,13 +5708,13 @@ paned_keyboard_window1 (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (frame1), vbox1);
button7 = gtk_button_new_with_label ("button7");
- gtk_box_pack_start (GTK_BOX (vbox1), button7, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), button7);
button8 = gtk_button_new_with_label ("button8");
- gtk_box_pack_start (GTK_BOX (vbox1), button8, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), button8);
button9 = gtk_button_new_with_label ("button9");
- gtk_box_pack_start (GTK_BOX (vbox1), button9, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox1), button9);
vpaned1 = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_paned_pack2 (GTK_PANED (hpaned1), vpaned1, TRUE, TRUE);
@@ -5748,10 +5730,10 @@ paned_keyboard_window1 (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (frame5), hbox1);
button5 = gtk_button_new_with_label ("button5");
- gtk_box_pack_start (GTK_BOX (hbox1), button5, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox1), button5);
button6 = gtk_button_new_with_label ("button6");
- gtk_box_pack_start (GTK_BOX (hbox1), button6, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox1), button6);
frame3 = gtk_frame_new (NULL);
gtk_paned_pack2 (GTK_PANED (vpaned1), frame3, TRUE, TRUE);
@@ -5813,7 +5795,7 @@ paned_keyboard_window2 (GtkWidget *widget)
gtk_paned_pack2 (GTK_PANED (hpaned2), hbox2, TRUE, TRUE);
vpaned2 = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
- gtk_box_pack_start (GTK_BOX (hbox2), vpaned2, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox2), vpaned2);
frame7 = gtk_frame_new (NULL);
gtk_paned_pack1 (GTK_PANED (vpaned2), frame7, FALSE, TRUE);
@@ -5830,7 +5812,7 @@ paned_keyboard_window2 (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (frame8), button11);
button10 = gtk_button_new_with_label ("button10");
- gtk_box_pack_start (GTK_BOX (hbox2), button10, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox2), button10);
return window2;
}
@@ -5865,10 +5847,10 @@ paned_keyboard_window3 (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window3), vbox2);
label1 = gtk_label_new ("Three panes nested inside each other");
- gtk_box_pack_start (GTK_BOX (vbox2), label1, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), label1);
hpaned3 = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (vbox2), hpaned3, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), hpaned3);
frame9 = gtk_frame_new (NULL);
gtk_paned_pack1 (GTK_PANED (hpaned3), frame9, FALSE, TRUE);
@@ -5939,11 +5921,11 @@ paned_keyboard_window4 (GtkWidget *widget)
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");
- gtk_box_pack_start (GTK_BOX (vbox3), label2, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox3), label2);
gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_LEFT);
hpaned6 = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (vbox3), hpaned6, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox3), hpaned6);
vpaned3 = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_paned_pack1 (GTK_PANED (hpaned6), vpaned3, FALSE, TRUE);
@@ -5958,7 +5940,7 @@ paned_keyboard_window4 (GtkWidget *widget)
gtk_paned_pack2 (GTK_PANED (hpaned6), hbox3, TRUE, TRUE);
vpaned4 = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
- gtk_box_pack_start (GTK_BOX (hbox3), vpaned4, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox3), vpaned4);
button21 = gtk_button_new_with_label ("button21");
gtk_paned_pack1 (GTK_PANED (vpaned4), button21, FALSE, TRUE);
@@ -5967,7 +5949,7 @@ paned_keyboard_window4 (GtkWidget *widget)
gtk_paned_pack2 (GTK_PANED (vpaned4), button20, TRUE, TRUE);
vpaned5 = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
- gtk_box_pack_start (GTK_BOX (hbox3), vpaned5, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox3), vpaned5);
button23 = gtk_button_new_with_label ("button23");
gtk_paned_pack1 (GTK_PANED (vpaned5), button23, FALSE, TRUE);
@@ -5976,7 +5958,7 @@ paned_keyboard_window4 (GtkWidget *widget)
gtk_paned_pack2 (GTK_PANED (vpaned5), button22, TRUE, TRUE);
vpaned6 = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
- gtk_box_pack_start (GTK_BOX (hbox3), vpaned6, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox3), vpaned6);
button25 = gtk_button_new_with_label ("button25");
gtk_paned_pack1 (GTK_PANED (vpaned6), button25, FALSE, TRUE);
@@ -6339,17 +6321,17 @@ create_wmhints (GtkWidget *widget)
label = gtk_label_new ("Try iconizing me!");
gtk_widget_set_size_request (label, 150, 50);
- gtk_box_pack_start (GTK_BOX (box1), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), label);
gtk_widget_show (label);
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
gtk_widget_show (separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
gtk_widget_show (box2);
@@ -6359,7 +6341,7 @@ create_wmhints (GtkWidget *widget)
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
gtk_widget_show (button);
@@ -6425,7 +6407,7 @@ tracking_label (GtkWidget *window)
label = gtk_label_new ("<no window state events received>");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
g_signal_connect (window,
"window_state_event",
@@ -6438,7 +6420,7 @@ tracking_label (GtkWidget *window)
G_CALLBACK (gtk_window_deiconify),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
button = gtk_button_new_with_label ("Iconify");
g_signal_connect_object (button,
@@ -6446,7 +6428,7 @@ tracking_label (GtkWidget *window)
G_CALLBACK (gtk_window_iconify),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
button = gtk_button_new_with_label ("Fullscreen");
g_signal_connect_object (button,
@@ -6454,7 +6436,7 @@ tracking_label (GtkWidget *window)
G_CALLBACK (gtk_window_fullscreen),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
button = gtk_button_new_with_label ("Unfullscreen");
g_signal_connect_object (button,
@@ -6462,7 +6444,7 @@ tracking_label (GtkWidget *window)
G_CALLBACK (gtk_window_unfullscreen),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
button = gtk_button_new_with_label ("Present");
g_signal_connect_object (button,
@@ -6470,7 +6452,7 @@ tracking_label (GtkWidget *window)
G_CALLBACK (gtk_window_present),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
button = gtk_button_new_with_label ("Show");
g_signal_connect_object (button,
@@ -6478,7 +6460,7 @@ tracking_label (GtkWidget *window)
G_CALLBACK (gtk_widget_show),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), button);
gtk_widget_show (hbox);
@@ -6526,7 +6508,7 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_window_stick),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Unstick");
g_signal_connect_object (button,
@@ -6534,7 +6516,7 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_window_unstick),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Maximize");
g_signal_connect_object (button,
@@ -6542,7 +6524,7 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_window_maximize),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Unmaximize");
g_signal_connect_object (button,
@@ -6550,7 +6532,7 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_window_unmaximize),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Iconify");
g_signal_connect_object (button,
@@ -6558,7 +6540,7 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_window_iconify),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Fullscreen");
g_signal_connect_object (button,
@@ -6566,7 +6548,7 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_window_fullscreen),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Unfullscreen");
g_signal_connect_object (button,
@@ -6574,21 +6556,21 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_window_unfullscreen),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
button_above = gtk_toggle_button_new_with_label ("Keep above");
g_signal_connect (button_above,
"toggled",
G_CALLBACK (keep_window_above),
window);
- gtk_box_pack_start (GTK_BOX (vbox), button_above, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button_above);
button_below = gtk_toggle_button_new_with_label ("Keep below");
g_signal_connect (button_below,
"toggled",
G_CALLBACK (keep_window_below),
window);
- gtk_box_pack_start (GTK_BOX (vbox), button_below, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button_below);
g_object_set_data (G_OBJECT (button_above), "radio", button_below);
g_object_set_data (G_OBJECT (button_below), "radio", button_above);
@@ -6599,7 +6581,7 @@ get_state_controls (GtkWidget *window)
G_CALLBACK (gtk_widget_hide),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
gtk_widget_show (vbox);
@@ -6853,7 +6835,7 @@ window_controls (GtkWidget *window)
gtk_container_add (GTK_CONTAINER (control_window), vbox);
label = gtk_label_new ("<no configure events>");
- gtk_box_pack_start (GTK_BOX (vbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
g_signal_connect (window,
"configure_event",
@@ -6863,14 +6845,14 @@ window_controls (GtkWidget *window)
adjustment = gtk_adjustment_new (10.0, -2000.0, 2000.0, 1.0, 5.0, 0.0);
spin = gtk_spin_button_new (adjustment, 0, 0);
- gtk_box_pack_start (GTK_BOX (vbox), spin, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), spin);
g_object_set_data (G_OBJECT (control_window), "spin1", spin);
adjustment = gtk_adjustment_new (10.0, -2000.0, 2000.0, 1.0, 5.0, 0.0);
spin = gtk_spin_button_new (adjustment, 0, 0);
- gtk_box_pack_start (GTK_BOX (vbox), spin, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), spin);
g_object_set_data (G_OBJECT (control_window), "spin2", spin);
@@ -6880,56 +6862,56 @@ window_controls (GtkWidget *window)
G_CALLBACK (gtk_widget_queue_resize),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Resize");
g_signal_connect (button,
"clicked",
G_CALLBACK (set_size_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Set default size");
g_signal_connect (button,
"clicked",
G_CALLBACK (set_default_size_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Unset default size");
g_signal_connect (button,
"clicked",
G_CALLBACK (unset_default_size_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Set size request");
g_signal_connect (button,
"clicked",
G_CALLBACK (set_size_request_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Unset size request");
g_signal_connect (button,
"clicked",
G_CALLBACK (unset_size_request_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Move");
g_signal_connect (button,
"clicked",
G_CALLBACK (set_location_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_label ("Move to current position");
g_signal_connect (button,
"clicked",
G_CALLBACK (move_to_position_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_check_button_new_with_label ("Allow resize");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
@@ -6937,7 +6919,7 @@ window_controls (GtkWidget *window)
"toggled",
G_CALLBACK (resizable_callback),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_mnemonic ("_Show");
g_signal_connect_object (button,
@@ -6945,7 +6927,7 @@ window_controls (GtkWidget *window)
G_CALLBACK (gtk_widget_show),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
button = gtk_button_new_with_mnemonic ("_Hide");
g_signal_connect_object (button,
@@ -6953,7 +6935,7 @@ window_controls (GtkWidget *window)
G_CALLBACK (gtk_widget_hide),
window,
G_CONNECT_SWAPPED);
- gtk_box_pack_end (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), button);
om = gtk_combo_box_text_new ();
i = 0;
@@ -6984,7 +6966,7 @@ window_controls (GtkWidget *window)
G_CALLBACK (gravity_selected),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), om, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), om);
om = gtk_combo_box_text_new ();
@@ -7011,7 +6993,7 @@ window_controls (GtkWidget *window)
G_CALLBACK (pos_selected),
control_window);
- gtk_box_pack_end (GTK_BOX (vbox), om, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), om);
gtk_widget_show (vbox);
@@ -7249,10 +7231,10 @@ create_progress_bar (GtkWidget *widget)
gtk_window_set_title (GTK_WINDOW (pdata->window), "GtkProgressBar");
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
frame = gtk_frame_new ("Progress");
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_add (GTK_CONTAINER (frame), vbox2);
@@ -7262,19 +7244,19 @@ create_progress_bar (GtkWidget *widget)
PANGO_ELLIPSIZE_MIDDLE);
gtk_widget_set_halign (pdata->pbar, GTK_ALIGN_CENTER);
gtk_widget_set_valign (pdata->pbar, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), pdata->pbar, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), pdata->pbar);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
gtk_widget_set_halign (hbox, GTK_ALIGN_CENTER);
gtk_widget_set_valign (hbox, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox2), hbox);
label = gtk_label_new ("Label updated by user :");
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
pdata->label = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), pdata->label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), pdata->label);
frame = gtk_frame_new ("Options");
- gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), frame);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_add (GTK_CONTAINER (frame), vbox2);
@@ -7282,7 +7264,7 @@ create_progress_bar (GtkWidget *widget)
grid = gtk_grid_new ();
gtk_grid_set_row_spacing (GTK_GRID (grid), 10);
gtk_grid_set_column_spacing (GTK_GRID (grid), 10);
- gtk_box_pack_start (GTK_BOX (vbox2), grid, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), grid);
label = gtk_label_new ("Orientation :");
gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 1, 1);
@@ -7311,14 +7293,14 @@ create_progress_bar (GtkWidget *widget)
gtk_grid_attach (GTK_GRID (grid), hbox, 1, 2, 1, 1);
label = gtk_label_new ("Text: ");
- gtk_box_pack_start (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
pdata->entry = gtk_entry_new ();
gtk_widget_set_hexpand (pdata->entry, TRUE);
g_signal_connect (pdata->entry, "changed",
G_CALLBACK (entry_changed),
pdata);
- gtk_box_pack_start (GTK_BOX (hbox), pdata->entry, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), pdata->entry);
gtk_widget_set_size_request (pdata->entry, 100, -1);
label = gtk_label_new ("Ellipsize text :");
@@ -7641,14 +7623,14 @@ create_snapshot (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), vbox);
button = gtk_button_new_with_label ("Snapshot widget");
- gtk_box_pack_start (GTK_BOX (vbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (snapshot_widget),
data);
button = gtk_button_new_with_label ("Snapshot toplevel");
data->toplevel_button = button;
- gtk_box_pack_start (GTK_BOX (vbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (snapshot_widget),
data);
@@ -7763,16 +7745,16 @@ create_selection_test (GtkWidget *widget)
/* Create the list */
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
label = gtk_label_new ("Gets available targets for current selection");
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win);
gtk_widget_set_size_request (scrolled_win, 100, 200);
store = gtk_list_store_new (1, G_TYPE_STRING);
@@ -7911,12 +7893,12 @@ create_scroll_test (GtkWidget *widget)
gtk_window_set_title (GTK_WINDOW (window), "Scroll Test");
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox);
gtk_widget_show (hbox);
drawing_area = gtk_drawing_area_new ();
gtk_widget_set_size_request (drawing_area, 200, 200);
- gtk_box_pack_start (GTK_BOX (hbox), drawing_area, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), drawing_area);
gtk_widget_show (drawing_area);
gtk_widget_set_events (drawing_area, GDK_EXPOSURE_MASK | GDK_SCROLL_MASK);
@@ -7925,7 +7907,7 @@ create_scroll_test (GtkWidget *widget)
scroll_test_pos = 0.0;
scrollbar = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, adjustment);
- gtk_box_pack_start (GTK_BOX (hbox), scrollbar, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), scrollbar);
gtk_widget_show (scrollbar);
g_signal_connect (drawing_area, "draw",
@@ -8029,7 +8011,7 @@ create_timeout_test (GtkWidget *widget)
label = gtk_label_new ("count: 0");
g_object_set (label, "margin", 10, NULL);
- gtk_box_pack_start (GTK_BOX (content_area), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), label);
gtk_widget_show (label);
button = gtk_button_new_with_label ("close");
@@ -8037,7 +8019,7 @@ create_timeout_test (GtkWidget *widget)
G_CALLBACK (gtk_widget_destroy),
window);
gtk_widget_set_can_default (button, TRUE);
- gtk_box_pack_start (GTK_BOX (action_area), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (action_area), button);
gtk_widget_grab_default (button);
gtk_widget_show (button);
@@ -8046,7 +8028,7 @@ create_timeout_test (GtkWidget *widget)
G_CALLBACK(start_timeout_test),
label);
gtk_widget_set_can_default (button, TRUE);
- gtk_box_pack_start (GTK_BOX (action_area), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (action_area), button);
gtk_widget_show (button);
button = gtk_button_new_with_label ("stop");
@@ -8054,7 +8036,7 @@ create_timeout_test (GtkWidget *widget)
G_CALLBACK (stop_timeout_test),
NULL);
gtk_widget_set_can_default (button, TRUE);
- gtk_box_pack_start (GTK_BOX (action_area), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (action_area), button);
gtk_widget_show (button);
}
@@ -8100,7 +8082,7 @@ create_mainloop (GtkWidget *widget)
label = gtk_label_new ("In recursive main loop...");
g_object_set (label, "margin", 20, NULL);
- gtk_box_pack_start (GTK_BOX (content_area), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), label);
gtk_widget_show (label);
gtk_dialog_add_button (GTK_DIALOG (window),
@@ -8528,7 +8510,7 @@ create_native_dialogs (GtkWidget *widget)
gtk_container_add (GTK_CONTAINER (window), box);
label = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (box), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), label);
combo = gtk_combo_box_text_new ();
@@ -8541,7 +8523,7 @@ create_native_dialogs (GtkWidget *widget)
g_signal_connect (combo, "changed",
G_CALLBACK (native_action_changed), native);
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), GTK_FILE_CHOOSER_ACTION_OPEN);
- gtk_box_pack_start (GTK_BOX (box), combo, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), combo);
combo = gtk_combo_box_text_new ();
@@ -8552,34 +8534,34 @@ create_native_dialogs (GtkWidget *widget)
g_signal_connect (combo, "changed",
G_CALLBACK (native_filter_changed), native);
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
- gtk_box_pack_start (GTK_BOX (box), combo, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), combo);
check_button = gtk_check_button_new_with_label ("Modal");
g_signal_connect (check_button, "toggled",
G_CALLBACK (native_modal_toggle), native);
- gtk_box_pack_start (GTK_BOX (box), check_button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), check_button);
check_button = gtk_check_button_new_with_label ("Multiple select");
g_signal_connect (check_button, "toggled",
G_CALLBACK (native_multi_select_toggle), native);
- gtk_box_pack_start (GTK_BOX (box), check_button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), check_button);
check_button = gtk_check_button_new_with_label ("Confirm overwrite");
g_signal_connect (check_button, "toggled",
G_CALLBACK (native_overwrite_confirmation_toggle), native);
- gtk_box_pack_start (GTK_BOX (box), check_button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), check_button);
check_button = gtk_check_button_new_with_label ("Extra widget");
g_signal_connect (check_button, "toggled",
G_CALLBACK (native_extra_widget_toggle), native);
- gtk_box_pack_start (GTK_BOX (box), check_button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), check_button);
show_button = gtk_button_new_with_label ("Show");
hide_button = gtk_button_new_with_label ("Hide");
gtk_widget_set_sensitive (hide_button, FALSE);
- gtk_box_pack_start (GTK_BOX (box), show_button, FALSE);
- gtk_box_pack_start (GTK_BOX (box), hide_button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), show_button);
+ gtk_box_pack_start (GTK_BOX (box), hide_button);
/* connect signals */
g_signal_connect (native, "response",
@@ -8717,14 +8699,14 @@ create_main_window (void)
gtk_get_minor_version ());
label = gtk_label_new (buffer);
- gtk_box_pack_start (GTK_BOX (box1), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (box1), label);
gtk_widget_set_name (label, "testgtk-version-label");
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (box1), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), scrolled_window);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (scrolled_window), box2);
@@ -8742,20 +8724,20 @@ create_main_window (void)
NULL);
else
gtk_widget_set_sensitive (button, FALSE);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
}
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_box_pack_start (GTK_BOX (box1), separator, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), separator);
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
- gtk_box_pack_start (GTK_BOX (box1), box2, TRUE);
+ gtk_box_pack_start (GTK_BOX (box1), box2);
button = gtk_button_new_with_mnemonic ("_Close");
g_signal_connect (button, "clicked",
G_CALLBACK (do_exit),
window);
- gtk_box_pack_start (GTK_BOX (box2), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box2), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c
index 79406ba..c12ebf1 100644
--- a/tests/testheaderbar.c
+++ b/tests/testheaderbar.c
@@ -92,11 +92,11 @@ change_header (GtkButton *button, gpointer data)
g_object_set (box, "margin", 10, NULL);
gtk_container_add (GTK_CONTAINER (header), box);
label = gtk_label_new ("Label");
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
widget = gtk_level_bar_new ();
gtk_level_bar_set_value (GTK_LEVEL_BAR (widget), 0.4);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (box), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), widget);
}
else
{
@@ -160,12 +160,12 @@ main (int argc, char *argv[])
button = gtk_button_new_with_label ("Fullscreen");
gtk_action_bar_pack_end (GTK_ACTION_BAR (footer), button);
g_signal_connect (button, "clicked", G_CALLBACK (toggle_fullscreen), window);
- gtk_box_pack_end (GTK_BOX (box), footer, FALSE);
+ gtk_box_pack_end (GTK_BOX (box), footer);
content = gtk_image_new_from_icon_name ("start-here-symbolic", GTK_ICON_SIZE_DIALOG);
gtk_image_set_pixel_size (GTK_IMAGE (content), 512);
- gtk_box_pack_start (GTK_BOX (box), content, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), content);
gtk_widget_show (window);
diff --git a/tests/testheightforwidth.c b/tests/testheightforwidth.c
index 41009b7..8a38815 100644
--- a/tests/testheightforwidth.c
+++ b/tests/testheightforwidth.c
@@ -977,7 +977,7 @@ create_window (void)
g_signal_connect (button, "clicked",
G_CALLBACK (test_clicked), &interfaces[i]);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
}
return window;
diff --git a/tests/testiconview.c b/tests/testiconview.c
index bc9a77e..0a89fa6 100644
--- a/tests/testiconview.c
+++ b/tests/testiconview.c
@@ -434,7 +434,7 @@ main (gint argc, gchar **argv)
paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_set_vexpand (paned, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), paned, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), paned);
icon_list = gtk_icon_view_new ();
gtk_icon_view_set_selection_mode (GTK_ICON_VIEW (icon_list), GTK_SELECTION_MULTIPLE);
@@ -554,43 +554,43 @@ main (gint argc, gchar **argv)
bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_START);
- gtk_box_pack_start (GTK_BOX (vbox), bbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bbox);
button = gtk_button_new_with_label ("Add some");
g_signal_connect (button, "clicked", G_CALLBACK (add_some), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_label ("Add many");
g_signal_connect (button, "clicked", G_CALLBACK (add_many), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_label ("Add large");
g_signal_connect (button, "clicked", G_CALLBACK (add_large), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_label ("Remove selected");
g_signal_connect (button, "clicked", G_CALLBACK (foreach_selected_remove), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_label ("Swap");
g_signal_connect (button, "clicked", G_CALLBACK (swap_rows), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
bbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_START);
- gtk_box_pack_start (GTK_BOX (vbox), bbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), bbox);
button = gtk_button_new_with_label ("Select all");
g_signal_connect (button, "clicked", G_CALLBACK (select_all), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_label ("Unselect all");
g_signal_connect (button, "clicked", G_CALLBACK (unselect_all), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_label ("Select nonexisting");
g_signal_connect (button, "clicked", G_CALLBACK (select_nonexisting), icon_list);
- gtk_box_pack_start (GTK_BOX (bbox), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
icon_list = gtk_icon_view_new ();
diff --git a/tests/testinput.c b/tests/testinput.c
index d7b4e6e..a7ccd8b 100644
--- a/tests/testinput.c
+++ b/tests/testinput.c
@@ -257,7 +257,7 @@ main (int argc, char *argv[])
drawing_area = gtk_drawing_area_new ();
gtk_widget_set_size_request (drawing_area, 200, 200);
gtk_widget_set_vexpand (drawing_area, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), drawing_area, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), drawing_area);
gtk_widget_show (drawing_area);
@@ -309,7 +309,7 @@ main (int argc, char *argv[])
/* .. And create some buttons */
button = gtk_button_new_with_label ("Quit");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
diff --git a/tests/testmultidisplay.c b/tests/testmultidisplay.c
index aacc430..464b88e 100644
--- a/tests/testmultidisplay.c
+++ b/tests/testmultidisplay.c
@@ -78,9 +78,9 @@ make_selection_dialog (GdkScreen * screen,
vbox = g_object_new (GTK_TYPE_BOX,
"orientation", GTK_ORIENTATION_VERTICAL,
NULL);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), entry);
gtk_widget_grab_focus (entry);
gtk_dialog_add_buttons (GTK_DIALOG (window),
diff --git a/tests/testorientable.c b/tests/testorientable.c
index 91ee753..6ac6988 100644
--- a/tests/testorientable.c
+++ b/tests/testorientable.c
@@ -63,28 +63,22 @@ main (int argc, char **argv)
orientables = g_list_prepend (orientables, box);
gtk_grid_attach (GTK_GRID (grid), box, 0, 1, 1, 1);
gtk_box_pack_start (GTK_BOX (box),
- gtk_button_new_with_label ("GtkBox 1"),
- TRUE);
+ gtk_button_new_with_label ("GtkBox 1"));
gtk_box_pack_start (GTK_BOX (box),
- gtk_button_new_with_label ("GtkBox 2"),
- TRUE);
+ gtk_button_new_with_label ("GtkBox 2"));
gtk_box_pack_start (GTK_BOX (box),
- gtk_button_new_with_label ("GtkBox 3"),
- TRUE);
+ gtk_button_new_with_label ("GtkBox 3"));
/* GtkButtonBox */
box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
orientables = g_list_prepend (orientables, box);
gtk_grid_attach (GTK_GRID (grid), box, 1, 1, 1, 1);
gtk_box_pack_start (GTK_BOX (box),
- gtk_button_new_with_label ("GtkButtonBox 1"),
- TRUE);
+ gtk_button_new_with_label ("GtkButtonBox 1"));
gtk_box_pack_start (GTK_BOX (box),
- gtk_button_new_with_label ("GtkButtonBox 2"),
- TRUE);
+ gtk_button_new_with_label ("GtkButtonBox 2"));
gtk_box_pack_start (GTK_BOX (box),
- gtk_button_new_with_label ("GtkButtonBox 3"),
- TRUE);
+ gtk_button_new_with_label ("GtkButtonBox 3"));
/* GtkSeparator */
box = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
diff --git a/tests/testoverlay.c b/tests/testoverlay.c
index aa0ae6b..774731c 100644
--- a/tests/testoverlay.c
+++ b/tests/testoverlay.c
@@ -464,12 +464,12 @@ test_input_stacking (void)
"But the entry does");
gtk_widget_set_margin_top (label, 8);
gtk_widget_set_margin_bottom (label, 8);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), label);
entry = gtk_entry_new ();
gtk_widget_set_margin_top (entry, 8);
gtk_widget_set_margin_bottom (entry, 8);
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), entry);
gtk_container_add (GTK_CONTAINER (win), overlay);
diff --git a/tests/testpixbuf-scale.c b/tests/testpixbuf-scale.c
index 3a5f809..aae1a84 100644
--- a/tests/testpixbuf-scale.c
+++ b/tests/testpixbuf-scale.c
@@ -108,13 +108,13 @@ main(int argc, char **argv)
NULL);
gtk_widget_set_halign (combo_box, GTK_ALIGN_START);
- gtk_box_pack_start (GTK_BOX (vbox), combo_box, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), combo_box);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
label = gtk_label_new ("Overall Alpha:");
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
adjustment = gtk_adjustment_new (overall_alpha, 0, 255, 1, 10, 0);
g_signal_connect (adjustment, "value_changed",
@@ -123,7 +123,7 @@ main(int argc, char **argv)
hscale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, adjustment);
gtk_scale_set_digits (GTK_SCALE (hscale), 0);
gtk_widget_set_hexpand (hscale, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), hscale, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), hscale);
/* Compute the size without the drawing area, so we know how big to make the default size */
gtk_widget_get_preferred_size ( (vbox),
@@ -131,7 +131,7 @@ main(int argc, char **argv)
darea = gtk_drawing_area_new ();
gtk_widget_set_hexpand (darea, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), darea, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), darea);
gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (darea), draw_func, NULL, NULL);
diff --git a/tests/testrecentchoosermenu.c b/tests/testrecentchoosermenu.c
index b3a65c0..ba0710a 100644
--- a/tests/testrecentchoosermenu.c
+++ b/tests/testrecentchoosermenu.c
@@ -167,7 +167,7 @@ main (int argc, char *argv[])
gtk_widget_show (box);
menubar = gtk_menu_bar_new ();
- gtk_box_pack_start (GTK_BOX (box), menubar, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), menubar);
gtk_widget_show (menubar);
menu = create_file_menu (accel_group);
@@ -183,14 +183,14 @@ main (int argc, char *argv[])
gtk_widget_show (menuitem);
label = gtk_label_new ("No recent item selected");
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
gtk_widget_show (label);
button = gtk_button_new_with_label ("Close");
g_signal_connect_swapped (button, "clicked",
G_CALLBACK (gtk_widget_destroy),
window);
- gtk_box_pack_end (GTK_BOX (box), button, TRUE);
+ gtk_box_pack_end (GTK_BOX (box), button);
gtk_widget_set_can_default (button, TRUE);
gtk_widget_grab_default (button);
gtk_widget_show (button);
diff --git a/tests/testscale.c b/tests/testscale.c
index b4065e5..61b5857 100644
--- a/tests/testscale.c
+++ b/tests/testscale.c
@@ -130,7 +130,7 @@ int main (int argc, char *argv[])
scales = g_slist_prepend (scales, scale);
gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
frame = gtk_frame_new ("With fill level");
scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
@@ -139,7 +139,7 @@ int main (int argc, char *argv[])
gtk_range_set_show_fill_level (GTK_RANGE (scale), TRUE);
gtk_range_set_fill_level (GTK_RANGE (scale), 50);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
frame = gtk_frame_new ("Simple marks");
extra_scale = scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
@@ -149,7 +149,7 @@ int main (int argc, char *argv[])
gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_BOTTOM, NULL);
gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_BOTTOM, NULL);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
frame = gtk_frame_new ("Simple marks up");
scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
@@ -159,7 +159,7 @@ int main (int argc, char *argv[])
gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_TOP, NULL);
gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_TOP, NULL);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
frame = gtk_frame_new ("Labeled marks");
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
@@ -171,7 +171,7 @@ int main (int argc, char *argv[])
gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_BOTTOM, labels[1]);
gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_BOTTOM, labels[2]);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
frame = gtk_frame_new ("Some labels");
scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
@@ -181,7 +181,7 @@ int main (int argc, char *argv[])
gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_TOP, NULL);
gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_TOP, labels[2]);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
frame = gtk_frame_new ("Above and below");
scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
@@ -192,7 +192,7 @@ int main (int argc, char *argv[])
gtk_scale_add_mark (GTK_SCALE (scale), bath_marks[2], GTK_POS_BOTTOM, bath_labels[2]);
gtk_scale_add_mark (GTK_SCALE (scale), bath_marks[3], GTK_POS_TOP, bath_labels[3]);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
frame = gtk_frame_new ("Positions");
scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
@@ -203,7 +203,7 @@ int main (int argc, char *argv[])
gtk_scale_add_mark (GTK_SCALE (scale), pos_marks[2], GTK_POS_TOP, pos_labels[2]);
gtk_scale_add_mark (GTK_SCALE (scale), pos_marks[3], GTK_POS_BOTTOM, pos_labels[3]);
gtk_container_add (GTK_CONTAINER (frame), scale);
- gtk_box_pack_start (GTK_BOX (box), frame, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), frame);
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_container_add (GTK_CONTAINER (box1), box2);
diff --git a/tests/testscrolledwindow.c b/tests/testscrolledwindow.c
index b2818cb..f205536 100644
--- a/tests/testscrolledwindow.c
+++ b/tests/testscrolledwindow.c
@@ -102,11 +102,11 @@ scrollable_policy (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);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox);
frame = gtk_frame_new ("Scrolled Window");
gtk_widget_set_hexpand (frame, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), frame);
swindow = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow),
@@ -140,7 +140,7 @@ scrollable_policy (void)
gtk_widget_show (cntl);
gtk_widget_show (expander);
gtk_container_add (GTK_CONTAINER (expander), cntl);
- gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), expander);
/* Add Horizontal policy control here */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
@@ -148,7 +148,7 @@ scrollable_policy (void)
widget = gtk_label_new ("hscroll-policy");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Minimum");
@@ -156,8 +156,8 @@ scrollable_policy (void)
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (cntl), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (cntl), hbox);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (horizontal_policy_changed), viewport);
@@ -168,7 +168,7 @@ scrollable_policy (void)
widget = gtk_label_new ("vscroll-policy");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Minimum");
@@ -176,8 +176,8 @@ scrollable_policy (void)
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (cntl), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (cntl), hbox);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (vertical_policy_changed), viewport);
@@ -187,12 +187,12 @@ scrollable_policy (void)
widget = gtk_label_new ("min-content-width");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_spin_button_new_with_range (100.0, 1000.0, 10.0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (cntl), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (cntl), hbox);
gtk_widget_show (widget);
gtk_widget_show (hbox);
@@ -203,12 +203,12 @@ scrollable_policy (void)
widget = gtk_label_new ("min-content-height");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_spin_button_new_with_range (100.0, 1000.0, 10.0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (cntl), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (cntl), hbox);
gtk_widget_show (widget);
gtk_widget_show (hbox);
@@ -221,7 +221,7 @@ scrollable_policy (void)
widget = gtk_label_new ("label-flip");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Horizontal");
@@ -229,8 +229,8 @@ scrollable_policy (void)
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (cntl), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (cntl), hbox);
g_signal_connect (G_OBJECT (widget), "changed",
G_CALLBACK (label_flip_changed), label);
@@ -238,7 +238,7 @@ scrollable_policy (void)
/* Add Kinetic scrolling control here */
widget = gtk_check_button_new_with_label ("Kinetic scrolling");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (cntl), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (cntl), widget);
g_signal_connect (G_OBJECT (widget), "toggled",
G_CALLBACK (kinetic_scrolling_changed), swindow);
@@ -250,7 +250,7 @@ scrollable_policy (void)
widget = gtk_menu_button_new ();
gtk_menu_button_set_popover (GTK_MENU_BUTTON (widget), popover);
gtk_container_add (GTK_CONTAINER (widget), gtk_label_new ("Popover"));
- gtk_box_pack_start (GTK_BOX (cntl), widget, FALSE);
+ gtk_box_pack_start (GTK_BOX (cntl), widget);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add (GTK_CONTAINER (popover), vbox);
@@ -260,7 +260,7 @@ scrollable_policy (void)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_box_pack_end (GTK_BOX (vbox), swindow, FALSE);
+ gtk_box_pack_end (GTK_BOX (vbox), swindow);
gtk_widget_show (swindow);
gtk_widget_show (hbox);
@@ -274,11 +274,11 @@ scrollable_policy (void)
widget = gtk_label_new ("min-content-width");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_spin_button_new_with_range (0.0, 150.0, 10.0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
g_object_bind_property (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget)),
"value",
@@ -288,13 +288,13 @@ scrollable_policy (void)
widget = gtk_label_new ("min-content-height");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_spin_button_new_with_range (0.0, 150.0, 10.0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
g_object_bind_property (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget)),
"value",
@@ -307,11 +307,11 @@ scrollable_policy (void)
widget = gtk_label_new ("max-content-width");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_spin_button_new_with_range (250.0, 1000.0, 10.0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
g_object_bind_property (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget)),
"value",
@@ -321,12 +321,12 @@ scrollable_policy (void)
widget = gtk_label_new ("max-content-height");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
widget = gtk_spin_button_new_with_range (250.0, 1000.0, 10.0);
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
g_object_bind_property (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget)),
"value",
@@ -339,15 +339,15 @@ scrollable_policy (void)
widget = gtk_button_new_with_label ("Remove");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
g_signal_connect (widget, "clicked",
G_CALLBACK (remove_row), listbox);
widget = gtk_button_new_with_label ("Add");
gtk_widget_set_hexpand (widget, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), widget);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
g_signal_connect (widget, "clicked",
G_CALLBACK (add_row), listbox);
diff --git a/tests/testselection.c b/tests/testselection.c
index e0aa482..e6d029a 100644
--- a/tests/testselection.c
+++ b/tests/testselection.c
@@ -418,7 +418,7 @@ main (int argc, char *argv[])
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
- gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (content_area), vbox);
gtk_widget_show (vbox);
selection_button = gtk_toggle_button_new_with_label ("Claim Selection");
@@ -449,12 +449,12 @@ main (int argc, char *argv[])
gtk_widget_show (hbox);
label = gtk_label_new ("Target:");
- gtk_box_pack_start (GTK_BOX(hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX(hbox), label);
gtk_widget_show (label);
entry = gtk_entry_new ();
gtk_widget_set_hexpand (entry, TRUE);
- gtk_box_pack_start (GTK_BOX(hbox), entry, TRUE);
+ gtk_box_pack_start (GTK_BOX(hbox), entry);
gtk_widget_show (entry);
/* .. And create some buttons */
diff --git a/tests/testsensitive.c b/tests/testsensitive.c
index 663ce1e..18306ce 100644
--- a/tests/testsensitive.c
+++ b/tests/testsensitive.c
@@ -65,15 +65,15 @@ int main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (window), box);
w = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 15);
- gtk_box_pack_start (GTK_BOX (box), w, TRUE);
- gtk_box_pack_start (GTK_BOX (w), gtk_entry_new (), TRUE);
+ gtk_box_pack_start (GTK_BOX (box), w);
+ gtk_box_pack_start (GTK_BOX (w), gtk_entry_new ());
bu = gtk_button_new_with_label ("Bu");
- gtk_box_pack_start (GTK_BOX (w), bu, TRUE);
+ gtk_box_pack_start (GTK_BOX (w), bu);
c = gtk_switch_new ();
gtk_switch_set_active (GTK_SWITCH (c), TRUE);
gtk_widget_set_halign (c, GTK_ALIGN_CENTER);
gtk_widget_set_valign (c, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (box), c, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), c);
g_signal_connect (bu, "clicked", G_CALLBACK (set_insensitive), w);
g_signal_connect (bu, "state-flags-changed", G_CALLBACK (state_flags_changed), NULL);
diff --git a/tests/testspinbutton.c b/tests/testspinbutton.c
index 91d0677..94e7fe0 100644
--- a/tests/testspinbutton.c
+++ b/tests/testspinbutton.c
@@ -57,7 +57,7 @@ prepare_window_for_orientation (GtkOrientation orientation)
gtk_widget_set_halign (GTK_WIDGET (spin), GTK_ALIGN_CENTER);
GtkWidget *hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- gtk_box_pack_start (GTK_BOX (hbox), spin, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), spin);
gtk_container_add (GTK_CONTAINER (mainbox), hbox);
}
diff --git a/tests/teststack.c b/tests/teststack.c
index fa06a34..e5d61eb 100644
--- a/tests/teststack.c
+++ b/tests/teststack.c
@@ -127,7 +127,7 @@ main (gint argc,
gtk_container_add (GTK_CONTAINER (window), box);
switcher = gtk_stack_switcher_new ();
- gtk_box_pack_start (GTK_BOX (box), switcher, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), switcher);
stack = gtk_stack_new ();
@@ -141,9 +141,9 @@ main (gint argc,
sidebar = gtk_stack_sidebar_new ();
gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), GTK_STACK (stack));
layout = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (layout), sidebar, FALSE);
+ gtk_box_pack_start (GTK_BOX (layout), sidebar);
gtk_widget_set_hexpand (stack, TRUE);
- gtk_box_pack_start (GTK_BOX (layout), stack, TRUE);
+ gtk_box_pack_start (GTK_BOX (layout), stack);
gtk_container_add (GTK_CONTAINER (box), layout);
diff --git a/tests/testswitch.c b/tests/testswitch.c
index 6a483be..4c80d36 100644
--- a/tests/testswitch.c
+++ b/tests/testswitch.c
@@ -26,12 +26,12 @@ make_switch (gboolean is_on,
sw = gtk_switch_new ();
gtk_switch_set_active (GTK_SWITCH (sw), is_on);
- gtk_box_pack_start (GTK_BOX (hbox), sw, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), sw);
gtk_widget_set_sensitive (sw, is_sensitive);
label = gtk_label_new (is_on ? "Enabled" : "Disabled");
gtk_widget_set_hexpand (label, TRUE);
- gtk_box_pack_end (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_end (GTK_BOX (hbox), label);
g_object_bind_property_full (sw, "active",
label, "label",
@@ -116,24 +116,24 @@ make_delayed_switch (gboolean is_on,
sw = gtk_switch_new ();
gtk_switch_set_active (GTK_SWITCH (sw), is_on);
- gtk_box_pack_start (GTK_BOX (hbox), sw, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), sw);
gtk_widget_set_sensitive (sw, is_sensitive);
g_signal_connect (sw, "state-set", G_CALLBACK (set_state), NULL);
spinner = gtk_spinner_new ();
- gtk_box_pack_start (GTK_BOX (hbox), spinner, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), spinner);
gtk_widget_set_opacity (spinner, 0.0);
check = gtk_check_button_new ();
- gtk_box_pack_end (GTK_BOX (hbox), check, TRUE);
+ gtk_box_pack_end (GTK_BOX (hbox), check);
g_object_bind_property (sw, "state",
check, "active",
G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
label = gtk_label_new (is_on ? "Enabled" : "Disabled");
gtk_widget_set_hexpand (label, TRUE);
- gtk_box_pack_end (GTK_BOX (hbox), label, TRUE);
+ gtk_box_pack_end (GTK_BOX (hbox), label);
g_object_bind_property_full (sw, "active",
label, "label",
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c
index 9ae1953..8b18e3e 100644
--- a/tests/testtoolbar.c
+++ b/tests/testtoolbar.c
@@ -509,19 +509,19 @@ main (gint argc, gchar **argv)
gtk_grid_attach (GTK_GRID (grid), hbox2, 1, 2, 1, 1);
checkbox = gtk_check_button_new_with_mnemonic("_Vertical");
- gtk_box_pack_start (GTK_BOX (hbox1), checkbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox1), checkbox);
g_signal_connect (checkbox, "toggled",
G_CALLBACK (change_orientation), toolbar);
checkbox = gtk_check_button_new_with_mnemonic("_Show Arrow");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), TRUE);
- gtk_box_pack_start (GTK_BOX (hbox1), checkbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox1), checkbox);
g_signal_connect (checkbox, "toggled",
G_CALLBACK (change_show_arrow), toolbar);
checkbox = gtk_check_button_new_with_mnemonic("_Set Toolbar Style:");
g_signal_connect (checkbox, "toggled", G_CALLBACK (set_toolbar_style_toggled), toolbar);
- gtk_box_pack_start (GTK_BOX (hbox1), checkbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox1), checkbox);
option_menu = gtk_combo_box_text_new ();
gtk_widget_set_sensitive (option_menu, FALSE);
@@ -531,13 +531,13 @@ main (gint argc, gchar **argv)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (option_menu), toolbar_styles[i]);
gtk_combo_box_set_active (GTK_COMBO_BOX (option_menu),
gtk_toolbar_get_style (GTK_TOOLBAR (toolbar)));
- gtk_box_pack_start (GTK_BOX (hbox2), option_menu, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox2), option_menu);
g_signal_connect (option_menu, "changed",
G_CALLBACK (change_toolbar_style), toolbar);
checkbox = gtk_check_button_new_with_mnemonic("_Set Icon Size:");
g_signal_connect (checkbox, "toggled", G_CALLBACK (set_icon_size_toggled), toolbar);
- gtk_box_pack_start (GTK_BOX (hbox2), checkbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox2), checkbox);
option_menu = gtk_combo_box_text_new ();
g_object_set_data (G_OBJECT (checkbox), "option-menu", option_menu);
@@ -545,7 +545,7 @@ main (gint argc, gchar **argv)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (option_menu), "small toolbar");
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (option_menu), "large toolbar");
- gtk_box_pack_start (GTK_BOX (hbox2), option_menu, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox2), option_menu);
g_signal_connect (option_menu, "changed",
G_CALLBACK (icon_size_history_changed), toolbar);
@@ -695,13 +695,13 @@ main (gint argc, gchar **argv)
gtk_grid_attach (GTK_GRID (grid), hbox, 1, 4, 1, 1);
button = gtk_button_new_with_label ("Drag me to the toolbar");
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
label = gtk_label_new ("Drop index:");
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
label = gtk_label_new ("");
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), label);
checkbox = gtk_check_button_new_with_mnemonic("_Right to left");
if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
@@ -710,7 +710,7 @@ main (gint argc, gchar **argv)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), FALSE);
g_signal_connect (checkbox, "toggled", G_CALLBACK (rtl_toggled), NULL);
- gtk_box_pack_end (GTK_BOX (hbox), checkbox, FALSE);
+ gtk_box_pack_end (GTK_BOX (hbox), checkbox);
gtk_drag_source_set (button, GDK_BUTTON1_MASK,
target_table, G_N_ELEMENTS (target_table),
diff --git a/tests/testtooltips.c b/tests/testtooltips.c
index 64bde2d..3d64b92 100644
--- a/tests/testtooltips.c
+++ b/tests/testtooltips.c
@@ -275,7 +275,7 @@ main (int argc, char *argv[])
/* A check button using the tooltip-markup property */
button = gtk_check_button_new_with_label ("This one uses the tooltip-markup property");
gtk_widget_set_tooltip_text (button, "Hello, I am a static tooltip.");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
text = gtk_widget_get_tooltip_text (button);
markup = gtk_widget_get_tooltip_markup (button);
@@ -288,13 +288,13 @@ main (int argc, char *argv[])
g_object_set (button, "has-tooltip", TRUE, NULL);
g_signal_connect (button, "query-tooltip",
G_CALLBACK (query_tooltip_cb), NULL);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
/* A label */
button = gtk_label_new ("I am just a label");
gtk_label_set_selectable (GTK_LABEL (button), FALSE);
gtk_widget_set_tooltip_text (button, "Label & and tooltip");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
text = gtk_widget_get_tooltip_text (button);
markup = gtk_widget_get_tooltip_markup (button);
@@ -306,7 +306,7 @@ main (int argc, char *argv[])
button = gtk_label_new ("I am a selectable label");
gtk_label_set_selectable (GTK_LABEL (button), TRUE);
gtk_widget_set_tooltip_markup (button, "<b>Another</b> Label tooltip");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
text = gtk_widget_get_tooltip_text (button);
markup = gtk_widget_get_tooltip_markup (button);
@@ -316,7 +316,7 @@ main (int argc, char *argv[])
/* Another one, with a custom tooltip window */
button = gtk_check_button_new_with_label ("This one has a custom tooltip window!");
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
tooltip_window = gtk_window_new (GTK_WINDOW_POPUP);
tooltip_button = gtk_label_new ("blaat!");
@@ -337,7 +337,7 @@ main (int argc, char *argv[])
button = gtk_button_new_with_label ("This one is insensitive");
gtk_widget_set_sensitive (button, FALSE);
g_object_set (button, "tooltip-text", "Insensitive!", NULL);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
/* Testcases from Kris without a tree view don't exist. */
tree_view = gtk_tree_view_new_with_model (create_model ());
@@ -360,7 +360,7 @@ main (int argc, char *argv[])
gtk_tree_view_column_set_clickable (column, TRUE);
g_object_set (gtk_tree_view_column_get_button (column), "tooltip-text", "Header", NULL);
- gtk_box_pack_start (GTK_BOX (box), tree_view, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), tree_view);
/* And a text view for Matthias */
buffer = gtk_text_buffer_new (NULL);
@@ -384,7 +384,7 @@ main (int argc, char *argv[])
g_signal_connect (text_view, "query-tooltip",
G_CALLBACK (query_tooltip_text_view_cb), tag);
- gtk_box_pack_start (GTK_BOX (box), text_view, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), text_view);
/* Drawing area */
drawing_area = gtk_drawing_area_new ();
@@ -395,7 +395,7 @@ main (int argc, char *argv[])
g_object_set (drawing_area, "has-tooltip", TRUE, NULL);
g_signal_connect (drawing_area, "query-tooltip",
G_CALLBACK (query_tooltip_drawing_area_cb), NULL);
- gtk_box_pack_start (GTK_BOX (box), drawing_area, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), drawing_area);
button = gtk_label_new ("Custom tooltip I");
label = gtk_label_new ("See, custom");
@@ -403,13 +403,13 @@ main (int argc, char *argv[])
g_object_set (button, "has-tooltip", TRUE, NULL);
g_signal_connect (button, "query-tooltip",
G_CALLBACK (query_tooltip_label_cb), label);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
button = gtk_label_new ("Custom tooltip II");
label = gtk_label_new ("See, custom, too");
g_object_ref_sink (label);
g_object_set (button, "has-tooltip", TRUE, NULL);
- gtk_box_pack_start (GTK_BOX (box), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), button);
g_signal_connect (button, "query-tooltip",
G_CALLBACK (query_tooltip_label_cb), label);
diff --git a/tests/testtoplevelembed.c b/tests/testtoplevelembed.c
index 4115bf9..d3aaea9 100644
--- a/tests/testtoplevelembed.c
+++ b/tests/testtoplevelembed.c
@@ -22,8 +22,8 @@ create_tab_label (GtkWidget *toplevel)
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_set_hexpand (label, TRUE);
- gtk_box_pack_start (GTK_BOX (box), label, TRUE);
- gtk_box_pack_start (GTK_BOX (box), button, TRUE);
+ gtk_box_pack_start (GTK_BOX (box), label);
+ gtk_box_pack_start (GTK_BOX (box), button);
g_signal_connect (button, "clicked",
G_CALLBACK (remove_notebook_page), toplevel);
diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c
index 1205943..7112643 100644
--- a/tests/testtreecolumns.c
+++ b/tests/testtreecolumns.c
@@ -768,7 +768,7 @@ main (int argc, char *argv[])
gtk_container_add (GTK_CONTAINER (window), vbox);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Left Pane */
cell = gtk_cell_renderer_text_new ();
@@ -785,52 +785,52 @@ main (int argc, char *argv[])
gtk_tree_view_append_column (GTK_TREE_VIEW (left_tree_view), column);
gtk_tree_view_column_set_cell_data_func (column, cell, get_visible, NULL, NULL);
- gtk_box_pack_start (GTK_BOX (hbox), swindow, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), swindow);
/* Middle Pane */
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
bbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_SPREAD);
- gtk_box_pack_start (GTK_BOX (vbox2), bbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), bbox);
button = gtk_button_new_with_mnemonic ("<< (_Q)");
gtk_widget_set_sensitive (button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (add_left_clicked), top_right_tree_view);
g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (top_right_tree_view)),
"changed", G_CALLBACK (selection_changed), button);
- gtk_box_pack_start (GTK_BOX (bbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_mnemonic (">> (_W)");
gtk_widget_set_sensitive (button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (add_right_clicked), top_right_tree_view);
g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (left_tree_view)),
"changed", G_CALLBACK (selection_changed), button);
- gtk_box_pack_start (GTK_BOX (bbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
bbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_SPREAD);
- gtk_box_pack_start (GTK_BOX (vbox2), bbox, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), bbox);
button = gtk_button_new_with_mnemonic ("<< (_E)");
gtk_widget_set_sensitive (button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (add_left_clicked), bottom_right_tree_view);
g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (bottom_right_tree_view)),
"changed", G_CALLBACK (selection_changed), button);
- gtk_box_pack_start (GTK_BOX (bbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
button = gtk_button_new_with_mnemonic (">> (_R)");
gtk_widget_set_sensitive (button, FALSE);
g_signal_connect (button, "clicked", G_CALLBACK (add_right_clicked), bottom_right_tree_view);
g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (left_tree_view)),
"changed", G_CALLBACK (selection_changed), button);
- gtk_box_pack_start (GTK_BOX (bbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (bbox), button);
/* Right Pane */
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox2);
swindow = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
@@ -845,7 +845,7 @@ main (int argc, char *argv[])
gtk_tree_view_append_column (GTK_TREE_VIEW (top_right_tree_view), column);
gtk_container_add (GTK_CONTAINER (swindow), top_right_tree_view);
- gtk_box_pack_start (GTK_BOX (vbox2), swindow, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), swindow);
swindow = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
@@ -859,7 +859,7 @@ main (int argc, char *argv[])
gtk_tree_view_column_set_cell_data_func (column, cell, get_visible, NULL, NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (bottom_right_tree_view), column);
gtk_container_add (GTK_CONTAINER (swindow), bottom_right_tree_view);
- gtk_box_pack_start (GTK_BOX (vbox2), swindow, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), swindow);
/* Drag and Drop */
@@ -894,14 +894,13 @@ main (int argc, char *argv[])
GDK_ACTION_MOVE);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL),
- FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_button_new_with_mnemonic ("_Add new Column");
g_signal_connect (button, "clicked", G_CALLBACK (add_clicked), left_tree_model);
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
gtk_widget_show (window);
gtk_main ();
diff --git a/tests/testtreecolumnsizing.c b/tests/testtreecolumnsizing.c
index 405415c..adf909d 100644
--- a/tests/testtreecolumnsizing.c
+++ b/tests/testtreecolumnsizing.c
@@ -190,7 +190,7 @@ main (int argc, char **argv)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), BORDER_EXPAND);
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), ALL_EXPAND);
- gtk_box_pack_start (GTK_BOX (vbox), combo_box, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), combo_box);
/* Scrolled window and tree view */
sw = gtk_scrolled_window_new (NULL, NULL);
@@ -198,7 +198,7 @@ main (int argc, char **argv)
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (sw, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), sw);
tree_view = gtk_tree_view_new_with_model (create_model ());
gtk_container_add (GTK_CONTAINER (sw), tree_view);
@@ -221,7 +221,7 @@ main (int argc, char **argv)
button = gtk_toggle_button_new_with_label ("Toggle long content row");
g_signal_connect (button, "toggled",
G_CALLBACK (toggle_long_content_row), tree_view);
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
/* Set up option menu callback and default item */
g_signal_connect (combo_box, "changed",
diff --git a/tests/testtreeedit.c b/tests/testtreeedit.c
index 8aa4469..e7faa61 100644
--- a/tests/testtreeedit.c
+++ b/tests/testtreeedit.c
@@ -210,7 +210,7 @@ create_control (GtkWidget *box, gint number, gint cntl, CallbackData *data)
checkbutton = gtk_check_button_new_with_label (name);
gtk_widget_show (checkbutton);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton), cntl == CNTL_FIXED);
- gtk_box_pack_start (GTK_BOX (box), checkbutton, FALSE);
+ gtk_box_pack_start (GTK_BOX (box), checkbutton);
g_signal_connect (G_OBJECT (checkbutton), "toggled", callback, data);
g_free (name);
@@ -247,7 +247,7 @@ main (gint argc, gchar **argv)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled_window, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_window);
tree_model = create_model ();
tree_view = gtk_tree_view_new_with_model (tree_model);
@@ -351,12 +351,12 @@ main (gint argc, gchar **argv)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_show (hbox);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
/* Alignment controls */
cntl_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
gtk_widget_show (cntl_vbox);
- gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox);
create_control (cntl_vbox, 1, CNTL_ALIGN, &callback[0]);
create_control (cntl_vbox, 2, CNTL_ALIGN, &callback[1]);
@@ -366,7 +366,7 @@ main (gint argc, gchar **argv)
/* Expand controls */
cntl_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
gtk_widget_show (cntl_vbox);
- gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox);
create_control (cntl_vbox, 1, CNTL_EXPAND, &callback[0]);
create_control (cntl_vbox, 2, CNTL_EXPAND, &callback[1]);
@@ -376,7 +376,7 @@ main (gint argc, gchar **argv)
/* Fixed controls */
cntl_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
gtk_widget_show (cntl_vbox);
- gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), cntl_vbox);
create_control (cntl_vbox, 1, CNTL_FIXED, &callback[0]);
create_control (cntl_vbox, 2, CNTL_FIXED, &callback[1]);
diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c
index 4a6c28a..60d6ff7 100644
--- a/tests/testtreeflow.c
+++ b/tests/testtreeflow.c
@@ -134,14 +134,14 @@ main (int argc, char *argv[])
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, 8);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Incremental Reflow Test"), FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Incremental Reflow Test"));
gtk_container_add (GTK_CONTAINER (window), vbox);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled_window, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_window);
initialize_model ();
tree_view = gtk_tree_view_new_with_model (model);
@@ -157,9 +157,9 @@ main (int argc, char *argv[])
NULL);
gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
button = gtk_button_new_with_mnemonic ("<b>_Futz!!</b>");
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
gtk_label_set_use_markup (GTK_LABEL (gtk_bin_get_child (GTK_BIN (button))), TRUE);
g_signal_connect (button, "clicked", G_CALLBACK (futz), NULL);
g_signal_connect (button, "realize", G_CALLBACK (gtk_widget_grab_focus), NULL);
diff --git a/tests/testtreefocus.c b/tests/testtreefocus.c
index 8d9a54e..5ba8a51 100644
--- a/tests/testtreefocus.c
+++ b/tests/testtreefocus.c
@@ -352,14 +352,14 @@ main (int argc, char *argv[])
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, 8);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Jonathan's Holiday Card Planning Sheet"), FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("Jonathan's Holiday Card Planning Sheet"));
gtk_container_add (GTK_CONTAINER (window), vbox);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_ETCHED_IN);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled_window, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_window);
model = make_model ();
tree_view = gtk_tree_view_new_with_model (model);
@@ -467,14 +467,14 @@ main (int argc, char *argv[])
gtk_window_set_title (GTK_WINDOW (window), "Model");
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
- gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("The model revealed"), FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new ("The model revealed"));
gtk_container_add (GTK_CONTAINER (window), vbox);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_ETCHED_IN);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled_window, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_window);
tree_view = gtk_tree_view_new_with_model (model);
diff --git a/tests/testtreesort.c b/tests/testtreesort.c
index 8cbcb98..72aa83a 100644
--- a/tests/testtreesort.c
+++ b/tests/testtreesort.c
@@ -122,20 +122,20 @@ main (int argc, char *argv[])
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, 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);
+ 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"));
gtk_container_add (GTK_CONTAINER (window), vbox);
entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), entry);
button = gtk_button_new_with_label ("Switch search method");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_ETCHED_IN);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled_window, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_window);
model = gtk_tree_store_new (NUM_COLUMNS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_INT);
@@ -251,8 +251,7 @@ main (int argc, char *argv[])
g_signal_connect (window2, "destroy", gtk_main_quit, NULL);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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"),
- FALSE);
+ gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort
wrapping the GtkTreeStore of window 1"));
gtk_container_add (GTK_CONTAINER (window2), vbox2);
scrolled_window2 = gtk_scrolled_window_new (NULL, NULL);
@@ -262,7 +261,7 @@ main (int argc, char *argv[])
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled_window2, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox2), scrolled_window2, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox2), scrolled_window2);
tree_view2 = gtk_tree_view_new_with_model (smodel);
@@ -321,8 +320,7 @@ main (int argc, char *argv[])
g_signal_connect (window3, "destroy", gtk_main_quit, NULL);
vbox3 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 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"),
- FALSE);
+ gtk_label_new ("Jonathan and Kristian's list of words.\n\nA GtkTreeModelSort
wrapping the GtkTreeModelSort of window 2"));
gtk_container_add (GTK_CONTAINER (window3), vbox3);
scrolled_window3 = gtk_scrolled_window_new (NULL, NULL);
@@ -332,7 +330,7 @@ main (int argc, char *argv[])
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand (scrolled_window3, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox3), scrolled_window3, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox3), scrolled_window3);
tree_view3 = gtk_tree_view_new_with_model (ssmodel);
diff --git a/tests/testwindowsize.c b/tests/testwindowsize.c
index 3bfd20f..495307e 100644
--- a/tests/testwindowsize.c
+++ b/tests/testwindowsize.c
@@ -61,7 +61,7 @@ show_dialog (void)
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- label, TRUE);
+ label);
gtk_widget_show (label);
label = gtk_label_new ("? x ?");
diff --git a/tests/treestoretest.c b/tests/treestoretest.c
index a33bcb5..34fcb07 100644
--- a/tests/treestoretest.c
+++ b/tests/treestoretest.c
@@ -329,7 +329,7 @@ make_window (gint view_type)
/* Put them together */
gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view);
gtk_widget_set_vexpand (scrolled_window, TRUE);
- gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_window);
gtk_container_add (GTK_CONTAINER (window), vbox);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
@@ -338,7 +338,7 @@ make_window (gint view_type)
/* buttons */
button = gtk_button_new_with_label ("gtk_tree_store_remove");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (selection, "changed",
G_CALLBACK (selection_changed),
button);
@@ -350,9 +350,9 @@ make_window (gint view_type)
button = gtk_button_new_with_label ("gtk_tree_store_insert");
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
g_object_set_data (G_OBJECT (button), "user_data", entry);
g_signal_connect (button, "clicked",
G_CALLBACK (iter_insert),
@@ -361,9 +361,9 @@ make_window (gint view_type)
button = gtk_button_new_with_label ("gtk_tree_store_set");
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
g_object_set_data (G_OBJECT (button), "user_data", entry);
g_signal_connect (button, "clicked",
G_CALLBACK (iter_change),
@@ -372,16 +372,16 @@ make_window (gint view_type)
button = gtk_button_new_with_label ("gtk_tree_store_insert_with_values");
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE);
- gtk_box_pack_start (GTK_BOX (hbox), button, TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox);
+ gtk_box_pack_start (GTK_BOX (hbox), button);
+ gtk_box_pack_start (GTK_BOX (hbox), entry);
g_object_set_data (G_OBJECT (button), "user_data", entry);
g_signal_connect (button, "clicked",
G_CALLBACK (iter_insert_with_values),
tree_view);
button = gtk_button_new_with_label ("gtk_tree_store_insert_before");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (iter_insert_before),
tree_view);
@@ -391,7 +391,7 @@ make_window (gint view_type)
gtk_widget_set_sensitive (button, FALSE);
button = gtk_button_new_with_label ("gtk_tree_store_insert_after");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (iter_insert_after),
tree_view);
@@ -401,13 +401,13 @@ make_window (gint view_type)
gtk_widget_set_sensitive (button, FALSE);
button = gtk_button_new_with_label ("gtk_tree_store_prepend");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (iter_prepend),
tree_view);
button = gtk_button_new_with_label ("gtk_tree_store_append");
- gtk_box_pack_start (GTK_BOX (vbox), button, FALSE);
+ gtk_box_pack_start (GTK_BOX (vbox), button);
g_signal_connect (button, "clicked",
G_CALLBACK (iter_append),
tree_view);
diff --git a/testsuite/a11y/placeholder-text.ui b/testsuite/a11y/placeholder-text.ui
index c56ce4b..264754f 100644
--- a/testsuite/a11y/placeholder-text.ui
+++ b/testsuite/a11y/placeholder-text.ui
@@ -18,7 +18,6 @@
<property name="placeholder_text">Subject or Addresses contain</property>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
@@ -32,7 +31,6 @@
<property name="placeholder_text">Message contains</property>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
@@ -47,7 +45,6 @@
<property name="placeholder_text">Body contains</property>
</object>
<packing>
- <property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
diff --git a/testsuite/gtk/ui/container1.ui b/testsuite/gtk/ui/container1.ui
index 89ab6cd..f32f512 100644
--- a/testsuite/gtk/ui/container1.ui
+++ b/testsuite/gtk/ui/container1.ui
@@ -4,7 +4,7 @@
<child>
<object class="GtkLabel" id="widget1"/>
<packing>
- <property name="fill" translatable="yes" comments="foo" context="bar">True</property>
+ <property name="position" translatable="yes" comments="foo" context="bar">1</property>
</packing>
</child>
<focus-chain>
diff --git a/testsuite/gtk/ui/container8.ui b/testsuite/gtk/ui/container8.ui
index 11708ab..f3ed4f1 100644
--- a/testsuite/gtk/ui/container8.ui
+++ b/testsuite/gtk/ui/container8.ui
@@ -4,7 +4,7 @@
<child>
<object class="GtkLabel" id="widget1"/>
<packing>
- <property name="fill" translatable="yes" comments="foo" context="bar">True</property>
+ <property name="position" translatable="yes" comments="foo" context="bar">1</property>
</packing>
</child>
<focus-chain>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]