[gthumb] use a GtkBox instead of the deprecated GtkVBox



commit 1249194b36f82004c134c8e6d0ac8a8c076a7b2d
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jan 8 14:08:01 2012 +0100

    use a GtkBox instead of the deprecated GtkVBox

 extensions/image_viewer/gth-image-histogram.c |    3 ++-
 extensions/image_viewer/gth-image-histogram.h |    4 ++--
 gthumb/gth-histogram-view.c                   |    3 ++-
 gthumb/gth-histogram-view.h                   |    4 ++--
 4 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-histogram.c b/extensions/image_viewer/gth-image-histogram.c
index e262ce8..27695c8 100644
--- a/extensions/image_viewer/gth-image-histogram.c
+++ b/extensions/image_viewer/gth-image-histogram.c
@@ -36,7 +36,7 @@ static void gth_image_histogram_gth_property_view_interface_init (GthPropertyVie
 
 G_DEFINE_TYPE_WITH_CODE (GthImageHistogram,
 			 gth_image_histogram,
-			 GTK_TYPE_VBOX,
+			 GTK_TYPE_BOX,
 			 G_IMPLEMENT_INTERFACE (GTH_TYPE_MULTIPAGE_CHILD,
 					        gth_image_histogram_gth_multipage_child_interface_init)
 		         G_IMPLEMENT_INTERFACE (GTH_TYPE_PROPERTY_VIEW,
@@ -131,6 +131,7 @@ gth_image_histogram_init (GthImageHistogram *self)
 	self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GTH_TYPE_IMAGE_HISTOGRAM, GthImageHistogramPrivate);
 	self->priv->histogram = gth_histogram_new ();
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 	gtk_box_set_spacing (GTK_BOX (self), 6);
 	gtk_container_set_border_width (GTK_CONTAINER (self), 2);
 
diff --git a/extensions/image_viewer/gth-image-histogram.h b/extensions/image_viewer/gth-image-histogram.h
index 0a2d8cb..9fc86c4 100644
--- a/extensions/image_viewer/gth-image-histogram.h
+++ b/extensions/image_viewer/gth-image-histogram.h
@@ -38,12 +38,12 @@ typedef struct _GthImageHistogramClass GthImageHistogramClass;
 typedef struct _GthImageHistogramPrivate GthImageHistogramPrivate;
 
 struct _GthImageHistogram {
-	GtkVBox parent_instance;
+	GtkBox parent_instance;
 	GthImageHistogramPrivate *priv;
 };
 
 struct _GthImageHistogramClass {
-	GtkVBoxClass parent_class;
+	GtkBoxClass parent_class;
 };
 
 GType gth_image_histogram_get_type (void);
diff --git a/gthumb/gth-histogram-view.c b/gthumb/gth-histogram-view.c
index a63b62a..b0212fe 100644
--- a/gthumb/gth-histogram-view.c
+++ b/gthumb/gth-histogram-view.c
@@ -68,7 +68,7 @@ struct _GthHistogramViewPrivate {
 };
 
 
-G_DEFINE_TYPE (GthHistogramView, gth_histogram_view, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (GthHistogramView, gth_histogram_view, GTK_TYPE_BOX)
 
 
 static void
@@ -807,6 +807,7 @@ gth_histogram_view_init (GthHistogramView *self)
 	self->priv->selection_start = 0;
 	self->priv->selection_end = 255;
 
+	gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
 	gtk_box_set_spacing (GTK_BOX (self), 6);
 	gtk_widget_set_vexpand (GTK_WIDGET (self), FALSE);
 
diff --git a/gthumb/gth-histogram-view.h b/gthumb/gth-histogram-view.h
index e33152f..304167e 100644
--- a/gthumb/gth-histogram-view.h
+++ b/gthumb/gth-histogram-view.h
@@ -50,12 +50,12 @@ typedef enum {
 } GthHistogramScale;
 
 struct _GthHistogramView {
-	GtkVBox parent_instance;
+	GtkBox parent_instance;
 	GthHistogramViewPrivate *priv;
 };
 
 struct _GthHistogramViewClass {
-	GtkVBoxClass parent_class;
+	GtkBoxClass parent_class;
 };
 
 GType              gth_histogram_view_get_type              (void);



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