diff options
author | Michael Natterer <mitch@gimp.org> | 2010-10-31 18:07:20 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-02 12:04:35 +0900 |
commit | 260ccdfebef9e17842dcc162aefba46fe5459c7c (patch) | |
tree | 52e18d59f343ae23c75a7cf186009b27237a11c3 /demos | |
parent | c50f79041776098cecc4b65bbe4305173dff0847 (diff) | |
download | gtk+-260ccdfebef9e17842dcc162aefba46fe5459c7c.tar.gz |
gtk: remove "gboolean homogeneous" from gtk_box_new()
Because it's FALSE in virtually all use cases.
Diffstat (limited to 'demos')
33 files changed, 65 insertions, 62 deletions
diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c index c753d9068f..09f48d4653 100644 --- a/demos/gtk-demo/assistant.c +++ b/demos/gtk-demo/assistant.c @@ -94,7 +94,7 @@ create_page1 (GtkWidget *assistant) GtkWidget *box, *label, *entry; GdkPixbuf *pixbuf; - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 12); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12); gtk_container_set_border_width (GTK_CONTAINER (box), 12); label = gtk_label_new ("You must fill out this entry to continue:"); @@ -121,7 +121,7 @@ create_page2 (GtkWidget *assistant) GtkWidget *box, *checkbutton; GdkPixbuf *pixbuf; - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12, FALSE); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12); gtk_container_set_border_width (GTK_CONTAINER (box), 12); checkbutton = gtk_check_button_new_with_label ("This is optional data, you may continue " diff --git a/demos/gtk-demo/button_box.c b/demos/gtk-demo/button_box.c index 71f6ced912..89c37c40e7 100644 --- a/demos/gtk-demo/button_box.c +++ b/demos/gtk-demo/button_box.c @@ -63,13 +63,13 @@ do_button_box (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 10); - main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), main_vbox); frame_horz = gtk_frame_new ("Horizontal Button Boxes"); gtk_box_pack_start (GTK_BOX (main_vbox), frame_horz, TRUE, TRUE, 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 10); gtk_container_add (GTK_CONTAINER (frame_horz), vbox); @@ -92,7 +92,7 @@ do_button_box (GtkWidget *do_widget) frame_vert = gtk_frame_new ("Vertical Button Boxes"); gtk_box_pack_start (GTK_BOX (main_vbox), frame_vert, TRUE, TRUE, 10); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 10); gtk_container_add (GTK_CONTAINER (frame_vert), hbox); diff --git a/demos/gtk-demo/changedisplay.c b/demos/gtk-demo/changedisplay.c index a3b523c987..2e3d503f66 100644 --- a/demos/gtk-demo/changedisplay.c +++ b/demos/gtk-demo/changedisplay.c @@ -357,7 +357,7 @@ create_frame (ChangeDisplayInfo *info, *frame = gtk_frame_new (title); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_container_set_border_width (GTK_CONTAINER (hbox), 8); gtk_container_add (GTK_CONTAINER (*frame), hbox); @@ -375,7 +375,7 @@ create_frame (ChangeDisplayInfo *info, selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (*tree_view)); gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE); - *button_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + *button_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (hbox), *button_vbox, FALSE, FALSE, 0); if (!info->size_group) @@ -624,7 +624,7 @@ do_changedisplay (GtkWidget *do_widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (info->window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); diff --git a/demos/gtk-demo/clipboard.c b/demos/gtk-demo/clipboard.c index 8525320475..e77b88c9b2 100644 --- a/demos/gtk-demo/clipboard.c +++ b/demos/gtk-demo/clipboard.c @@ -210,7 +210,7 @@ do_clipboard (GtkWidget *do_widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); @@ -219,7 +219,7 @@ do_clipboard (GtkWidget *do_widget) gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 4); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); gtk_container_set_border_width (GTK_CONTAINER (hbox), 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); @@ -236,7 +236,7 @@ do_clipboard (GtkWidget *do_widget) label = gtk_label_new ("\"Paste\" will paste the text from the clipboard to the entry"); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 4); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); gtk_container_set_border_width (GTK_CONTAINER (hbox), 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); @@ -253,7 +253,7 @@ do_clipboard (GtkWidget *do_widget) label = gtk_label_new ("Images can be transferred via the clipboard, too"); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 4); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); gtk_container_set_border_width (GTK_CONTAINER (hbox), 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); diff --git a/demos/gtk-demo/colorsel.c b/demos/gtk-demo/colorsel.c index 3d5d55a2a8..eacfa17d38 100644 --- a/demos/gtk-demo/colorsel.c +++ b/demos/gtk-demo/colorsel.c @@ -85,7 +85,7 @@ do_colorsel (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 8); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); diff --git a/demos/gtk-demo/combobox.c b/demos/gtk-demo/combobox.c index a238a62619..b0f45d310d 100644 --- a/demos/gtk-demo/combobox.c +++ b/demos/gtk-demo/combobox.c @@ -345,7 +345,7 @@ do_combobox (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 2); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_add (GTK_CONTAINER (window), vbox); /* A combobox demonstrating cell renderers, separators and @@ -354,7 +354,7 @@ do_combobox (GtkWidget *do_widget) frame = gtk_frame_new ("Some stock icons"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (box), 5); gtk_container_add (GTK_CONTAINER (frame), box); @@ -395,7 +395,7 @@ do_combobox (GtkWidget *do_widget) frame = gtk_frame_new ("Where are we ?"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (box), 5); gtk_container_add (GTK_CONTAINER (frame), box); @@ -424,7 +424,7 @@ do_combobox (GtkWidget *do_widget) frame = gtk_frame_new ("Editable"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_set_border_width (GTK_CONTAINER (box), 5); gtk_container_add (GTK_CONTAINER (frame), box); diff --git a/demos/gtk-demo/dialog.c b/demos/gtk-demo/dialog.c index 741f9bf93d..1b86ce2b12 100644 --- a/demos/gtk-demo/dialog.c +++ b/demos/gtk-demo/dialog.c @@ -54,7 +54,7 @@ interactive_dialog_clicked (GtkButton *button, content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_container_set_border_width (GTK_CONTAINER (hbox), 8); gtk_box_pack_start (GTK_BOX (content_area), hbox, FALSE, FALSE, 0); @@ -120,12 +120,12 @@ do_dialog (GtkWidget *do_widget) frame = gtk_frame_new ("Dialogs"); gtk_container_add (GTK_CONTAINER (window), frame); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (frame), vbox); /* Standard message dialog */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); button = gtk_button_new_with_mnemonic ("_Message Dialog"); g_signal_connect (button, "clicked", @@ -136,9 +136,9 @@ do_dialog (GtkWidget *do_widget) FALSE, FALSE, 0); /* Interactive dialog*/ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); button = gtk_button_new_with_mnemonic ("_Interactive Dialog"); g_signal_connect (button, "clicked", diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c index db5a62d97f..bd9b1e9aca 100644 --- a/demos/gtk-demo/drawingarea.c +++ b/demos/gtk-demo/drawingarea.c @@ -216,7 +216,7 @@ do_drawingarea (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 8); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); diff --git a/demos/gtk-demo/editable_cells.c b/demos/gtk-demo/editable_cells.c index 1975e06b2e..e8489f1520 100644 --- a/demos/gtk-demo/editable_cells.c +++ b/demos/gtk-demo/editable_cells.c @@ -332,7 +332,7 @@ do_editable_cells (GtkWidget *do_widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_box_pack_start (GTK_BOX (vbox), @@ -365,7 +365,8 @@ do_editable_cells (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (sw), treeview); /* some buttons */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, TRUE, 4); + 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, FALSE, 0); button = gtk_button_new_with_label ("Add item"); diff --git a/demos/gtk-demo/entry_buffer.c b/demos/gtk-demo/entry_buffer.c index a9e775e31b..366ac533ea 100644 --- a/demos/gtk-demo/entry_buffer.c +++ b/demos/gtk-demo/entry_buffer.c @@ -34,7 +34,7 @@ do_entry_buffer (GtkWidget *do_widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); diff --git a/demos/gtk-demo/entry_completion.c b/demos/gtk-demo/entry_completion.c index da2e844abb..6f4e4f7751 100644 --- a/demos/gtk-demo/entry_completion.c +++ b/demos/gtk-demo/entry_completion.c @@ -61,7 +61,7 @@ do_entry_completion (GtkWidget *do_widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); diff --git a/demos/gtk-demo/expander.c b/demos/gtk-demo/expander.c index 700caee74a..44be2cf0bb 100644 --- a/demos/gtk-demo/expander.c +++ b/demos/gtk-demo/expander.c @@ -35,7 +35,7 @@ do_expander (GtkWidget *do_widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); diff --git a/demos/gtk-demo/iconview.c b/demos/gtk-demo/iconview.c index 49985ee307..9984eab439 100644 --- a/demos/gtk-demo/iconview.c +++ b/demos/gtk-demo/iconview.c @@ -300,7 +300,7 @@ do_iconview (GtkWidget *do_widget) GtkWidget *tool_bar; GtkToolItem *home_button; - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); tool_bar = gtk_toolbar_new (); diff --git a/demos/gtk-demo/images.c b/demos/gtk-demo/images.c index acd382f757..8ff6b1490e 100644 --- a/demos/gtk-demo/images.c +++ b/demos/gtk-demo/images.c @@ -335,7 +335,7 @@ do_images (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 8); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); diff --git a/demos/gtk-demo/infobar.c b/demos/gtk-demo/infobar.c index 11a5cd04b7..c9f06b977e 100644 --- a/demos/gtk-demo/infobar.c +++ b/demos/gtk-demo/infobar.c @@ -44,7 +44,7 @@ do_infobar (GtkWidget *do_widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); gtk_container_set_border_width (GTK_CONTAINER (window), 8); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); bar = gtk_info_bar_new (); @@ -81,7 +81,7 @@ do_infobar (GtkWidget *do_widget) frame = gtk_frame_new ("Info bars"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 8); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 8); gtk_container_add (GTK_CONTAINER (frame), vbox2); diff --git a/demos/gtk-demo/list_store.c b/demos/gtk-demo/list_store.c index 716fb8d075..72cecb9316 100644 --- a/demos/gtk-demo/list_store.c +++ b/demos/gtk-demo/list_store.c @@ -266,7 +266,7 @@ do_list_store (GtkWidget *do_widget) G_CALLBACK (gtk_widget_destroyed), &window); gtk_container_set_border_width (GTK_CONTAINER (window), 8); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); 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)."); diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c index 68b45874cc..e0c9fb896a 100644 --- a/demos/gtk-demo/main.c +++ b/demos/gtk-demo/main.c @@ -954,7 +954,7 @@ main (int argc, char **argv) g_signal_connect_after (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (window), hbox); tree = create_tree (); diff --git a/demos/gtk-demo/menus.c b/demos/gtk-demo/menus.c index f8af4f974d..316e853015 100644 --- a/demos/gtk-demo/menus.c +++ b/demos/gtk-demo/menus.c @@ -146,11 +146,11 @@ do_menus (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 0); - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (window), box); gtk_widget_show (box); - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (box), box1); gtk_widget_show (box1); @@ -176,7 +176,7 @@ do_menus (GtkWidget *do_widget) gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem); gtk_widget_show (menuitem); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); gtk_widget_show (box2); diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index 6a11786b85..12f7c045a7 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -560,7 +560,7 @@ do_offscreen_window (GtkWidget *do_widget) gtk_widget_modify_bg (window, GTK_STATE_NORMAL, &black); gtk_container_set_border_width (GTK_CONTAINER (window), 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, G_PI/2, 0.01); gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE); diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c index 4255870f4a..0774411074 100644 --- a/demos/gtk-demo/offscreen_window2.c +++ b/demos/gtk-demo/offscreen_window2.c @@ -461,13 +461,13 @@ do_offscreen_window2 (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 10); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0, FALSE); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); bin = gtk_mirror_bin_new (); group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 6); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); backbutton = gtk_button_new (); gtk_container_add (GTK_CONTAINER (backbutton), gtk_image_new_from_stock (GTK_STOCK_GO_BACK, 4)); diff --git a/demos/gtk-demo/panes.c b/demos/gtk-demo/panes.c index 52a1a5ea18..63ac757881 100644 --- a/demos/gtk-demo/panes.c +++ b/demos/gtk-demo/panes.c @@ -153,9 +153,9 @@ do_panes (GtkWidget *do_widget) gtk_window_set_title (GTK_WINDOW (window), "Panes"); gtk_container_set_border_width (GTK_CONTAINER (window), 0); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); - + vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL); gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER(vpaned), 5); diff --git a/demos/gtk-demo/rotated_text.c b/demos/gtk-demo/rotated_text.c index 97704e7740..ab6ac71a7f 100644 --- a/demos/gtk-demo/rotated_text.c +++ b/demos/gtk-demo/rotated_text.c @@ -190,7 +190,8 @@ do_rotated_text (GtkWidget *do_widget) gtk_window_set_default_size (GTK_WINDOW (window), 4 * RADIUS, 2 * RADIUS); g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, TRUE, 0); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_set_homogeneous (GTK_BOX (box), TRUE); gtk_container_add (GTK_CONTAINER (window), box); /* Add a drawing area */ diff --git a/demos/gtk-demo/search_entry.c b/demos/gtk-demo/search_entry.c index 56cfc1b516..8a6d37107b 100644 --- a/demos/gtk-demo/search_entry.c +++ b/demos/gtk-demo/search_entry.c @@ -266,7 +266,7 @@ do_search_entry (GtkWidget *do_widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); @@ -274,7 +274,7 @@ do_search_entry (GtkWidget *do_widget) gtk_label_set_markup (GTK_LABEL (label), "Search entry demo"); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 10); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 0); diff --git a/demos/gtk-demo/sizegroup.c b/demos/gtk-demo/sizegroup.c index db38f653b6..e7a8595d15 100644 --- a/demos/gtk-demo/sizegroup.c +++ b/demos/gtk-demo/sizegroup.c @@ -118,7 +118,7 @@ do_sizegroup (GtkWidget *do_widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); diff --git a/demos/gtk-demo/spinner.c b/demos/gtk-demo/spinner.c index 878cbd7e8a..797064bc02 100644 --- a/demos/gtk-demo/spinner.c +++ b/demos/gtk-demo/spinner.c @@ -50,12 +50,12 @@ do_spinner (GtkWidget *do_widget) content_area = gtk_dialog_get_content_area (GTK_DIALOG (window)); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 5); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5); gtk_box_pack_start (GTK_BOX (content_area), vbox, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); /* Sensitive */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); spinner = gtk_spinner_new (); gtk_container_add (GTK_CONTAINER (hbox), spinner); gtk_container_add (GTK_CONTAINER (hbox), gtk_entry_new ()); @@ -63,7 +63,7 @@ do_spinner (GtkWidget *do_widget) spinner_sensitive = spinner; /* Disabled */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); spinner = gtk_spinner_new (); gtk_container_add (GTK_CONTAINER (hbox), spinner); gtk_container_add (GTK_CONTAINER (hbox), gtk_entry_new ()); diff --git a/demos/gtk-demo/stock_browser.c b/demos/gtk-demo/stock_browser.c index 583fa91555..e6fed81dd4 100644 --- a/demos/gtk-demo/stock_browser.c +++ b/demos/gtk-demo/stock_browser.c @@ -417,7 +417,7 @@ do_stock_browser (GtkWidget *do_widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); gtk_container_set_border_width (GTK_CONTAINER (window), 8); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 8); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8); gtk_container_add (GTK_CONTAINER (window), hbox); sw = gtk_scrolled_window_new (NULL, NULL); @@ -486,7 +486,7 @@ do_stock_browser (GtkWidget *do_widget) frame = gtk_frame_new ("Selected Item"); gtk_container_add (GTK_CONTAINER (align), frame); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 4); gtk_container_add (GTK_CONTAINER (frame), vbox); diff --git a/demos/gtk-demo/textscroll.c b/demos/gtk-demo/textscroll.c index 244a7f33e1..b9fca9e936 100644 --- a/demos/gtk-demo/textscroll.c +++ b/demos/gtk-demo/textscroll.c @@ -184,7 +184,8 @@ do_textscroll (GtkWidget *do_widget) G_CALLBACK (gtk_widget_destroyed), &window); gtk_window_set_default_size (GTK_WINDOW (window), 600, 400); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, TRUE, 6); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); + gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE); gtk_container_add (GTK_CONTAINER (window), hbox); create_text_view (hbox, TRUE); diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c index f7ed51ea59..2431d6a4fe 100644 --- a/demos/gtk-demo/toolpalette.c +++ b/demos/gtk-demo/toolpalette.c @@ -438,7 +438,7 @@ do_toolpalette (GtkWidget *do_widget) gtk_container_set_border_width (GTK_CONTAINER (window), 8); /* Add widgets to control the ToolPalette appearance: */ - box = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 6); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); gtk_container_add (GTK_CONTAINER (window), box); /* Orientation combo box: */ @@ -507,7 +507,7 @@ do_toolpalette (GtkWidget *do_widget) gtk_box_pack_start (GTK_BOX (box), combo_style, FALSE, FALSE, 0); /* Add hbox */ - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 5); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5); gtk_box_pack_start (GTK_BOX (box), hbox, TRUE, TRUE, 0); /* Add and fill the ToolPalette: */ diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c index c3dfe14909..8c03e39767 100644 --- a/demos/gtk-demo/tree_store.c +++ b/demos/gtk-demo/tree_store.c @@ -402,7 +402,7 @@ do_tree_store (GtkWidget *do_widget) g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); diff --git a/demos/gtk-demo/ui_manager.c b/demos/gtk-demo/ui_manager.c index f131a4469c..76ea246c76 100644 --- a/demos/gtk-demo/ui_manager.c +++ b/demos/gtk-demo/ui_manager.c @@ -196,7 +196,7 @@ do_ui_manager (GtkWidget *do_widget) g_error_free (error); } - box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), box1); gtk_box_pack_start (GTK_BOX (box1), @@ -213,7 +213,7 @@ do_ui_manager (GtkWidget *do_widget) gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0); - box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 10); + box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_container_set_border_width (GTK_CONTAINER (box2), 10); gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0); diff --git a/demos/testanimation.c b/demos/testanimation.c index 3cdc011267..4d00a9d807 100644 --- a/demos/testanimation.c +++ b/demos/testanimation.c @@ -323,7 +323,7 @@ do_image (const char *filename) gtk_container_set_border_width (GTK_CONTAINER (window), 8); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); @@ -384,7 +384,7 @@ do_nonprogressive (const gchar *filename) gtk_container_set_border_width (GTK_CONTAINER (window), 8); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 8); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_container_set_border_width (GTK_CONTAINER (vbox), 8); gtk_container_add (GTK_CONTAINER (window), vbox); diff --git a/demos/testpixbuf-save.c b/demos/testpixbuf-save.c index cf1e4f4ac2..35ef367474 100644 --- a/demos/testpixbuf-save.c +++ b/demos/testpixbuf-save.c @@ -365,7 +365,7 @@ main (int argc, char **argv) g_signal_connect (window, "destroy", G_CALLBACK (close_app), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); drawing_area = gtk_drawing_area_new (); diff --git a/demos/testpixbuf-scale.c b/demos/testpixbuf-scale.c index 5a977bbe4b..ee57763c84 100644 --- a/demos/testpixbuf-scale.c +++ b/demos/testpixbuf-scale.c @@ -98,7 +98,7 @@ main(int argc, char **argv) g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window), vbox); combo_box = gtk_combo_box_text_new (); @@ -117,7 +117,7 @@ main(int argc, char **argv) alignment = gtk_alignment_new (0.0, 0.0, 0.0, 0.5); gtk_box_pack_start (GTK_BOX (vbox), alignment, FALSE, FALSE, 0); - hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 4); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new ("Overall Alpha:"); |