[gthumb] use gtk_box_new instead of gtk_[vh]box_new



commit b0b1a720b09293d8cc05d2d6766bcd0508ec7c06
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Nov 1 17:13:59 2011 +0100

    use gtk_box_new instead of gtk_[vh]box_new

 .../edit_metadata/gth-edit-metadata-dialog.c       |    2 +-
 extensions/file_manager/actions.c                  |    2 +-
 extensions/file_viewer/gth-file-viewer-page.c      |    5 +++--
 extensions/gstreamer_tools/gth-media-viewer-page.c |    2 +-
 .../importer/gth-import-destination-button.c       |    4 ++--
 .../rename_series/gth-template-editor-dialog.c     |    2 +-
 extensions/search/callbacks.c                      |    2 +-
 gthumb/gedit-message-area.c                        |    6 +++---
 gthumb/gth-browser.c                               |    4 ++--
 gthumb/gth-embedded-dialog.c                       |    4 ++--
 gthumb/gth-file-tool.c                             |    2 +-
 gthumb/gth-filter.c                                |    4 ++--
 gthumb/gth-filterbar.c                             |    2 +-
 gthumb/gth-histogram-view.c                        |    6 +++---
 gthumb/gth-info-bar.c                              |    4 ++--
 gthumb/gth-menu-button.c                           |    4 ++--
 gthumb/gth-progress-dialog.c                       |    6 +++---
 gthumb/gth-request-dialog.c                        |    4 ++--
 gthumb/gth-statusbar.c                             |    6 +++---
 gthumb/gth-tags-entry.c                            |    2 +-
 gthumb/gth-test-category.c                         |    2 +-
 gthumb/gth-test-selector.c                         |    6 +++---
 gthumb/gth-test-simple.c                           |    6 +++---
 gthumb/gth-time-selector.c                         |    9 +++++----
 gthumb/gth-toggle-menu-tool-button.c               |    6 +++---
 gthumb/gth-toolbox.c                               |    6 +++---
 gthumb/gth-window.c                                |    6 +++---
 gthumb/gtk-utils.c                                 |   10 +++++-----
 28 files changed, 63 insertions(+), 61 deletions(-)
---
diff --git a/extensions/edit_metadata/gth-edit-metadata-dialog.c b/extensions/edit_metadata/gth-edit-metadata-dialog.c
index 7291b21..c391cc3 100644
--- a/extensions/edit_metadata/gth-edit-metadata-dialog.c
+++ b/extensions/edit_metadata/gth-edit-metadata-dialog.c
@@ -56,7 +56,7 @@ gth_edit_metadata_dialog_init (GthEditMetadataDialog *self)
 	gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
 	gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_SAVE, GTK_RESPONSE_OK);
 
-	vbox = gtk_vbox_new (FALSE, 6);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 	gtk_widget_show (vbox);
 	gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))), vbox, TRUE, TRUE, 0);
diff --git a/extensions/file_manager/actions.c b/extensions/file_manager/actions.c
index 09746ef..4caac07 100644
--- a/extensions/file_manager/actions.c
+++ b/extensions/file_manager/actions.c
@@ -915,7 +915,7 @@ copy_to_folder_dialog (GthBrowser *browser,
 	gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (dialog), start_uri);
 	g_free(start_uri);
 
-	box = gtk_vbox_new (FALSE, 6);
+	box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_container_set_border_width (GTK_CONTAINER (box), 6);
 	gtk_widget_show (box);
 
diff --git a/extensions/file_viewer/gth-file-viewer-page.c b/extensions/file_viewer/gth-file-viewer-page.c
index 43ccd42..297707e 100644
--- a/extensions/file_viewer/gth-file-viewer-page.c
+++ b/extensions/file_viewer/gth-file-viewer-page.c
@@ -107,11 +107,12 @@ gth_file_viewer_page_real_activate (GthViewerPage *base,
 	self->priv->viewer = gtk_event_box_new ();
 	gtk_widget_show (self->priv->viewer);
 
-	vbox1 = gtk_vbox_new (TRUE, 0);
+	vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+	gtk_box_set_homogeneous (GTK_BOX (vbox1), TRUE);
 	gtk_widget_show (vbox1);
 	gtk_container_add (GTK_CONTAINER (self->priv->viewer), vbox1);
 
-	vbox2 = gtk_vbox_new (FALSE, 6);
+	vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_widget_show (vbox2);
 	gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, FALSE, 0);
 
diff --git a/extensions/gstreamer_tools/gth-media-viewer-page.c b/extensions/gstreamer_tools/gth-media-viewer-page.c
index bd73184..4e8a83e 100644
--- a/extensions/gstreamer_tools/gth-media-viewer-page.c
+++ b/extensions/gstreamer_tools/gth-media-viewer-page.c
@@ -696,7 +696,7 @@ gth_media_viewer_page_real_activate (GthViewerPage *base,
 				      self);
 	gtk_ui_manager_insert_action_group (gth_browser_get_ui_manager (browser), self->priv->actions, 0);
 
-	self->priv->area_box = gtk_vbox_new (FALSE, 0);
+	self->priv->area_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
 	/* video area */
 
diff --git a/extensions/importer/gth-import-destination-button.c b/extensions/importer/gth-import-destination-button.c
index 0fba988..299f813 100644
--- a/extensions/importer/gth-import-destination-button.c
+++ b/extensions/importer/gth-import-destination-button.c
@@ -117,7 +117,7 @@ gth_import_destination_button_init (GthImportDestinationButton *self)
 
 	self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_IMPORT_DESTINATION_BUTTON, GthImportDestinationButtonPrivate);
 
-	box = gtk_hbox_new (FALSE, 6);
+	box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 	gtk_widget_show (box);
 	gtk_container_add (GTK_CONTAINER (self), box);
 
@@ -125,7 +125,7 @@ gth_import_destination_button_init (GthImportDestinationButton *self)
 	gtk_widget_show (self->priv->destination_icon);
 	gtk_box_pack_start (GTK_BOX (box), self->priv->destination_icon, FALSE, FALSE, 0);
 
-	label_box = gtk_hbox_new (FALSE, 0);
+	label_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 	gtk_widget_show (label_box);
 	gtk_box_pack_start (GTK_BOX (box), label_box, TRUE, TRUE, 0);
 
diff --git a/extensions/rename_series/gth-template-editor-dialog.c b/extensions/rename_series/gth-template-editor-dialog.c
index ba4b105..9b9d8ab 100644
--- a/extensions/rename_series/gth-template-editor-dialog.c
+++ b/extensions/rename_series/gth-template-editor-dialog.c
@@ -165,7 +165,7 @@ gth_template_editor_dialog_construct (GthTemplateEditorDialog *self,
 	gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
 	gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_OK, GTK_RESPONSE_OK);
 
-    	self->priv->content = gtk_vbox_new (FALSE, 6);
+    	self->priv->content = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
     	gtk_container_set_border_width (GTK_CONTAINER (self->priv->content), 5);
     	gtk_widget_show (self->priv->content);
   	gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))), self->priv->content, TRUE, TRUE, 0);
diff --git a/extensions/search/callbacks.c b/extensions/search/callbacks.c
index 31c1152..51a05cd 100644
--- a/extensions/search/callbacks.c
+++ b/extensions/search/callbacks.c
@@ -166,7 +166,7 @@ search__dlg_catalog_properties (GtkBuilder  *builder,
 	if (! _g_content_type_is_a (g_file_info_get_content_type (file_data->info), "gthumb/search"))
 		return;
 
-	vbox = gtk_vbox_new (FALSE, 6);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_widget_show (vbox);
 	gtk_box_pack_start (GTK_BOX (_gtk_builder_get_widget (builder, "general_vbox")), vbox, FALSE, FALSE, 0);
 
diff --git a/gthumb/gedit-message-area.c b/gthumb/gedit-message-area.c
index 79e9669..d41e5ae 100644
--- a/gthumb/gedit-message-area.c
+++ b/gthumb/gedit-message-area.c
@@ -170,11 +170,11 @@ gedit_message_area_init (GeditMessageArea *message_area)
 
 	message_area->priv = GEDIT_MESSAGE_AREA_GET_PRIVATE (message_area);
 
-	message_area->priv->main_hbox = gtk_hbox_new (FALSE, 3); /* FIXME: use style properties */
+	message_area->priv->main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); /* FIXME: use style properties */
 	gtk_widget_show (message_area->priv->main_hbox);
 	gtk_container_set_border_width (GTK_CONTAINER (message_area->priv->main_hbox), 3); /* FIXME: use style properties */
 
-	vbox = gtk_vbox_new (FALSE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_show (vbox);
 	gtk_box_pack_end (GTK_BOX (message_area->priv->main_hbox),
 			  vbox,
@@ -182,7 +182,7 @@ gedit_message_area_init (GeditMessageArea *message_area)
 			  FALSE,
 			  0);
 
-	message_area->priv->action_area = gtk_hbox_new (FALSE, 3); /* FIXME: use style properties */
+	message_area->priv->action_area = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3); /* FIXME: use style properties */
 	gtk_widget_show (message_area->priv->action_area);
 	gtk_box_pack_end (GTK_BOX (vbox),
 			  message_area->priv->action_area,
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 7af99ca..3e0c0db 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4308,7 +4308,7 @@ gth_browser_init (GthBrowser *browser)
 
 	/* the box that contains the location and the folder list.  */
 
-	vbox = gtk_vbox_new (FALSE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_show (vbox);
 	gtk_paned_pack1 (GTK_PANED (browser->priv->browser_sidebar), vbox, TRUE, TRUE);
 
@@ -4409,7 +4409,7 @@ gth_browser_init (GthBrowser *browser)
 
 	/* the box that contains the file list and the filter bar.  */
 
-	vbox = gtk_vbox_new (FALSE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_show (vbox);
 	gtk_paned_pack2 (GTK_PANED (browser->priv->browser_container), vbox, TRUE, TRUE);
 
diff --git a/gthumb/gth-embedded-dialog.c b/gthumb/gth-embedded-dialog.c
index 1ffbd08..afbad23 100644
--- a/gthumb/gth-embedded-dialog.c
+++ b/gthumb/gth-embedded-dialog.c
@@ -52,14 +52,14 @@ gth_embedded_dialog_init (GthEmbeddedDialog *self)
 	
 	self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_EMBEDDED_DIALOG, GthEmbeddedDialogPrivate);
 
-	hbox_content = gtk_hbox_new (FALSE, 8);
+	hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
 	gtk_widget_show (hbox_content);
 
 	self->priv->icon_image = image = gtk_image_new ();
 	gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
 	gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.5);
 
-	vbox = gtk_vbox_new (FALSE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_show (vbox);
 	gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0);
 
diff --git a/gthumb/gth-file-tool.c b/gthumb/gth-file-tool.c
index 01b4392..890eb9b 100644
--- a/gthumb/gth-file-tool.c
+++ b/gthumb/gth-file-tool.c
@@ -148,7 +148,7 @@ gth_file_tool_construct (GthFileTool *self,
 	self->priv->options_title = options_title;
 	self->priv->separator = separator;
 
-	hbox = gtk_hbox_new (FALSE, 6);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 
 	icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
 	gtk_widget_show (icon);
diff --git a/gthumb/gth-filter.c b/gthumb/gth-filter.c
index 3c1e294..479759d 100644
--- a/gthumb/gth-filter.c
+++ b/gthumb/gth-filter.c
@@ -261,7 +261,7 @@ create_control_for_files (GthFilter *filter)
 	GtkWidget *label;
 	char      *value;
 
-	control = gtk_hbox_new (FALSE, 6);
+	control = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 
 	/* limit label */
 
@@ -333,7 +333,7 @@ create_control_for_size (GthFilter *filter)
 	int        i, size_idx;
 	gboolean   size_set = FALSE;
 
-	control = gtk_hbox_new (FALSE, 6);
+	control = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 
 	/* limit label */
 
diff --git a/gthumb/gth-filterbar.c b/gthumb/gth-filterbar.c
index 5e72255..5ca6606 100644
--- a/gthumb/gth-filterbar.c
+++ b/gthumb/gth-filterbar.c
@@ -392,7 +392,7 @@ gth_filterbar_construct (GthFilterbar *filterbar,
 
 	/* test control box */
 
-	filterbar->priv->control_box = gtk_hbox_new (FALSE, 0);
+	filterbar->priv->control_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 	gtk_widget_show (filterbar->priv->control_box);
 
 	/* close button */
diff --git a/gthumb/gth-histogram-view.c b/gthumb/gth-histogram-view.c
index 7a835f3..d00e8ca 100644
--- a/gthumb/gth-histogram-view.c
+++ b/gthumb/gth-histogram-view.c
@@ -788,13 +788,13 @@ gth_histogram_view_init (GthHistogramView *self)
 
 	/* topbar */
 
-	box = gtk_hbox_new (FALSE, 6);
+	box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 	gtk_widget_show (box);
 	gtk_box_pack_start (GTK_BOX (self), box, FALSE, FALSE, 0);
 
 	/* linear / logarithmic buttons */
 
-	sub_box = gtk_hbox_new (FALSE, 0);
+	sub_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 	gtk_widget_show (sub_box);
 	gtk_box_pack_end (GTK_BOX (box), sub_box, FALSE, FALSE, 0);
 
@@ -824,7 +824,7 @@ gth_histogram_view_init (GthHistogramView *self)
 
 	/* channel selector */
 
-	sub_box = gtk_hbox_new (FALSE, 6);
+	sub_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 	gtk_widget_show (sub_box);
 	gtk_box_pack_start (GTK_BOX (box), sub_box, FALSE, FALSE, 0);
 
diff --git a/gthumb/gth-info-bar.c b/gthumb/gth-info-bar.c
index c0daf34..6b2c2f6 100644
--- a/gthumb/gth-info-bar.c
+++ b/gthumb/gth-info-bar.c
@@ -58,14 +58,14 @@ gth_info_bar_construct (GthInfoBar *self)
 	GtkWidget *secondary_label;
 	GtkWidget *area;
 	
-	hbox_content = gtk_hbox_new (FALSE, 8);
+	hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
 	gtk_widget_show (hbox_content);
 
 	self->priv->icon_image = image = gtk_image_new ();
 	gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
 	gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.5);
 
-	vbox = gtk_vbox_new (FALSE, 6);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_widget_show (vbox);
 	gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0);
 
diff --git a/gthumb/gth-menu-button.c b/gthumb/gth-menu-button.c
index 21795fb..d18c855 100644
--- a/gthumb/gth-menu-button.c
+++ b/gthumb/gth-menu-button.c
@@ -374,11 +374,11 @@ gth_menu_button_init (GthMenuButton *self)
 
 	/* box */
 
-	main_box = gtk_hbox_new (FALSE, image_spacing);
+	main_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, image_spacing);
 	gtk_widget_show (main_box);
 	gtk_container_add (GTK_CONTAINER (self), main_box);
 
-	box = gtk_hbox_new (FALSE, image_spacing);
+	box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, image_spacing);
 	gtk_widget_show (box);
 	gtk_box_pack_start (GTK_BOX (box), self->priv->icon_widget, FALSE, TRUE, 0);
 	gtk_box_pack_end (GTK_BOX (box), self->priv->label_widget, TRUE, TRUE, 0);
diff --git a/gthumb/gth-progress-dialog.c b/gthumb/gth-progress-dialog.c
index a35e2a0..0e1f242 100644
--- a/gthumb/gth-progress-dialog.c
+++ b/gthumb/gth-progress-dialog.c
@@ -108,7 +108,7 @@ gth_task_progress_init (GthTaskProgress *self)
 	self->task_completed = 0;
 	self->pulse_event = 0;
 
-	vbox = gtk_vbox_new (FALSE, 3);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
 	gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
 	gtk_widget_show (vbox);
 	gtk_box_pack_start (GTK_BOX (self), vbox, TRUE, TRUE, 0);
@@ -133,7 +133,7 @@ gth_task_progress_init (GthTaskProgress *self)
 	gtk_widget_show (self->details_label);
 	gtk_box_pack_start (GTK_BOX (vbox), self->details_label, FALSE, FALSE, 0);
 
-	vbox = gtk_vbox_new (FALSE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_show (vbox);
 	gtk_box_pack_start (GTK_BOX (self), vbox, FALSE, FALSE, 0);
 
@@ -298,7 +298,7 @@ gth_progress_dialog_init (GthProgressDialog *self)
 
 	gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
 
-	self->priv->task_box = gtk_vbox_new (FALSE, 6);
+	self->priv->task_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_widget_show (self->priv->task_box);
 	gtk_container_set_border_width (GTK_CONTAINER (self->priv->task_box), 5);
 	gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))), self->priv->task_box, FALSE, FALSE, 0);
diff --git a/gthumb/gth-request-dialog.c b/gthumb/gth-request-dialog.c
index a5c990c..67cf9d1 100644
--- a/gthumb/gth-request-dialog.c
+++ b/gthumb/gth-request-dialog.c
@@ -127,8 +127,8 @@ _gth_request_dialog_construct (GthRequestDialog *self,
 	gtk_label_set_line_wrap (GTK_LABEL (self->priv->info_label), TRUE);
 	gtk_container_add (GTK_CONTAINER (gtk_info_bar_get_content_area (GTK_INFO_BAR (self->priv->infobar))), self->priv->info_label);
 
-	hbox = gtk_hbox_new (FALSE, 6);
-	vbox = gtk_vbox_new (FALSE, 6);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 
 	gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
 	gtk_box_set_spacing (GTK_BOX (hbox), 12);
diff --git a/gthumb/gth-statusbar.c b/gthumb/gth-statusbar.c
index 0ccfaaf..4cb57cd 100644
--- a/gthumb/gth-statusbar.c
+++ b/gthumb/gth-statusbar.c
@@ -62,7 +62,7 @@ gth_statusbar_init (GthStatusbar *statusbar)
 
 	/* Progress info */
 
-	statusbar->priv->progress_box = gtk_vbox_new (FALSE, 0);
+	statusbar->priv->progress_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_hide (statusbar->priv->progress_box);
 	gtk_box_pack_start (GTK_BOX (statusbar), statusbar->priv->progress_box, FALSE, FALSE, 0);
 
@@ -70,7 +70,7 @@ gth_statusbar_init (GthStatusbar *statusbar)
 	gtk_widget_show (separator);
 	gtk_box_pack_start (GTK_BOX (statusbar->priv->progress_box), separator, FALSE, FALSE, 0);
 
-	hbox = gtk_hbox_new (FALSE, 6);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 	gtk_widget_show (hbox);
 	gtk_box_pack_start (GTK_BOX (statusbar->priv->progress_box), hbox, FALSE, FALSE, 0);
 
@@ -78,7 +78,7 @@ gth_statusbar_init (GthStatusbar *statusbar)
 	gtk_widget_show (statusbar->priv->progress_label);
 	gtk_box_pack_start (GTK_BOX (hbox), statusbar->priv->progress_label, TRUE, TRUE, 0);
 
-	vbox = gtk_vbox_new (FALSE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE);
 	gtk_widget_show (vbox);
 	gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0);
diff --git a/gthumb/gth-tags-entry.c b/gthumb/gth-tags-entry.c
index b88183c..2b6144d 100644
--- a/gthumb/gth-tags-entry.c
+++ b/gthumb/gth-tags-entry.c
@@ -684,7 +684,7 @@ gth_tags_entry_init (GthTagsEntry *self)
 
 	/* entry / expander button box */
 
-	hbox = gtk_hbox_new (FALSE, 3);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 3);
 	gtk_widget_show (hbox);
 	gtk_box_pack_start (GTK_BOX (self), hbox, FALSE, FALSE, 0);
 
diff --git a/gthumb/gth-test-category.c b/gthumb/gth-test-category.c
index f099485..f7ca177 100644
--- a/gthumb/gth-test-category.c
+++ b/gthumb/gth-test-category.c
@@ -187,7 +187,7 @@ gth_test_category_real_create_control (GthTest *base)
 
 	test = (GthTestCategory *) base;
 
-	control = gtk_hbox_new (FALSE, 6);
+	control = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 
 	/* text operation combo box */
 
diff --git a/gthumb/gth-test-selector.c b/gthumb/gth-test-selector.c
index 6fbb4c2..a212ace 100644
--- a/gthumb/gth-test-selector.c
+++ b/gthumb/gth-test-selector.c
@@ -240,7 +240,7 @@ gth_test_selector_construct (GthTestSelector *self,
 
 	/* test control box */
 
-	self->priv->control_box = gtk_hbox_new (FALSE, 0);
+	self->priv->control_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 	gtk_widget_show (self->priv->control_box);
 
 	/**/
@@ -269,10 +269,10 @@ gth_test_selector_construct (GthTestSelector *self,
 
 	/**/
 
-	vbox = gtk_vbox_new (FALSE, 0);
+	vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_show (vbox);
 
-	hbox = gtk_hbox_new (FALSE, 6);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 	gtk_widget_show (hbox);
 
 	gtk_box_pack_start (GTK_BOX (hbox), self->priv->test_combo_box, FALSE, FALSE, 0);
diff --git a/gthumb/gth-test-simple.c b/gthumb/gth-test-simple.c
index 69bad94..5bc7366 100644
--- a/gthumb/gth-test-simple.c
+++ b/gthumb/gth-test-simple.c
@@ -235,7 +235,7 @@ create_control_for_size (GthTestSimple *test)
 	int        i, op_idx, size_idx;
 	gboolean   size_set = FALSE;
 
-	control = gtk_hbox_new (FALSE, 6);
+	control = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 
 	/* text operation combo box */
 
@@ -335,7 +335,7 @@ create_control_for_string (GthTestSimple *test)
 	GtkWidget *control;
 	int        i, op_idx;
 
-	control = gtk_hbox_new (FALSE, 6);
+	control = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 
 	/* text operation combo box */
 
@@ -410,7 +410,7 @@ create_control_for_date (GthTestSimple *test)
 	GtkWidget *control;
 	int        i, op_idx;
 
-	control = gtk_hbox_new (FALSE, 6);
+	control = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 
 	/* date operation combo box */
 
diff --git a/gthumb/gth-time-selector.c b/gthumb/gth-time-selector.c
index 919d21e..0e1b65f 100644
--- a/gthumb/gth-time-selector.c
+++ b/gthumb/gth-time-selector.c
@@ -414,7 +414,7 @@ gth_time_selector_construct (GthTimeSelector *self)
 
 	g_object_set (self, "spacing", 6, NULL);
 
-	box = gtk_hbox_new (FALSE, 0);
+	box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 	gtk_widget_show (box);
 	gtk_box_pack_start (GTK_BOX (self), box, FALSE, FALSE, 0);
 
@@ -448,7 +448,7 @@ gth_time_selector_construct (GthTimeSelector *self)
 	gtk_widget_show (frame);
 	gtk_container_add (GTK_CONTAINER (self->priv->calendar_popup), frame);
 
-	box = gtk_vbox_new (FALSE, 6);
+	box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 	gtk_container_set_border_width (GTK_CONTAINER (box), 6);
 	gtk_widget_show (box);
 	gtk_container_add (GTK_CONTAINER (frame), box);
@@ -466,7 +466,8 @@ gth_time_selector_construct (GthTimeSelector *self)
 					  G_CALLBACK (calendar_day_selected_cb),
 					  self);
 
-	button_box = gtk_hbox_new (TRUE, 6);
+	button_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+	gtk_box_set_homogeneous (GTK_BOX (button_box), TRUE);
 	gtk_widget_show (button_box);
 	gtk_box_pack_start (GTK_BOX (box), button_box, FALSE, FALSE, 0);
 
@@ -486,7 +487,7 @@ gth_time_selector_construct (GthTimeSelector *self)
 			  G_CALLBACK (now_button_clicked_cb),
 			  self);
 
-	time_box = gtk_hbox_new (FALSE, 0);
+	time_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 	gtk_widget_show (time_box);
 	gtk_box_pack_start (GTK_BOX (self), time_box, FALSE, FALSE, 0);
 
diff --git a/gthumb/gth-toggle-menu-tool-button.c b/gthumb/gth-toggle-menu-tool-button.c
index ab8ab04..e2b214e 100644
--- a/gthumb/gth-toggle-menu-tool-button.c
+++ b/gthumb/gth-toggle-menu-tool-button.c
@@ -292,14 +292,14 @@ gth_toggle_menu_tool_button_construct_contents (GtkToolItem *tool_item)
 	if (size_group != NULL)
 		gtk_size_group_add_widget (size_group, arrow_align);
 
-	main_box = gtk_hbox_new (FALSE, icon_spacing);
+	main_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, icon_spacing);
 	gtk_widget_show (main_box);
 	gtk_container_add (GTK_CONTAINER (button->priv->toggle_button), main_box);
 
 	if (style == GTK_TOOLBAR_BOTH_HORIZ)
-		box = gtk_hbox_new (FALSE, icon_spacing);
+		box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, icon_spacing);
 	else
-		box = gtk_vbox_new (FALSE, icon_spacing);
+		box = gtk_box_new (GTK_ORIENTATION_VERTICAL, icon_spacing);
 	gtk_widget_show (box);
 
 	gtk_box_pack_start (GTK_BOX (main_box), box, TRUE, TRUE, 0);
diff --git a/gthumb/gth-toolbox.c b/gthumb/gth-toolbox.c
index e1e8573..a43681a 100644
--- a/gthumb/gth-toolbox.c
+++ b/gthumb/gth-toolbox.c
@@ -141,21 +141,21 @@ gth_toolbox_init (GthToolbox *toolbox)
 	gtk_widget_show (scrolled);
 	gtk_notebook_append_page (GTK_NOTEBOOK (toolbox), scrolled, NULL);
 
-	toolbox->priv->box = gtk_vbox_new (FALSE, 0);
+	toolbox->priv->box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_box_set_spacing (GTK_BOX (toolbox->priv->box), 0);
 	gtk_widget_show (toolbox->priv->box);
 	gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled), toolbox->priv->box);
 
 	/* tool options page */
 
-	options_box = gtk_vbox_new (FALSE, 0);
+	options_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 	gtk_widget_show (options_box);
 	gtk_notebook_append_page (GTK_NOTEBOOK (toolbox), options_box, NULL);
 
 	header_align = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);
 	gtk_alignment_set_padding (GTK_ALIGNMENT (header_align), 5, 5, 0, 0);
 
-	options_header = gtk_hbox_new (FALSE, 6);
+	options_header = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 	gtk_widget_show (options_header);
 	gtk_container_add (GTK_CONTAINER (header_align), options_header);
 
diff --git a/gthumb/gth-window.c b/gthumb/gth-window.c
index aead18c..016c24f 100644
--- a/gthumb/gth-window.c
+++ b/gthumb/gth-window.c
@@ -87,17 +87,17 @@ gth_window_set_n_pages (GthWindow *self,
 	for (i = 0; i < n_pages; i++) {
 		GtkWidget *page;
 
-		page = gtk_vbox_new (FALSE, 0);
+		page = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 		gtk_widget_show (page);
 		gtk_notebook_append_page (GTK_NOTEBOOK (self->priv->notebook),
 					  page,
 					  NULL);
 
-		self->priv->toolbars[i] = gtk_hbox_new (FALSE, 0);
+		self->priv->toolbars[i] = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 		gtk_widget_show (self->priv->toolbars[i]);
 		gtk_box_pack_start (GTK_BOX (page), self->priv->toolbars[i], FALSE, FALSE, 0);
 
-		self->priv->contents[i] = gtk_hbox_new (FALSE, 0);
+		self->priv->contents[i] = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 		gtk_widget_show (self->priv->contents[i]);
 		gtk_box_pack_start (GTK_BOX (page), self->priv->contents[i], TRUE, TRUE, 0);
 	}
diff --git a/gthumb/gtk-utils.c b/gthumb/gtk-utils.c
index 4f50e66..19338c5 100644
--- a/gthumb/gtk-utils.c
+++ b/gthumb/gtk-utils.c
@@ -167,7 +167,7 @@ _gtk_message_dialog_new (GtkWindow        *parent,
 	gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
 	gtk_label_set_selectable (GTK_LABEL (label), TRUE);
 
-	hbox = gtk_hbox_new (FALSE, 18);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 18);
 	gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
 
 	gtk_box_pack_start (GTK_BOX (hbox), image,
@@ -239,7 +239,7 @@ _gtk_yesno_dialog_new (GtkWindow        *parent,
 	gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
 	gtk_label_set_selectable (GTK_LABEL (label), TRUE);
 
-	hbox = gtk_hbox_new (FALSE, 12);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
 	gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
 
 	gtk_box_pack_start (GTK_BOX (hbox), image,
@@ -318,7 +318,7 @@ _gtk_yesno_dialog_with_checkbutton_new (GtkWindow        *parent,
 	gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
 	gtk_label_set_selectable (GTK_LABEL (label), TRUE);
 
-	hbox = gtk_hbox_new (FALSE, 12);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
 	gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
 
 	gtk_box_pack_start (GTK_BOX (hbox), image,
@@ -424,7 +424,7 @@ _gtk_message_dialog_with_checkbutton_new (GtkWindow        *parent,
 	gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
 	gtk_label_set_selectable (GTK_LABEL (label), TRUE);
 
-	hbox = gtk_hbox_new (FALSE, 6);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
 	gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
 
 	gtk_box_pack_start (GTK_BOX (hbox), image,
@@ -1222,7 +1222,7 @@ gimp_scale_entry_new (GtkWidget *parent_box,
 	gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE);
 	gtk_scale_set_digits (GTK_SCALE (scale), digits);
 
-	hbox = gtk_hbox_new (FALSE, 5);
+	hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
 	gtk_box_pack_start (GTK_BOX (hbox), scale, TRUE, TRUE, 0);
 	gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]