Convert gtk_(h|v)box_new to gtk_box_new

This commit is contained in:
Paul Dicker
2025-04-07 10:27:10 +02:00
committed by Stéphane Lesimple
parent cc9f4dd817
commit 5ea0011dce
12 changed files with 144 additions and 137 deletions

View File

@@ -256,7 +256,7 @@ static GtkWidget *create_button(char *label, char *icon)
button = gtk_button_new();
box = gtk_vbox_new(FALSE, 0);
box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
image = gtk_image_new_from_stock(icon, GTK_ICON_SIZE_LARGE_TOOLBAR);
lab = gtk_label_new(utf_label);
g_free(utf_label);
@@ -275,8 +275,9 @@ static GtkWidget* create_action_bar(GtkNotebook *notebook)
int window_number = FIRST_CREATE_WINDOW;
unsigned int i;
outer_vbox = gtk_vbox_new(TRUE, 0);
vbox = gtk_vbox_new(FALSE, 0); /* needed for vertical spacing */
outer_vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
gtk_box_set_homogeneous(GTK_BOX(outer_vbox), TRUE);
vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); /* needed for vertical spacing */
gtk_box_pack_start(GTK_BOX(outer_vbox), vbox, TRUE, TRUE, 3);
/*** Read */
@@ -287,12 +288,12 @@ static GtkWidget* create_action_bar(GtkNotebook *notebook)
GuiAttachTooltip(wid, _("tooltip|Read Image"),
_("Reads an optical disc image into a file (or tries to complete an existing image file)."));
content = gtk_vbox_new(FALSE, 0); /* read linear window */
content = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); /* read linear window */
ignore = gtk_label_new("read_tab_l");
gtk_notebook_append_page(notebook, content, ignore);
GuiCreateLinearReadWindow(content);
content = gtk_vbox_new(FALSE, 0); /* read adaptive window */
content = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); /* read adaptive window */
ignore = gtk_label_new("read_tab_a");
gtk_notebook_append_page(notebook, content, ignore);
GuiCreateAdaptiveReadWindow(content);
@@ -362,21 +363,21 @@ static GtkWidget* create_action_bar(GtkNotebook *notebook)
/* Create window */
content = gtk_vbox_new(FALSE, 0);
content = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
ignore = gtk_label_new("create_tab");
gtk_notebook_append_page(notebook, content, ignore);
method->createCreateWindow(method, content);
/* Fix window */
content = gtk_vbox_new(FALSE, 0);
content = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
ignore = gtk_label_new("fix_tab");
gtk_notebook_append_page(notebook, content, ignore);
method->createFixWindow(method, content);
/* Verify window */
content = gtk_vbox_new(FALSE, 0);
content = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
ignore = gtk_label_new("verify_tab");
gtk_notebook_append_page(notebook, content, ignore);
method->createVerifyWindow(method, content);
@@ -441,7 +442,7 @@ void GuiCreateMainWindow(int *argc, char ***argv)
/*** Create the sub parts of the GUI */
outer_box = gtk_vbox_new(FALSE, 0);
outer_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add(GTK_CONTAINER(window), outer_box);
/* Menu and tool bar */
@@ -460,7 +461,7 @@ void GuiCreateMainWindow(int *argc, char ***argv)
sep = gtk_hseparator_new();
gtk_box_pack_start(GTK_BOX(outer_box), sep, FALSE, FALSE, 0);
middle_box = gtk_hbox_new(FALSE, 0);
middle_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start(GTK_BOX(outer_box), middle_box, TRUE, TRUE, 0);
wid = Closure->notebook = gtk_notebook_new();
@@ -478,7 +479,7 @@ void GuiCreateMainWindow(int *argc, char ***argv)
/* Status bar enclosure */
status_box = gtk_hbox_new(FALSE, 0);
status_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_end(GTK_BOX(outer_box), status_box, FALSE, FALSE, 0);
sep = gtk_hseparator_new();
@@ -499,7 +500,7 @@ void GuiCreateMainWindow(int *argc, char ***argv)
_("tooltip|Protocol for current action"),
_("Displays additional information created during the current or last action."));
box = gtk_hbox_new(FALSE, 0);
box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add(GTK_CONTAINER(button), box);
icon = gtk_image_new_from_stock("dvdisaster-gtk-index", GTK_ICON_SIZE_SMALL_TOOLBAR);