[gthumb] removed use of Gtk[HV]Box and Gtk[HV]Separator



commit d33d31bc07b2da1c6c00a5cacb007c0eb6fd582b
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Mar 6 14:37:31 2012 +0100

    removed use of Gtk[HV]Box and Gtk[HV]Separator

 extensions/edit_metadata/gth-edit-general-page.c |    3 ++-
 extensions/edit_metadata/gth-edit-general-page.h |    4 ++--
 extensions/exiv2_tools/gth-edit-iptc-page.c      |    3 ++-
 extensions/exiv2_tools/gth-edit-iptc-page.h      |    4 ++--
 extensions/map_view/gth-map-view.c               |    3 ++-
 extensions/map_view/gth-map-view.h               |    4 ++--
 extensions/rename_series/gth-template-selector.c |    4 +++-
 extensions/rename_series/gth-template-selector.h |    4 ++--
 extensions/search/gth-search-editor.c            |    3 ++-
 extensions/search/gth-search-editor.h            |    4 ++--
 extensions/slideshow/gth-slideshow-preferences.c |    3 ++-
 extensions/slideshow/gth-slideshow-preferences.h |    4 ++--
 gthumb/gedit-message-area.c                      |    3 ++-
 gthumb/gedit-message-area.h                      |    4 ++--
 gthumb/gth-file-properties.c                     |    3 ++-
 gthumb/gth-file-properties.h                     |    4 ++--
 gthumb/gth-filterbar.c                           |    3 ++-
 gthumb/gth-filterbar.h                           |    4 ++--
 gthumb/gth-multipage.c                           |    4 +++-
 gthumb/gth-multipage.h                           |    4 ++--
 gthumb/gth-progress-dialog.c                     |    8 +++++---
 gthumb/gth-statusbar.c                           |    2 +-
 gthumb/gth-tags-entry.c                          |    3 ++-
 gthumb/gth-tags-entry.h                          |    4 ++--
 gthumb/gth-test-selector.c                       |    3 ++-
 gthumb/gth-test-selector.h                       |    4 ++--
 gthumb/gth-time-selector.c                       |    4 +++-
 gthumb/gth-time-selector.h                       |    4 ++--
 gthumb/gth-toolbox.c                             |    2 +-
 29 files changed, 62 insertions(+), 44 deletions(-)
---
diff --git a/extensions/edit_metadata/gth-edit-general-page.c b/extensions/edit_metadata/gth-edit-general-page.c
index cd64a2f..0bdd225 100644
--- a/extensions/edit_metadata/gth-edit-general-page.c
+++ b/extensions/edit_metadata/gth-edit-general-page.c
@@ -56,7 +56,7 @@ static void gth_edit_general_page_gth_edit_general_page_interface_init (GthEditC
 
 G_DEFINE_TYPE_WITH_CODE (GthEditGeneralPage,
 			 gth_edit_general_page,
-			 GTK_TYPE_VBOX,
+			 GTK_TYPE_BOX,
 			 G_IMPLEMENT_INTERFACE (GTH_TYPE_EDIT_COMMENT_PAGE,
 					 	gth_edit_general_page_gth_edit_general_page_interface_init))
 
@@ -537,6 +537,7 @@ gth_edit_general_page_init (GthEditGeneralPage *self)
 	self->priv->info = NULL;
 
 	gtk_container_set_border_width (GTK_CONTAINER (self), 12);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 
 	self->priv->builder = _gtk_builder_new_from_file ("edit-comment-page.ui", "edit_metadata");
 	gtk_box_pack_start (GTK_BOX (self), _gtk_builder_get_widget (self->priv->builder, "content"), TRUE, TRUE, 0);
diff --git a/extensions/edit_metadata/gth-edit-general-page.h b/extensions/edit_metadata/gth-edit-general-page.h
index 0398daa..472a20e 100644
--- a/extensions/edit_metadata/gth-edit-general-page.h
+++ b/extensions/edit_metadata/gth-edit-general-page.h
@@ -39,13 +39,13 @@ typedef struct _GthEditGeneralPageClass    GthEditGeneralPageClass;
 
 struct _GthEditGeneralPage
 {
-	GtkVBox __parent;
+	GtkBox __parent;
 	GthEditGeneralPagePrivate *priv;
 };
 
 struct _GthEditGeneralPageClass
 {
-	GtkVBoxClass __parent_class;	
+	GtkBoxClass __parent_class;
 };
 
 GType gth_edit_general_page_get_type (void) G_GNUC_CONST;
diff --git a/extensions/exiv2_tools/gth-edit-iptc-page.c b/extensions/exiv2_tools/gth-edit-iptc-page.c
index bc4fe7a..9d1d7c4 100644
--- a/extensions/exiv2_tools/gth-edit-iptc-page.c
+++ b/extensions/exiv2_tools/gth-edit-iptc-page.c
@@ -35,7 +35,7 @@ static void gth_edit_iptc_page_gth_edit_comment_page_interface_init (GthEditComm
 
 G_DEFINE_TYPE_WITH_CODE (GthEditIptcPage,
 			 gth_edit_iptc_page,
-			 GTK_TYPE_VBOX,
+			 GTK_TYPE_BOX,
 			 G_IMPLEMENT_INTERFACE (GTH_TYPE_EDIT_COMMENT_PAGE,
 					        gth_edit_iptc_page_gth_edit_comment_page_interface_init))
 
@@ -228,6 +228,7 @@ gth_edit_iptc_page_init (GthEditIptcPage *self)
 	self->priv->info = NULL;
 
 	gtk_container_set_border_width (GTK_CONTAINER (self), 12);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 
 	self->priv->builder = _gtk_builder_new_from_file ("edit-exiv2-page.ui", "exiv2_tools");
   	gtk_box_pack_start (GTK_BOX (self), _gtk_builder_get_widget (self->priv->builder, "content"), TRUE, TRUE, 0);
diff --git a/extensions/exiv2_tools/gth-edit-iptc-page.h b/extensions/exiv2_tools/gth-edit-iptc-page.h
index d99fad1..b09d361 100644
--- a/extensions/exiv2_tools/gth-edit-iptc-page.h
+++ b/extensions/exiv2_tools/gth-edit-iptc-page.h
@@ -39,13 +39,13 @@ typedef struct _GthEditIptcPageClass    GthEditIptcPageClass;
 
 struct _GthEditIptcPage
 {
-	GtkVBox __parent;
+	GtkBox __parent;
 	GthEditIptcPagePrivate *priv;
 };
 
 struct _GthEditIptcPageClass
 {
-	GtkVBoxClass __parent_class;	
+	GtkBoxClass __parent_class;
 };
 
 GType gth_edit_iptc_page_get_type (void) G_GNUC_CONST;
diff --git a/extensions/map_view/gth-map-view.c b/extensions/map_view/gth-map-view.c
index 6f80740..1d61561 100644
--- a/extensions/map_view/gth-map-view.c
+++ b/extensions/map_view/gth-map-view.c
@@ -37,7 +37,7 @@ static void gth_map_view_gth_property_view_interface_init (GthPropertyViewInterf
 
 G_DEFINE_TYPE_WITH_CODE (GthMapView,
 			 gth_map_view,
-			 GTK_TYPE_VBOX,
+			 GTK_TYPE_BOX,
 			 G_IMPLEMENT_INTERFACE (GTH_TYPE_MULTIPAGE_CHILD,
 					        gth_map_view_gth_multipage_child_interface_init)
 		         G_IMPLEMENT_INTERFACE (GTH_TYPE_PROPERTY_VIEW,
@@ -267,6 +267,7 @@ gth_map_view_init (GthMapView *self)
 
 	gtk_box_set_spacing (GTK_BOX (self), 6);
 	gtk_container_set_border_width (GTK_CONTAINER (self), 2);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 
 	/* No GPS label */
 
diff --git a/extensions/map_view/gth-map-view.h b/extensions/map_view/gth-map-view.h
index b79f568..b2cab45 100644
--- a/extensions/map_view/gth-map-view.h
+++ b/extensions/map_view/gth-map-view.h
@@ -38,12 +38,12 @@ typedef struct _GthMapViewClass GthMapViewClass;
 typedef struct _GthMapViewPrivate GthMapViewPrivate;
 
 struct _GthMapView {
-	GtkVBox parent_instance;
+	GtkBox parent_instance;
 	GthMapViewPrivate *priv;
 };
 
 struct _GthMapViewClass {
-	GtkVBoxClass parent_class;
+	GtkBoxClass parent_class;
 };
 
 GType gth_map_view_get_type (void);
diff --git a/extensions/rename_series/gth-template-selector.c b/extensions/rename_series/gth-template-selector.c
index 48ee043..c066f37 100644
--- a/extensions/rename_series/gth-template-selector.c
+++ b/extensions/rename_series/gth-template-selector.c
@@ -28,7 +28,7 @@
 #define GET_WIDGET(x) (_gtk_builder_get_widget (self->priv->builder, (x)))
 
 
-G_DEFINE_TYPE (GthTemplateSelector, gth_template_selector, GTK_TYPE_HBOX)
+G_DEFINE_TYPE (GthTemplateSelector, gth_template_selector, GTK_TYPE_BOX)
 
 
 enum {
@@ -115,6 +115,8 @@ gth_template_selector_init (GthTemplateSelector *self)
 {
 	self->priv = g_new0 (GthTemplateSelectorPrivate, 1);
 	self->priv->builder = NULL;
+
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_HORIZONTAL);
 }
 
 
diff --git a/extensions/rename_series/gth-template-selector.h b/extensions/rename_series/gth-template-selector.h
index e3027e8..9e0490a 100644
--- a/extensions/rename_series/gth-template-selector.h
+++ b/extensions/rename_series/gth-template-selector.h
@@ -52,12 +52,12 @@ typedef struct _GthTemplateSelectorClass   GthTemplateSelectorClass;
 typedef struct _GthTemplateSelectorPrivate GthTemplateSelectorPrivate;
 
 struct _GthTemplateSelector {
-	GtkHBox parent_instance;
+	GtkBox parent_instance;
 	GthTemplateSelectorPrivate *priv;
 };
 
 struct _GthTemplateSelectorClass {
-	GtkHBoxClass parent_class;
+	GtkBoxClass parent_class;
 
 	void (*add_template)    (GthTemplateSelector *selector);
 	void (*remove_template) (GthTemplateSelector *selector);
diff --git a/extensions/search/gth-search-editor.c b/extensions/search/gth-search-editor.c
index 9b542a5..18698b0 100644
--- a/extensions/search/gth-search-editor.c
+++ b/extensions/search/gth-search-editor.c
@@ -29,7 +29,7 @@
 #define GET_WIDGET(name) _gtk_builder_get_widget (self->priv->builder, (name))
 
 
-G_DEFINE_TYPE (GthSearchEditor, gth_search_editor, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GthSearchEditor, gth_search_editor, GTK_TYPE_BOX)
 
 
 struct _GthSearchEditorPrivate {
@@ -69,6 +69,7 @@ static void
 gth_search_editor_init (GthSearchEditor *dialog)
 {
 	dialog->priv = g_new0 (GthSearchEditorPrivate, 1);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (dialog), GTK_ORIENTATION_VERTICAL);
 }
 
 
diff --git a/extensions/search/gth-search-editor.h b/extensions/search/gth-search-editor.h
index 65cd8cf..5759b9f 100644
--- a/extensions/search/gth-search-editor.h
+++ b/extensions/search/gth-search-editor.h
@@ -37,12 +37,12 @@ typedef struct _GthSearchEditorClass   GthSearchEditorClass;
 typedef struct _GthSearchEditorPrivate GthSearchEditorPrivate;
 
 struct _GthSearchEditor {
-	GtkVBox parent_instance;
+	GtkBox parent_instance;
 	GthSearchEditorPrivate *priv;
 };
 
 struct _GthSearchEditorClass {
-	GtkVBoxClass parent_class;
+	GtkBoxClass parent_class;
 };
 
 GType       gth_search_editor_get_type   (void);
diff --git a/extensions/slideshow/gth-slideshow-preferences.c b/extensions/slideshow/gth-slideshow-preferences.c
index c09de12..859caba 100644
--- a/extensions/slideshow/gth-slideshow-preferences.c
+++ b/extensions/slideshow/gth-slideshow-preferences.c
@@ -25,7 +25,7 @@
 #include "gth-transition.h"
 
 
-G_DEFINE_TYPE (GthSlideshowPreferences, gth_slideshow_preferences, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GthSlideshowPreferences, gth_slideshow_preferences, GTK_TYPE_BOX)
 
 
 enum {
@@ -74,6 +74,7 @@ gth_slideshow_preferences_init (GthSlideshowPreferences *self)
 {
 	self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_SLIDESHOW_PREFERENCES, GthSlideshowPreferencesPrivate);
 	self->priv->builder = NULL;
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 }
 
 
diff --git a/extensions/slideshow/gth-slideshow-preferences.h b/extensions/slideshow/gth-slideshow-preferences.h
index c7445bd..3d4f237 100644
--- a/extensions/slideshow/gth-slideshow-preferences.h
+++ b/extensions/slideshow/gth-slideshow-preferences.h
@@ -39,13 +39,13 @@ typedef struct _GthSlideshowPreferencesPrivate  GthSlideshowPreferencesPrivate;
 
 struct _GthSlideshowPreferences
 {
-	GtkVBox __parent;
+	GtkBox __parent;
 	GthSlideshowPreferencesPrivate *priv;
 };
 
 struct _GthSlideshowPreferencesClass
 {
-	GtkVBoxClass __parent_class;
+	GtkBoxClass __parent_class;
 };
 
 GType         gth_slideshow_preferences_get_type           (void);
diff --git a/gthumb/gedit-message-area.c b/gthumb/gedit-message-area.c
index fd80723..40fdab8 100644
--- a/gthumb/gedit-message-area.c
+++ b/gthumb/gedit-message-area.c
@@ -69,7 +69,7 @@ enum {
 
 static guint signals[LAST_SIGNAL];
 
-G_DEFINE_TYPE(GeditMessageArea, gedit_message_area, GTK_TYPE_HBOX)
+G_DEFINE_TYPE(GeditMessageArea, gedit_message_area, GTK_TYPE_BOX)
 
 static ResponseData *
 get_response_data (GtkWidget *widget,
@@ -166,6 +166,7 @@ gedit_message_area_init (GeditMessageArea *message_area)
 {
 	GtkWidget *vbox;
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (message_area), GTK_ORIENTATION_HORIZONTAL);
 	gtk_widget_push_composite_child ();
 
 	message_area->priv = GEDIT_MESSAGE_AREA_GET_PRIVATE (message_area);
diff --git a/gthumb/gedit-message-area.h b/gthumb/gedit-message-area.h
index c3de6f8..3302740 100644
--- a/gthumb/gedit-message-area.h
+++ b/gthumb/gedit-message-area.h
@@ -53,7 +53,7 @@ typedef struct _GeditMessageArea GeditMessageArea;
 
 struct _GeditMessageArea 
 {
-	GtkHBox parent;
+	GtkBox parent;
 
 	/*< private >*/
 	GeditMessageAreaPrivate *priv;
@@ -66,7 +66,7 @@ typedef struct _GeditMessageAreaClass GeditMessageAreaClass;
 
 struct _GeditMessageAreaClass 
 {
-	GtkHBoxClass parent_class;
+	GtkBoxClass parent_class;
 
 	/* Signals */
 	void (* response) (GeditMessageArea *message_area, gint response_id);
diff --git a/gthumb/gth-file-properties.c b/gthumb/gth-file-properties.c
index 858578a..a6bed3a 100644
--- a/gthumb/gth-file-properties.c
+++ b/gthumb/gth-file-properties.c
@@ -66,7 +66,7 @@ static void gth_file_properties_gth_property_view_interface_init (GthPropertyVie
 
 G_DEFINE_TYPE_WITH_CODE (GthFileProperties,
 			 gth_file_properties,
-			 GTK_TYPE_VBOX,
+			 GTK_TYPE_BOX,
 			 G_IMPLEMENT_INTERFACE (GTH_TYPE_MULTIPAGE_CHILD,
 					 	gth_file_properties_gth_multipage_child_interface_init)
 		         G_IMPLEMENT_INTERFACE (GTH_TYPE_PROPERTY_VIEW,
@@ -331,6 +331,7 @@ gth_file_properties_init (GthFileProperties *self)
 
 	self->priv = GTH_FILE_PROPERTIES_GET_PRIVATE (self);
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 	gtk_box_set_spacing (GTK_BOX (self), 6);
 
 	vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
diff --git a/gthumb/gth-file-properties.h b/gthumb/gth-file-properties.h
index acc7589..a50d8c1 100644
--- a/gthumb/gth-file-properties.h
+++ b/gthumb/gth-file-properties.h
@@ -39,12 +39,12 @@ typedef struct _GthFilePropertiesClass GthFilePropertiesClass;
 typedef struct _GthFilePropertiesPrivate GthFilePropertiesPrivate;
 
 struct _GthFileProperties {
-	GtkVBox parent_instance;
+	GtkBox parent_instance;
 	GthFilePropertiesPrivate *priv;
 };
 
 struct _GthFilePropertiesClass {
-	GtkVBoxClass parent_class;
+	GtkBoxClass parent_class;
 };
 
 GType gth_file_properties_get_type (void);
diff --git a/gthumb/gth-filterbar.c b/gthumb/gth-filterbar.c
index 5ca6606..ba88f72 100644
--- a/gthumb/gth-filterbar.c
+++ b/gthumb/gth-filterbar.c
@@ -66,7 +66,7 @@ struct _GthFilterbarPrivate
 static guint gth_filterbar_signals[LAST_SIGNAL] = { 0 };
 
 
-G_DEFINE_TYPE (GthFilterbar, gth_filterbar, GTK_TYPE_HBOX)
+G_DEFINE_TYPE (GthFilterbar, gth_filterbar, GTK_TYPE_BOX)
 
 
 static void
@@ -130,6 +130,7 @@ static void
 gth_filterbar_init (GthFilterbar *filterbar)
 {
 	filterbar->priv = g_new0 (GthFilterbarPrivate, 1);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (filterbar), GTK_ORIENTATION_HORIZONTAL);
 }
 
 
diff --git a/gthumb/gth-filterbar.h b/gthumb/gth-filterbar.h
index ac666ec..5179f55 100644
--- a/gthumb/gth-filterbar.h
+++ b/gthumb/gth-filterbar.h
@@ -40,13 +40,13 @@ typedef struct _GthFilterbarClass    GthFilterbarClass;
 
 struct _GthFilterbar
 {
-	GtkHBox __parent;
+	GtkBox __parent;
 	GthFilterbarPrivate *priv;
 };
 
 struct _GthFilterbarClass
 {
-	GtkHBoxClass __parent_class;
+	GtkBoxClass __parent_class;
 
 	/* -- Signals -- */
 
diff --git a/gthumb/gth-multipage.c b/gthumb/gth-multipage.c
index 5259923..8714887 100644
--- a/gthumb/gth-multipage.c
+++ b/gthumb/gth-multipage.c
@@ -51,7 +51,7 @@ struct _GthMultipagePrivate {
 };
 
 
-G_DEFINE_TYPE (GthMultipage, gth_multipage, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GthMultipage, gth_multipage, GTK_TYPE_BOX)
 
 
 static void
@@ -124,6 +124,8 @@ gth_multipage_init (GthMultipage *multipage)
 	multipage->priv = GTH_MULTIPAGE_GET_PRIVATE (multipage);
 	multipage->priv->children = NULL;
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (multipage), GTK_ORIENTATION_VERTICAL);
+
 	g_signal_connect (multipage,
 			  "realize",
 			  G_CALLBACK (multipage_realize_cb),
diff --git a/gthumb/gth-multipage.h b/gthumb/gth-multipage.h
index 3326dcf..baaeef4 100644
--- a/gthumb/gth-multipage.h
+++ b/gthumb/gth-multipage.h
@@ -44,13 +44,13 @@ typedef struct _GthMultipagePrivate GthMultipagePrivate;
 
 struct _GthMultipage
 {
-	GtkVBox __parent;
+	GtkBox __parent;
 	GthMultipagePrivate *priv;
 };
 
 struct _GthMultipageClass
 {
-	GtkVBoxClass __parent_class;
+	GtkBoxClass __parent_class;
 
 	void  (*changed) (GthMultipage *self);
 };
diff --git a/gthumb/gth-progress-dialog.c b/gthumb/gth-progress-dialog.c
index 23b5db1..11d3dba 100644
--- a/gthumb/gth-progress-dialog.c
+++ b/gthumb/gth-progress-dialog.c
@@ -43,7 +43,7 @@ typedef struct _GthTaskProgress GthTaskProgress;
 typedef struct _GthTaskProgressClass GthTaskProgressClass;
 
 struct _GthTaskProgress {
-	GtkHBox    parent_instance;
+	GtkBox    parent_instance;
 	GthTask   *task;
 	GtkWidget *description_label;
 	GtkWidget *details_label;
@@ -55,11 +55,11 @@ struct _GthTaskProgress {
 };
 
 struct _GthTaskProgressClass {
-	GtkHBoxClass parent_class;
+	GtkBoxClass parent_class;
 };
 
 
-G_DEFINE_TYPE (GthTaskProgress, gth_task_progress, GTK_TYPE_HBOX)
+G_DEFINE_TYPE (GthTaskProgress, gth_task_progress, GTK_TYPE_BOX)
 
 
 static void
@@ -102,6 +102,8 @@ gth_task_progress_init (GthTaskProgress *self)
 	PangoAttrList *attr_list;
 	GtkWidget     *image;
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_HORIZONTAL);
+
 	self->task = NULL;
 	self->task_progress = 0;
 	self->task_completed = 0;
diff --git a/gthumb/gth-statusbar.c b/gthumb/gth-statusbar.c
index 4cb57cd..db40064 100644
--- a/gthumb/gth-statusbar.c
+++ b/gthumb/gth-statusbar.c
@@ -66,7 +66,7 @@ gth_statusbar_init (GthStatusbar *statusbar)
 	gtk_widget_hide (statusbar->priv->progress_box);
 	gtk_box_pack_start (GTK_BOX (statusbar), statusbar->priv->progress_box, FALSE, FALSE, 0);
 
-	separator = gtk_hseparator_new ();
+	separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
 	gtk_widget_show (separator);
 	gtk_box_pack_start (GTK_BOX (statusbar->priv->progress_box), separator, FALSE, FALSE, 0);
 
diff --git a/gthumb/gth-tags-entry.c b/gthumb/gth-tags-entry.c
index 638474b..10a4f53 100644
--- a/gthumb/gth-tags-entry.c
+++ b/gthumb/gth-tags-entry.c
@@ -86,7 +86,7 @@ struct _GthTagsEntryPrivate {
 static guint signals[LAST_SIGNAL] = { 0 };
 
 
-G_DEFINE_TYPE (GthTagsEntry, gth_tags_entry, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GthTagsEntry, gth_tags_entry, GTK_TYPE_BOX)
 
 
 static void
@@ -697,6 +697,7 @@ gth_tags_entry_init (GthTagsEntry *self)
 	GtkCellRenderer   *renderer;
 
 	gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 
 	self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_TAGS_ENTRY, GthTagsEntryPrivate);
 	self->priv->expanded_list.last_used = g_new0 (char *, 1);
diff --git a/gthumb/gth-tags-entry.h b/gthumb/gth-tags-entry.h
index 5773119..b3e8b90 100644
--- a/gthumb/gth-tags-entry.h
+++ b/gthumb/gth-tags-entry.h
@@ -38,12 +38,12 @@ typedef struct _GthTagsEntryClass GthTagsEntryClass;
 typedef struct _GthTagsEntryPrivate GthTagsEntryPrivate;
 
 struct _GthTagsEntry {
-	GtkVBox parent_instance;
+	GtkBox parent_instance;
 	GthTagsEntryPrivate *priv;
 };
 
 struct _GthTagsEntryClass {
-	GtkVBoxClass parent_class;
+	GtkBoxClass parent_class;
 
 	/*< signals >*/
 
diff --git a/gthumb/gth-test-selector.c b/gthumb/gth-test-selector.c
index a212ace..c3d0225 100644
--- a/gthumb/gth-test-selector.c
+++ b/gthumb/gth-test-selector.c
@@ -55,7 +55,7 @@ struct _GthTestSelectorPrivate {
 static guint gth_test_selector_signals[LAST_SIGNAL] = { 0 };
 
 
-G_DEFINE_TYPE (GthTestSelector, gth_test_selector, GTK_TYPE_HBOX)
+G_DEFINE_TYPE (GthTestSelector, gth_test_selector, GTK_TYPE_BOX)
 
 
 static void
@@ -108,6 +108,7 @@ static void
 gth_test_selector_init (GthTestSelector *self)
 {
 	self->priv = g_new0 (GthTestSelectorPrivate, 1);
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_HORIZONTAL);
 }
 
 
diff --git a/gthumb/gth-test-selector.h b/gthumb/gth-test-selector.h
index f318ad7..db6c086 100644
--- a/gthumb/gth-test-selector.h
+++ b/gthumb/gth-test-selector.h
@@ -39,12 +39,12 @@ typedef struct _GthTestSelectorClass   GthTestSelectorClass;
 typedef struct _GthTestSelectorPrivate GthTestSelectorPrivate;
 
 struct _GthTestSelector {
-	GtkHBox parent_instance;
+	GtkBox parent_instance;
 	GthTestSelectorPrivate * priv;
 };
 
 struct _GthTestSelectorClass {
-	GtkHBoxClass parent_class;
+	GtkBoxClass parent_class;
 	
 	void (*add_test)    (GthTestSelector *selector);
 	void (*remove_test) (GthTestSelector *selector);
diff --git a/gthumb/gth-time-selector.c b/gthumb/gth-time-selector.c
index 0e1b65f..4e873e7 100644
--- a/gthumb/gth-time-selector.c
+++ b/gthumb/gth-time-selector.c
@@ -55,7 +55,7 @@ struct _GthTimeSelectorPrivate
 static guint gth_time_selector_signals[LAST_SIGNAL] = { 0 };
 
 
-G_DEFINE_TYPE (GthTimeSelector, gth_time_selector, GTK_TYPE_HBOX);
+G_DEFINE_TYPE (GthTimeSelector, gth_time_selector, GTK_TYPE_BOX);
 
 
 static void
@@ -100,6 +100,8 @@ gth_time_selector_init (GthTimeSelector *self)
 	self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_TIME_SELECTOR, GthTimeSelectorPrivate);
 	self->priv->date_time = gth_datetime_new ();
 	self->priv->use_time = TRUE;
+
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_HORIZONTAL);
 }
 
 
diff --git a/gthumb/gth-time-selector.h b/gthumb/gth-time-selector.h
index d715645..c531301 100644
--- a/gthumb/gth-time-selector.h
+++ b/gthumb/gth-time-selector.h
@@ -40,13 +40,13 @@ typedef struct _GthTimeSelectorClass    GthTimeSelectorClass;
 
 struct _GthTimeSelector
 {
-	GtkHBox __parent;
+	GtkBox __parent;
 	GthTimeSelectorPrivate *priv;
 };
 
 struct _GthTimeSelectorClass
 {
-	GtkHBoxClass __parent_class;
+	GtkBoxClass __parent_class;
 
 	/* -- Signals -- */
 
diff --git a/gthumb/gth-toolbox.c b/gthumb/gth-toolbox.c
index e718168..23cf767 100644
--- a/gthumb/gth-toolbox.c
+++ b/gthumb/gth-toolbox.c
@@ -250,7 +250,7 @@ _gth_toolbox_add_children (GthToolbox *toolbox)
 		if (gth_file_tool_has_separator (GTH_FILE_TOOL (child))) {
 			GtkWidget *separator;
 
-			separator = gtk_hseparator_new ();
+			separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
 			gtk_widget_show (separator);
 			gtk_box_pack_start (GTK_BOX (toolbox->priv->box), separator, FALSE, FALSE, 0);
 		}



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