From ebc92dc5b443dbe17a578ba558c444dd0743c8ab Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 30 Oct 2010 15:42:25 +0200 Subject: [PATCH] app: more gtk_container_add -> gtk_box_pack_start --- app/widgets/gimpbrushselect.c | 2 +- app/widgets/gimpcolordialog.c | 4 ++-- app/widgets/gimpcolorselectorpalette.c | 2 +- app/widgets/gimpdevicestatus.c | 2 +- app/widgets/gimperrorconsole.c | 2 +- app/widgets/gimperrordialog.c | 2 +- app/widgets/gimpfontselect.c | 2 +- app/widgets/gimpgradientselect.c | 2 +- app/widgets/gimpimagecommenteditor.c | 2 +- app/widgets/gimpimageprofileview.c | 2 +- app/widgets/gimppaletteselect.c | 2 +- app/widgets/gimpprogressdialog.c | 2 +- app/widgets/gimptooloptionseditor.c | 3 ++- app/widgets/gimpundoeditor.c | 2 +- app/widgets/gimpviewabledialog.c | 2 +- 15 files changed, 17 insertions(+), 16 deletions(-) diff --git a/app/widgets/gimpbrushselect.c b/app/widgets/gimpbrushselect.c index c730607e1f..99097aa8bf 100644 --- a/app/widgets/gimpbrushselect.c +++ b/app/widgets/gimpbrushselect.c @@ -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 */ diff --git a/app/widgets/gimpcolordialog.c b/app/widgets/gimpcolordialog.c index f69a40b70e..e238280d6b 100644 --- a/app/widgets/gimpcolordialog.c +++ b/app/widgets/gimpcolordialog.c @@ -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", diff --git a/app/widgets/gimpcolorselectorpalette.c b/app/widgets/gimpcolorselectorpalette.c index a5fe250feb..8a02b9b6cd 100644 --- a/app/widgets/gimpcolorselectorpalette.c +++ b/app/widgets/gimpcolorselectorpalette.c @@ -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, diff --git a/app/widgets/gimpdevicestatus.c b/app/widgets/gimpdevicestatus.c index 967db1fdc3..de274a320c 100644 --- a/app/widgets/gimpdevicestatus.c +++ b/app/widgets/gimpdevicestatus.c @@ -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 = diff --git a/app/widgets/gimperrorconsole.c b/app/widgets/gimperrorconsole.c index 429667a9e6..4461bc80ae 100644 --- a/app/widgets/gimperrorconsole.c +++ b/app/widgets/gimperrorconsole.c @@ -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); diff --git a/app/widgets/gimperrordialog.c b/app/widgets/gimperrordialog.c index 0c08049bfc..c147f6bd9d 100644 --- a/app/widgets/gimperrordialog.c +++ b/app/widgets/gimperrordialog.c @@ -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; diff --git a/app/widgets/gimpfontselect.c b/app/widgets/gimpfontselect.c index 18477b148f..47074daa5c 100644 --- a/app/widgets/gimpfontselect.c +++ b/app/widgets/gimpfontselect.c @@ -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; diff --git a/app/widgets/gimpgradientselect.c b/app/widgets/gimpgradientselect.c index 5e087587d8..1b67ae2e87 100644 --- a/app/widgets/gimpgradientselect.c +++ b/app/widgets/gimpgradientselect.c @@ -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; diff --git a/app/widgets/gimpimagecommenteditor.c b/app/widgets/gimpimagecommenteditor.c index 6cb00a03c5..636e4ce01f 100644 --- a/app/widgets/gimpimagecommenteditor.c +++ b/app/widgets/gimpimagecommenteditor.c @@ -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 */ diff --git a/app/widgets/gimpimageprofileview.c b/app/widgets/gimpimageprofileview.c index 0d68e59b9e..ef471ecf54 100644 --- a/app/widgets/gimpimageprofileview.c +++ b/app/widgets/gimpimageprofileview.c @@ -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 (); diff --git a/app/widgets/gimppaletteselect.c b/app/widgets/gimppaletteselect.c index 34bb6a6deb..213ba4b456 100644 --- a/app/widgets/gimppaletteselect.c +++ b/app/widgets/gimppaletteselect.c @@ -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; diff --git a/app/widgets/gimpprogressdialog.c b/app/widgets/gimpprogressdialog.c index ba0b44f738..49dd2e56b2 100644 --- a/app/widgets/gimpprogressdialog.c +++ b/app/widgets/gimpprogressdialog.c @@ -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", diff --git a/app/widgets/gimptooloptionseditor.c b/app/widgets/gimptooloptionseditor.c index dd709c781a..8eeac70158 100644 --- a/app/widgets/gimptooloptionseditor.c +++ b/app/widgets/gimptooloptionseditor.c @@ -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), diff --git a/app/widgets/gimpundoeditor.c b/app/widgets/gimpundoeditor.c index 10bd21a401..435a5a2c85 100644 --- a/app/widgets/gimpundoeditor.c +++ b/app/widgets/gimpundoeditor.c @@ -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", diff --git a/app/widgets/gimpviewabledialog.c b/app/widgets/gimpviewabledialog.c index 5ce929e3c6..e96e14c0df 100644 --- a/app/widgets/gimpviewabledialog.c +++ b/app/widgets/gimpviewabledialog.c @@ -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);