Commit ebc92dc5 authored by Michael Natterer's avatar Michael Natterer 😴

app: more gtk_container_add -> gtk_box_pack_start

parent b2a2e320
......@@ -166,7 +166,7 @@ gimp_brush_select_constructor (GType type,
gtk_container_set_border_width (GTK_CONTAINER (dialog->view), 12);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_container_add (GTK_CONTAINER (content_area), dialog->view);
gtk_box_pack_start (GTK_BOX (content_area), dialog->view, TRUE, TRUE, 0);
gtk_widget_show (dialog->view);
/* Create the frame and the table for the options */
......
......@@ -126,8 +126,8 @@ gimp_color_dialog_init (GimpColorDialog *dialog)
dialog->selection = gimp_color_selection_new ();
gtk_container_set_border_width (GTK_CONTAINER (dialog->selection), 12);
gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
dialog->selection);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
dialog->selection, TRUE, TRUE, 0);
gtk_widget_show (dialog->selection);
g_signal_connect (dialog->selection, "color-changed",
......
......@@ -137,7 +137,7 @@ gimp_color_selector_palette_set_config (GimpColorSelector *selector,
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_container_add (GTK_CONTAINER (select), frame);
gtk_box_pack_start (GTK_BOX (select), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
select->view = gimp_view_new_full_by_types (select->context,
......
......@@ -128,7 +128,7 @@ gimp_device_status_init (GimpDeviceStatus *status)
status->vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (status->vbox), 6);
gtk_container_add (GTK_CONTAINER (status), status->vbox);
gtk_box_pack_start (GTK_BOX (status), status->vbox, TRUE, TRUE, 0);
gtk_widget_show (status->vbox);
status->save_button =
......
......@@ -87,7 +87,7 @@ gimp_error_console_init (GimpErrorConsole *console)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_container_add (GTK_CONTAINER (console), scrolled_window);
gtk_box_pack_start (GTK_BOX (console), scrolled_window, TRUE, TRUE, 0);
gtk_widget_show (scrolled_window);
console->text_view = gtk_text_view_new_with_buffer (console->text_buffer);
......
......@@ -171,7 +171,7 @@ gimp_error_dialog_add (GimpErrorDialog *dialog,
gimp_message_box_set_text (GIMP_MESSAGE_BOX (box), "%s", message);
gtk_container_add (GTK_CONTAINER (dialog->vbox), box);
gtk_box_pack_start (GTK_BOX (dialog->vbox), box, TRUE, TRUE, 0);
gtk_widget_show (box);
dialog->last_box = box;
......
......@@ -96,7 +96,7 @@ gimp_font_select_constructor (GType type,
gtk_container_set_border_width (GTK_CONTAINER (dialog->view), 12);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_container_add (GTK_CONTAINER (content_area), dialog->view);
gtk_box_pack_start (GTK_BOX (content_area), dialog->view, TRUE, TRUE, 0);
gtk_widget_show (dialog->view);
return object;
......
......@@ -117,7 +117,7 @@ gimp_gradient_select_constructor (GType type,
gtk_container_set_border_width (GTK_CONTAINER (dialog->view), 12);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_container_add (GTK_CONTAINER (content_area), dialog->view);
gtk_box_pack_start (GTK_BOX (content_area), dialog->view, TRUE, TRUE, 0);
gtk_widget_show (dialog->view);
return object;
......
......@@ -77,7 +77,7 @@ gimp_image_comment_editor_init (GimpImageCommentEditor *editor)
/* Vbox */
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (editor), vbox);
gtk_box_pack_start (GTK_BOX (editor), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
/* Scrolled winow */
......
......@@ -75,7 +75,7 @@ gimp_image_profile_view_init (GimpImageProfileView *view)
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 2);
gtk_container_add (GTK_CONTAINER (view), scrolled_window);
gtk_box_pack_start (GTK_BOX (view), scrolled_window, TRUE, TRUE, 0);
gtk_widget_show (scrolled_window);
text_view = gtk_text_view_new ();
......
......@@ -98,7 +98,7 @@ gimp_palette_select_constructor (GType type,
gtk_container_set_border_width (GTK_CONTAINER (dialog->view), 12);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_container_add (GTK_CONTAINER (content_area), dialog->view);
gtk_box_pack_start (GTK_BOX (content_area), dialog->view, TRUE, TRUE, 0);
gtk_widget_show (dialog->view);
return object;
......
......@@ -79,7 +79,7 @@ gimp_progress_dialog_init (GimpProgressDialog *dialog)
dialog->box = gimp_progress_box_new ();
gtk_container_set_border_width (GTK_CONTAINER (dialog->box), 12);
gtk_container_add (GTK_CONTAINER (content_area), dialog->box);
gtk_box_pack_start (GTK_BOX (content_area), dialog->box, TRUE, TRUE, 0);
gtk_widget_show (dialog->box);
g_signal_connect (dialog->box, "destroy",
......
......@@ -174,7 +174,8 @@ gimp_tool_options_editor_init (GimpToolOptionsEditor *editor)
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_container_add (GTK_CONTAINER (editor), editor->p->scrolled_window);
gtk_box_pack_start (GTK_BOX (editor), editor->p->scrolled_window,
TRUE, TRUE, 0);
gtk_widget_show (editor->p->scrolled_window);
viewport = gtk_viewport_new (gtk_scrolled_window_get_hadjustment (scrolled_window),
......
......@@ -141,7 +141,7 @@ gimp_undo_editor_constructor (GType type,
undo_editor->view_size,
1);
gtk_container_add (GTK_CONTAINER (undo_editor), undo_editor->view);
gtk_box_pack_start (GTK_BOX (undo_editor), undo_editor->view, TRUE, TRUE, 0);
gtk_widget_show (undo_editor->view);
g_signal_connect (undo_editor->view, "select-item",
......
......@@ -127,7 +127,7 @@ gimp_viewable_dialog_init (GimpViewableDialog *dialog)
gtk_widget_show (dialog->icon);
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);
dialog->desc_label = gtk_label_new (NULL);
......
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