Commit 38fd77f5 authored by Michael Natterer's avatar Michael Natterer 😴

plug-ins: some more s/gtk_container_add/gtk_box_pack_start/

parent 97a73ea8
......@@ -794,7 +794,7 @@ bumpmap_dialog (void)
gtk_widget_show (vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
gtk_container_add (GTK_CONTAINER (hbox), preview);
gtk_box_pack_start (GTK_BOX (hbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect (preview, "invalidated",
......@@ -813,7 +813,7 @@ bumpmap_dialog (void)
gtk_widget_show (vbox);
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (hbox), vbox);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
table = gtk_table_new (12, 3, FALSE);
......
......@@ -665,7 +665,7 @@ cm_dialog (CmParamsType *mix,
gtk_widget_show (hbox);
button = gtk_button_new_from_stock (GTK_STOCK_OPEN);
gtk_container_add (GTK_CONTAINER (hbox), button);
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
gtk_widget_show (button);
g_signal_connect (button, "clicked",
......@@ -673,7 +673,7 @@ cm_dialog (CmParamsType *mix,
mix);
button = gtk_button_new_from_stock (GTK_STOCK_SAVE);
gtk_container_add (GTK_CONTAINER (hbox), button);
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
gtk_widget_show (button);
g_signal_connect (button, "clicked",
......@@ -681,7 +681,7 @@ cm_dialog (CmParamsType *mix,
mix);
button = gtk_button_new_from_stock (GIMP_STOCK_RESET);
gtk_container_add (GTK_CONTAINER (hbox), button);
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
gtk_widget_show (button);
g_signal_connect (button, "clicked",
......
......@@ -365,7 +365,7 @@ checkerboard_dialog (gint32 image_ID,
gtk_widget_show (vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
gtk_container_add (GTK_CONTAINER (vbox), preview);
gtk_box_pack_start (GTK_BOX (vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (do_checkerboard_pattern),
......
......@@ -657,7 +657,7 @@ remap_dialog (gint32 image_ID,
iconview = gtk_icon_view_new_with_model (GTK_TREE_MODEL (store));
g_object_unref (store);
gtk_container_add (GTK_CONTAINER (vbox), iconview);
gtk_box_pack_start (GTK_BOX (vbox), iconview, TRUE, TRUE, 0);
gtk_icon_view_set_selection_mode (GTK_ICON_VIEW (iconview),
GTK_SELECTION_SINGLE);
......
......@@ -1254,7 +1254,7 @@ bender_new_dialog (GimpDrawable *drawable)
/* Left side column */
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_add (GTK_CONTAINER (main_hbox), vbox);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
/* Preview area, top of column */
......@@ -1370,7 +1370,7 @@ bender_new_dialog (GimpDrawable *drawable)
/* The curves graph */
frame = gimp_frame_new (_("Modify Curves"));
gtk_container_add (GTK_CONTAINER (main_hbox), frame);
gtk_box_pack_start (GTK_BOX (main_hbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
vbox = gtk_vbox_new (FALSE, 12);
......
......@@ -1319,7 +1319,7 @@ save_dialog (const gint32 image_ID, GimpParamRegion *hotspotRange)
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (tmpwidget), GTK_WRAP_WORD);
g_object_unref (textbuffer);
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (tmpwidget), GTK_WRAP_WORD);
gtk_container_add (GTK_CONTAINER (box), tmpwidget);
gtk_box_pack_start (GTK_BOX (box), tmpwidget, TRUE, TRUE, 0);
gtk_widget_show (tmpwidget);
/* tooltip */
gimp_help_set_help_data (tmpwidget,
......
......@@ -1119,11 +1119,11 @@ iwarp_settings_dialog (GtkWidget *dialog,
NULL);
gtk_container_add (GTK_CONTAINER (hbox), vbox2);
gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 0);
gtk_widget_show (vbox2);
vbox3 = gtk_vbox_new (FALSE, 2);
gtk_container_add (GTK_CONTAINER (hbox), vbox3);
gtk_box_pack_start (GTK_BOX (hbox), vbox3, TRUE, TRUE, 0);
gtk_widget_show (vbox3);
for (i = 0; i < 3; i++)
......
......@@ -1224,7 +1224,7 @@ newsprint_dialog (GimpDrawable *drawable)
gtk_widget_show (vbox);
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_add (GTK_CONTAINER (hbox), vbox);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
/* resolution settings */
......
......@@ -789,7 +789,7 @@ sinus_dialog (void)
/*if in grey scale, the colors are necessarily black and white */
label = gtk_label_new (_("The colors are white and black."));
gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
gtk_container_add (GTK_CONTAINER (vbox), label);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
}
else
......@@ -915,7 +915,7 @@ sinus_dialog (void)
table = gtk_table_new (1, 3, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_add (GTK_CONTAINER (vbox), table);
gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0);
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 0,
_("_Exponent:"), 0, 0,
......
......@@ -675,7 +675,7 @@ create_main_dialog (void)
_("_Brightness"), 2, NULL,
NULL);
gtk_container_add (GTK_CONTAINER (hbox), frame);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
frame = gimp_int_radio_group_new (TRUE, _("Effect Operator"),
......@@ -687,7 +687,7 @@ create_main_dialog (void)
_("_Gradient"), 1, NULL,
NULL);
gtk_container_add (GTK_CONTAINER (hbox), frame);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
frame = gimp_int_radio_group_new (TRUE, _("Convolve"),
......@@ -699,7 +699,7 @@ create_main_dialog (void)
_("W_ith source image"), 1, NULL,
NULL);
gtk_container_add (GTK_CONTAINER (hbox), frame);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
/* Effect image menu */
......
......@@ -890,7 +890,7 @@ save_dialog (gint channels)
toggle = gtk_radio_button_new_with_label (group, "A8 R8 G8 B8");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (toggle));
gtk_container_add (GTK_CONTAINER (vbox), toggle);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_widget_show (toggle);
g_signal_connect (toggle, "toggled",
G_CALLBACK (format_callback),
......@@ -909,7 +909,7 @@ save_dialog (gint channels)
toggle = gtk_radio_button_new_with_label (group, "X8 R8 G8 B8");
group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (toggle));
gtk_container_add (GTK_CONTAINER (vbox), toggle);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_widget_show (toggle);
g_signal_connect (toggle, "toggled",
G_CALLBACK (format_callback),
......
......@@ -634,7 +634,7 @@ create_orientmap_dialog (GtkWidget *parent)
gtk_widget_show (hbox);
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (hbox), vbox);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
frame = gimp_int_radio_group_new (TRUE, _("Type"),
......@@ -647,11 +647,11 @@ create_orientmap_dialog (GtkWidget *parent)
_("Vortex_3"), 3, &vector_types[3],
NULL);
gtk_container_add (GTK_CONTAINER (vbox), frame);
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
orient_voronoi = tmpw = gtk_check_button_new_with_mnemonic ( _("_Voronoi"));
gtk_container_add (GTK_CONTAINER (vbox), tmpw);
gtk_box_pack_start (GTK_BOX (vbox), tmpw, TRUE, TRUE, 0);
gtk_widget_show (tmpw);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (tmpw),
pcvals.orient_voronoi);
......@@ -663,7 +663,7 @@ create_orientmap_dialog (GtkWidget *parent)
table2 = gtk_table_new (4, 3, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table2), 4);
gtk_container_add (GTK_CONTAINER (hbox), table2);
gtk_box_pack_start (GTK_BOX (hbox), table2, TRUE, TRUE, 0);
gtk_widget_show (table2);
angle_adjust =
......
......@@ -671,7 +671,7 @@ create_save_preset (GtkWidget *parent)
swin = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (swin),
GTK_SHADOW_IN);
gtk_container_add (GTK_CONTAINER (box), swin);
gtk_box_pack_start (GTK_BOX (box), swin, TRUE, TRUE, 0);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swin),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_widget_show (swin);
......
......@@ -205,7 +205,7 @@ make_guides_dialog (void)
G_CALLBACK(recalc_bounds), (gpointer) data);
hbox = gtk_hbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (dialog->vbox), hbox);
gtk_box_pack_start (GTK_BOX (dialog->vbox), hbox, TRUE, TRUE, 0);
gtk_widget_show(hbox);
label = gtk_label_new_with_mnemonic(_("Base _URL:"));
......@@ -213,7 +213,7 @@ make_guides_dialog (void)
gtk_widget_show(label);
data->base_url = gtk_entry_new ();
gtk_container_add (GTK_CONTAINER(hbox), data->base_url);
gtk_box_pack_start (GTK_BOX (hbox), data->base_url, TRUE, TRUE, 0);
gtk_widget_show(data->base_url);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), data->base_url);
......
......@@ -170,13 +170,13 @@ default_dialog_set_label(DefaultDialog_t *dialog, const gchar *text)
GtkWidget*
default_dialog_add_table(DefaultDialog_t *dialog, gint rows, gint cols)
{
GtkWidget *table = gtk_table_new(rows, cols, FALSE);
GtkWidget *table = gtk_table_new (rows, cols, FALSE);
gtk_table_set_row_spacings(GTK_TABLE(table), 6);
gtk_table_set_col_spacings(GTK_TABLE(table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_add (GTK_CONTAINER(dialog->vbox), table);
gtk_widget_show(table);
gtk_box_pack_start (GTK_BOX (dialog->vbox), table, TRUE, TRUE, 0);
gtk_widget_show (table);
return table;
return table;
}
......@@ -179,11 +179,11 @@ append_page (GtkWidget *notebook, GtkWidget *page, const gchar *icon_name,
gtk_widget_show(hbox);
icon = gtk_image_new_from_stock (icon_name, GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (hbox), icon);
gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE, FALSE, 0);
gtk_widget_show (icon);
label = gtk_label_new_with_mnemonic(label_name);
gtk_container_add (GTK_CONTAINER (hbox), label);
label = gtk_label_new_with_mnemonic (label_name);
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
gtk_widget_show (label);
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), page, hbox);
......@@ -207,7 +207,7 @@ create_link_tab(AreaInfoDialog_t *dialog, GtkWidget *notebook)
gtk_widget_show(frame);
subtable = gtk_table_new(2, 4, FALSE);
gtk_container_add(GTK_CONTAINER(frame), subtable);
gtk_container_add (GTK_CONTAINER(frame), subtable);
gtk_widget_show(subtable);
dialog->web_site = create_radio_button_in_table(subtable, NULL, 0, 0,
......
......@@ -1244,9 +1244,9 @@ dialog(GimpDrawable *drawable)
G_CALLBACK (gtk_main_quit),
NULL);
main_vbox = gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(dlg), main_vbox);
gtk_widget_show(main_vbox);
main_vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (dlg), main_vbox);
gtk_widget_show (main_vbox);
init_stock_icons();
......@@ -1258,7 +1258,7 @@ dialog(GimpDrawable *drawable)
/* Dialog area */
hbox = gtk_hbox_new(FALSE, 1);
gtk_container_add(GTK_CONTAINER(main_vbox), hbox);
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, TRUE, TRUE, 0);
gtk_widget_show(hbox);
tools = make_tools(dlg);
......@@ -1274,7 +1274,7 @@ dialog(GimpDrawable *drawable)
G_CALLBACK(preview_leave), NULL);
g_signal_connect(_preview->preview, "button-press-event",
G_CALLBACK(button_press), NULL);
gtk_container_add(GTK_CONTAINER(hbox), _preview->window);
gtk_box_pack_start (GTK_BOX (hbox), _preview->window, TRUE, TRUE, 0);
object_list_add_geometry_cb(_shapes, geometry_changed, NULL);
object_list_add_update_cb(_shapes, data_changed, NULL);
......
......@@ -333,13 +333,13 @@ make_selection(ObjectList_t *object_list)
gtk_container_add(GTK_CONTAINER(frame), hbox);
gtk_widget_show(hbox);
toolbar = make_selection_toolbar();
gtk_container_add(GTK_CONTAINER(hbox), toolbar);
toolbar = make_selection_toolbar ();
gtk_box_pack_start (GTK_BOX (hbox), toolbar, TRUE, TRUE, 0);
/* Create selection */
frame = gimp_frame_new(_("Selection"));
gtk_container_add(GTK_CONTAINER(hbox), frame);
gtk_widget_show(frame);
frame = gimp_frame_new (_("Selection"));
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
data->store = gtk_list_store_new (1, G_TYPE_POINTER);
data->list = gtk_tree_view_new_with_model (GTK_TREE_MODEL (data->store));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment