[gimp] Don't use gtk_container_add() for adding to GtkBoxes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Don't use gtk_container_add() for adding to GtkBoxes
- Date: Sat, 30 Oct 2010 13:13:11 +0000 (UTC)
commit 79f0f5639b076def381bcbf1c60154f7873921c8
Author: Michael Natterer <mitch gimp org>
Date: Sat Oct 30 14:56:00 2010 +0200
Don't use gtk_container_add() for adding to GtkBoxes
because the packing options are different for GtkH/VBox and GtkBox
itself which is now instantiable. Instead, always use
gtk_box_pack_start() and specify expanding explicitely.
app/actions/gradient-editor-commands.c | 8 ++++----
app/actions/window-commands.c | 3 ++-
app/dialogs/channel-options-dialog.c | 4 ++--
app/dialogs/convert-dialog.c | 4 ++--
app/dialogs/fade-dialog.c | 4 ++--
app/dialogs/grid-dialog.c | 4 ++--
app/dialogs/image-merge-layers-dialog.c | 4 ++--
app/dialogs/input-devices-dialog.c | 2 +-
app/dialogs/keyboard-shortcuts-dialog.c | 4 ++--
app/dialogs/layer-add-mask-dialog.c | 4 ++--
app/dialogs/layer-options-dialog.c | 4 ++--
app/dialogs/module-dialog.c | 20 ++++++++++----------
app/dialogs/offset-dialog.c | 4 ++--
app/dialogs/palette-import-dialog.c | 4 ++--
app/dialogs/preferences-dialog.c | 9 ++++-----
app/dialogs/resize-dialog.c | 4 ++--
app/dialogs/resolution-calibrate-dialog.c | 4 ++--
app/dialogs/scale-dialog.c | 4 ++--
app/dialogs/stroke-dialog.c | 4 ++--
app/dialogs/template-options-dialog.c | 4 ++--
app/dialogs/vectors-options-dialog.c | 4 ++--
app/gui/gui.c | 4 ++--
app/tools/gimpimagemaptool.c | 4 ++--
app/tools/gimpmeasuretool.c | 4 ++--
libgimp/gimpexport.c | 8 ++++----
libgimp/gimpmenu.c | 2 +-
libgimp/gimpprocbrowserdialog.c | 4 ++--
libgimpwidgets/gimpcolorbutton.c | 4 ++--
libgimpwidgets/gimpquerybox.c | 5 +++--
libgimpwidgets/gimpunitmenu.c | 6 +++---
30 files changed, 74 insertions(+), 73 deletions(-)
---
diff --git a/app/actions/gradient-editor-commands.c b/app/actions/gradient-editor-commands.c
index 204e10d..4b86f7a 100644
--- a/app/actions/gradient-editor-commands.c
+++ b/app/actions/gradient-editor-commands.c
@@ -482,8 +482,8 @@ gradient_editor_replicate_cmd_callback (GtkAction *action,
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
/* Instructions */
@@ -585,8 +585,8 @@ gradient_editor_split_uniformly_cmd_callback (GtkAction *action,
/* The main vbox */
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
/* Instructions */
diff --git a/app/actions/window-commands.c b/app/actions/window-commands.c
index 5727601..95df5b0 100644
--- a/app/actions/window-commands.c
+++ b/app/actions/window-commands.c
@@ -88,7 +88,8 @@ window_open_display_cmd_callback (GtkAction *action,
entry = gtk_entry_new ();
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
- gtk_container_add (GTK_CONTAINER (GIMP_MESSAGE_DIALOG (dialog)->box), entry);
+ gtk_box_pack_start (GTK_BOX (GIMP_MESSAGE_DIALOG (dialog)->box), entry,
+ TRUE, TRUE, 0);
gtk_widget_grab_focus (entry);
gtk_widget_show_all (dialog);
diff --git a/app/dialogs/channel-options-dialog.c b/app/dialogs/channel-options-dialog.c
index 7d80dc9..1432c9c 100644
--- a/app/dialogs/channel-options-dialog.c
+++ b/app/dialogs/channel-options-dialog.c
@@ -124,8 +124,8 @@ channel_options_dialog_new (GimpImage *image,
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
- hbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
+ hbox, TRUE, TRUE, 0);
gtk_widget_show (hbox);
vbox = gtk_vbox_new (FALSE, 6);
diff --git a/app/dialogs/convert-dialog.c b/app/dialogs/convert-dialog.c
index 5c971e5..b78a26d 100644
--- a/app/dialogs/convert-dialog.c
+++ b/app/dialogs/convert-dialog.c
@@ -158,8 +158,8 @@ convert_dialog_new (GimpImage *image,
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
- main_vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
+ main_vbox, TRUE, TRUE, 0);
gtk_widget_show (main_vbox);
diff --git a/app/dialogs/fade-dialog.c b/app/dialogs/fade-dialog.c
index d96f62c..b5bac00 100644
--- a/app/dialogs/fade-dialog.c
+++ b/app/dialogs/fade-dialog.c
@@ -140,8 +140,8 @@ fade_dialog_new (GimpImage *image,
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- main_vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ main_vbox, TRUE, TRUE, 0);
gtk_widget_show (main_vbox);
table = gtk_table_new (3, 3, FALSE);
diff --git a/app/dialogs/grid-dialog.c b/app/dialogs/grid-dialog.c
index de3483f..e8ccfa9 100644
--- a/app/dialogs/grid-dialog.c
+++ b/app/dialogs/grid-dialog.c
@@ -108,8 +108,8 @@ grid_dialog_new (GimpImage *image,
editor = gimp_grid_editor_new (grid, context, xres, yres);
gtk_container_set_border_width (GTK_CONTAINER (editor), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- editor);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ editor, TRUE, TRUE, 0);
gtk_widget_show (editor);
diff --git a/app/dialogs/image-merge-layers-dialog.c b/app/dialogs/image-merge-layers-dialog.c
index 60f0888..00f3ed9 100644
--- a/app/dialogs/image-merge-layers-dialog.c
+++ b/app/dialogs/image-merge-layers-dialog.c
@@ -85,8 +85,8 @@ image_merge_layers_dialog_new (GimpImage *image,
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
frame = gimp_int_radio_group_new (TRUE, _("Final, Merged Layer should be:"),
diff --git a/app/dialogs/input-devices-dialog.c b/app/dialogs/input-devices-dialog.c
index a3c1f10..adc6bcb 100644
--- a/app/dialogs/input-devices-dialog.c
+++ b/app/dialogs/input-devices-dialog.c
@@ -76,7 +76,7 @@ input_devices_dialog_new (Gimp *gimp)
editor = gimp_device_editor_new (gimp);
gtk_container_set_border_width (GTK_CONTAINER (editor), 12);
- gtk_container_add (GTK_CONTAINER (content_area), editor);
+ gtk_box_pack_start (GTK_BOX (content_area), editor, TRUE, TRUE, 0);
gtk_widget_show (editor);
return dialog;
diff --git a/app/dialogs/keyboard-shortcuts-dialog.c b/app/dialogs/keyboard-shortcuts-dialog.c
index a1193b5..23c85fb 100644
--- a/app/dialogs/keyboard-shortcuts-dialog.c
+++ b/app/dialogs/keyboard-shortcuts-dialog.c
@@ -61,8 +61,8 @@ keyboard_shortcuts_dialog_new (Gimp *gimp)
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
editor = gimp_action_editor_new (gimp_ui_managers_from_name ("<Image>")->data,
diff --git a/app/dialogs/layer-add-mask-dialog.c b/app/dialogs/layer-add-mask-dialog.c
index 1897f60..53b34a0 100644
--- a/app/dialogs/layer-add-mask-dialog.c
+++ b/app/dialogs/layer-add-mask-dialog.c
@@ -103,8 +103,8 @@ layer_add_mask_dialog_new (GimpLayer *layer,
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
frame =
diff --git a/app/dialogs/layer-options-dialog.c b/app/dialogs/layer-options-dialog.c
index c0b8c4e..d5d4ad2 100644
--- a/app/dialogs/layer-options-dialog.c
+++ b/app/dialogs/layer-options-dialog.c
@@ -109,8 +109,8 @@ layer_options_dialog_new (GimpImage *image,
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
table = gtk_table_new (layer ? 1 : 3, 2, FALSE);
diff --git a/app/dialogs/module-dialog.c b/app/dialogs/module-dialog.c
index 4848dae..b53540d 100644
--- a/app/dialogs/module-dialog.c
+++ b/app/dialogs/module-dialog.c
@@ -108,7 +108,7 @@ module_dialog_new (Gimp *gimp)
{
GtkWidget *shell;
GtkWidget *vbox;
- GtkWidget *listbox;
+ GtkWidget *sw;
GtkWidget *view;
GtkWidget *image;
ModuleDialog *dialog;
@@ -143,8 +143,8 @@ module_dialog_new (Gimp *gimp)
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (shell))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (shell))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
dialog->hint = gimp_hint_box_new (_("You will have to restart GIMP "
@@ -154,15 +154,15 @@ module_dialog_new (Gimp *gimp)
if (gimp->write_modulerc)
gtk_widget_show (dialog->hint);
- listbox = gtk_scrolled_window_new (NULL, NULL);
- gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (listbox),
+ sw = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw),
GTK_SHADOW_IN);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (listbox),
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start (GTK_BOX (vbox), listbox, TRUE, TRUE, 0);
- gtk_widget_set_size_request (listbox, 124, 100);
- gtk_widget_show (listbox);
+ gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE, TRUE, 0);
+ gtk_widget_set_size_request (sw, 124, 100);
+ gtk_widget_show (sw);
dialog->list = gtk_list_store_new (N_COLUMNS,
G_TYPE_STRING,
@@ -193,7 +193,7 @@ module_dialog_new (Gimp *gimp)
"text", COLUMN_NAME,
NULL);
- gtk_container_add (GTK_CONTAINER (listbox), view);
+ gtk_container_add (GTK_CONTAINER (sw), view);
gtk_widget_show (view);
dialog->table = gtk_table_new (2, N_INFOS, FALSE);
diff --git a/app/dialogs/offset-dialog.c b/app/dialogs/offset-dialog.c
index 0be7e31..7899464 100644
--- a/app/dialogs/offset-dialog.c
+++ b/app/dialogs/offset-dialog.c
@@ -144,8 +144,8 @@ offset_dialog_new (GimpDrawable *drawable,
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
- main_vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
+ main_vbox, TRUE, TRUE, 0);
gtk_widget_show (main_vbox);
/* The offset frame */
diff --git a/app/dialogs/palette-import-dialog.c b/app/dialogs/palette-import-dialog.c
index 67848e2..9cdd554 100644
--- a/app/dialogs/palette-import-dialog.c
+++ b/app/dialogs/palette-import-dialog.c
@@ -189,8 +189,8 @@ palette_import_dialog_new (GimpContext *context)
main_hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
- main_hbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog->dialog))),
+ main_hbox, TRUE, TRUE, 0);
gtk_widget_show (main_hbox);
vbox = gtk_vbox_new (FALSE, 12);
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index 4e20716..80e32a1 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -1415,8 +1415,8 @@ prefs_dialog_new (Gimp *gimp,
/* The main hbox */
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- hbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ hbox, TRUE, TRUE, 0);
gtk_widget_show (hbox);
/* The categories tree */
@@ -2041,8 +2041,7 @@ prefs_dialog_new (Gimp *gimp,
gimp_get_user_context (gimp),
core_config->default_image->xresolution,
core_config->default_image->yresolution);
-
- gtk_container_add (GTK_CONTAINER (vbox), editor);
+ gtk_box_pack_start (GTK_BOX (vbox), editor, TRUE, TRUE, 0);
gtk_widget_show (editor);
@@ -2786,7 +2785,7 @@ prefs_dialog_new (Gimp *gimp,
paths[i].path_property_name,
paths[i].writable_property_name,
gettext (paths[i].fs_label));
- gtk_container_add (GTK_CONTAINER (vbox), editor);
+ gtk_box_pack_start (GTK_BOX (vbox), editor, TRUE, TRUE, 0);
gtk_widget_show (editor);
}
}
diff --git a/app/dialogs/resize-dialog.c b/app/dialogs/resize-dialog.c
index 408dcc0..cc6087a 100644
--- a/app/dialogs/resize-dialog.c
+++ b/app/dialogs/resize-dialog.c
@@ -184,8 +184,8 @@ resize_dialog_new (GimpViewable *viewable,
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- main_vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ main_vbox, TRUE, TRUE, 0);
gtk_widget_show (main_vbox);
frame = gimp_frame_new (text);
diff --git a/app/dialogs/resolution-calibrate-dialog.c b/app/dialogs/resolution-calibrate-dialog.c
index e7ca180..be3d9b5 100644
--- a/app/dialogs/resolution-calibrate-dialog.c
+++ b/app/dialogs/resolution-calibrate-dialog.c
@@ -92,8 +92,8 @@ resolution_calibrate_dialog (GtkWidget *resolution_entry,
table = gtk_table_new (4, 4, FALSE);
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- table);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ table, TRUE, TRUE, 0);
gtk_widget_show (table);
if (pixbuf)
diff --git a/app/dialogs/scale-dialog.c b/app/dialogs/scale-dialog.c
index 5f7fb89..dfaf1a9 100644
--- a/app/dialogs/scale-dialog.c
+++ b/app/dialogs/scale-dialog.c
@@ -162,8 +162,8 @@ scale_dialog_new (GimpViewable *viewable,
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
frame = gimp_frame_new (text);
diff --git a/app/dialogs/stroke-dialog.c b/app/dialogs/stroke-dialog.c
index 1a2f1b9..88b5c69 100644
--- a/app/dialogs/stroke-dialog.c
+++ b/app/dialogs/stroke-dialog.c
@@ -123,8 +123,8 @@ stroke_dialog_new (GimpItem *item,
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- main_vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ main_vbox, TRUE, TRUE, 0);
gtk_widget_show (main_vbox);
radio_box = gimp_prop_enum_radio_box_new (G_OBJECT (options), "method",
diff --git a/app/dialogs/template-options-dialog.c b/app/dialogs/template-options-dialog.c
index 282f6f9..a93c0d9 100644
--- a/app/dialogs/template-options-dialog.c
+++ b/app/dialogs/template-options-dialog.c
@@ -103,8 +103,8 @@ template_options_dialog_new (GimpTemplate *template,
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
options->editor = gimp_template_editor_new (template, options->gimp, TRUE);
diff --git a/app/dialogs/vectors-options-dialog.c b/app/dialogs/vectors-options-dialog.c
index 9beac88..4c6117e 100644
--- a/app/dialogs/vectors-options-dialog.c
+++ b/app/dialogs/vectors-options-dialog.c
@@ -101,8 +101,8 @@ vectors_options_dialog_new (GimpImage *image,
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
- hbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (options->dialog))),
+ hbox, TRUE, TRUE, 0);
gtk_widget_show (hbox);
vbox = gtk_vbox_new (FALSE, 6);
diff --git a/app/gui/gui.c b/app/gui/gui.c
index c2e6da5..323aca5 100644
--- a/app/gui/gui.c
+++ b/app/gui/gui.c
@@ -174,8 +174,8 @@ gui_abort (const gchar *abort_message)
gimp_message_box_set_text (GIMP_MESSAGE_BOX (box), "%s", abort_message);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- box);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ box, TRUE, TRUE, 0);
gtk_widget_show (box);
gimp_dialog_run (GIMP_DIALOG (dialog));
diff --git a/app/tools/gimpimagemaptool.c b/app/tools/gimpimagemaptool.c
index f6735b2..b02221d 100644
--- a/app/tools/gimpimagemaptool.c
+++ b/app/tools/gimpimagemaptool.c
@@ -350,8 +350,8 @@ gimp_image_map_tool_initialize (GimpTool *tool,
image_map_tool->main_vbox = vbox = gtk_vbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (shell))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (shell))),
+ vbox, TRUE, TRUE, 0);
}
g_signal_connect_object (shell, "response",
diff --git a/app/tools/gimpmeasuretool.c b/app/tools/gimpmeasuretool.c
index ab36b7e..553c236 100644
--- a/app/tools/gimpmeasuretool.c
+++ b/app/tools/gimpmeasuretool.c
@@ -1011,8 +1011,8 @@ gimp_measure_tool_dialog_new (GimpMeasureTool *measure)
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 6);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- table);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ table, TRUE, TRUE, 0);
gtk_widget_show (table);
diff --git a/libgimp/gimpexport.c b/libgimp/gimpexport.c
index bea1ee8..25c7493 100644
--- a/libgimp/gimpexport.c
+++ b/libgimp/gimpexport.c
@@ -446,8 +446,8 @@ confirm_save_dialog (const gchar *message,
gimp_window_set_transient (GTK_WINDOW (dialog));
hbox = gtk_hbox_new (FALSE, 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- hbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ hbox, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_widget_show (hbox);
@@ -529,8 +529,8 @@ export_dialog (GSList *actions,
gimp_window_set_transient (GTK_WINDOW (dialog));
hbox = gtk_hbox_new (FALSE, 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- hbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ hbox, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_widget_show (hbox);
diff --git a/libgimp/gimpmenu.c b/libgimp/gimpmenu.c
index b51fe6c..67df926 100644
--- a/libgimp/gimpmenu.c
+++ b/libgimp/gimpmenu.c
@@ -439,7 +439,7 @@ gimp_menu_add_item (GtkWidget *menu,
preview = gimp_menu_make_preview (any_ID, drawable_name == NULL,
MENU_THUMBNAIL_WIDTH,
MENU_THUMBNAIL_HEIGHT);
- gtk_container_add (GTK_CONTAINER (vbox), preview);
+ gtk_box_pack_start (GTK_BOX (vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
label = gtk_label_new (str);
diff --git a/libgimp/gimpprocbrowserdialog.c b/libgimp/gimpprocbrowserdialog.c
index 4cf4d86..a7b5ca0 100644
--- a/libgimp/gimpprocbrowserdialog.c
+++ b/libgimp/gimpprocbrowserdialog.c
@@ -155,8 +155,8 @@ gimp_proc_browser_dialog_init (GimpProcBrowserDialog *dialog)
_("by type"), SEARCH_TYPE_PROC_TYPE,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (dialog->browser), 12);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- dialog->browser);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ dialog->browser, TRUE, TRUE, 0);
gtk_widget_show (dialog->browser);
g_signal_connect (dialog->browser, "search",
diff --git a/libgimpwidgets/gimpcolorbutton.c b/libgimpwidgets/gimpcolorbutton.c
index 3d497d4..aa873a4 100644
--- a/libgimpwidgets/gimpcolorbutton.c
+++ b/libgimpwidgets/gimpcolorbutton.c
@@ -519,8 +519,8 @@ gimp_color_button_clicked (GtkButton *button)
gimp_color_selection_set_color (GIMP_COLOR_SELECTION (selection), &color);
gimp_color_selection_set_old_color (GIMP_COLOR_SELECTION (selection),
&color);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- selection);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ selection, TRUE, TRUE, 0);
gtk_widget_show (selection);
g_signal_connect (selection, "color-changed",
diff --git a/libgimpwidgets/gimpquerybox.c b/libgimpwidgets/gimpquerybox.c
index 94b9ae8..797f267 100644
--- a/libgimpwidgets/gimpquerybox.c
+++ b/libgimpwidgets/gimpquerybox.c
@@ -186,7 +186,7 @@ create_query_box (const gchar *title,
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
- gtk_container_add (GTK_CONTAINER (content_area), hbox);
+ gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE, 0);
gtk_widget_show (hbox);
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG);
@@ -211,7 +211,8 @@ create_query_box (const gchar *title,
content_area = gtk_dialog_get_content_area (GTK_DIALOG (query_box->qbox));
gtk_container_set_border_width (GTK_CONTAINER (query_box->vbox), 12);
- gtk_container_add (GTK_CONTAINER (content_area), query_box->vbox);
+ gtk_box_pack_start (GTK_BOX (content_area), query_box->vbox,
+ TRUE, TRUE, 0);
}
gtk_widget_show (query_box->vbox);
diff --git a/libgimpwidgets/gimpunitmenu.c b/libgimpwidgets/gimpunitmenu.c
index b0a5d36..08bce07 100644
--- a/libgimpwidgets/gimpunitmenu.c
+++ b/libgimpwidgets/gimpunitmenu.c
@@ -631,8 +631,8 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu)
/* the main vbox */
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 2);
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (menu->selection))),
- vbox);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (menu->selection))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
/* the selection list */
@@ -642,7 +642,7 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_NEVER,
GTK_POLICY_ALWAYS);
- gtk_container_add (GTK_CONTAINER (vbox), scrolled_win);
+ gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE, TRUE, 0);
gtk_widget_show (scrolled_win);
list = gtk_list_store_new (NUM_COLUMNS, G_TYPE_STRING, G_TYPE_STRING,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]