[totem] Minor GtkBox fixes in bacon-video-widget-properties
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Minor GtkBox fixes in bacon-video-widget-properties
- Date: Mon, 20 Jun 2011 16:55:12 +0000 (UTC)
commit 9e5c1c91226a910889b4ad371d72e903d327759d
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Jun 20 17:54:41 2011 +0100
Minor GtkBox fixes in bacon-video-widget-properties
src/properties/bacon-video-widget-properties.c | 4 +++-
src/properties/bacon-video-widget-properties.h | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/properties/bacon-video-widget-properties.c b/src/properties/bacon-video-widget-properties.c
index e3ad125..3fcff00 100644
--- a/src/properties/bacon-video-widget-properties.c
+++ b/src/properties/bacon-video-widget-properties.c
@@ -40,7 +40,7 @@ struct BaconVideoWidgetPropertiesPrivate {
#define BACON_VIDEO_WIDGET_PROPERTIES_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), BACON_TYPE_VIDEO_WIDGET_PROPERTIES, BaconVideoWidgetPropertiesPrivate))
-G_DEFINE_TYPE (BaconVideoWidgetProperties, bacon_video_widget_properties, GTK_TYPE_VBOX)
+G_DEFINE_TYPE (BaconVideoWidgetProperties, bacon_video_widget_properties, GTK_TYPE_BOX)
static void
bacon_video_widget_properties_class_init (BaconVideoWidgetPropertiesClass *klass)
@@ -56,6 +56,8 @@ static void
bacon_video_widget_properties_init (BaconVideoWidgetProperties *props)
{
props->priv = G_TYPE_INSTANCE_GET_PRIVATE (props, BACON_TYPE_VIDEO_WIDGET_PROPERTIES, BaconVideoWidgetPropertiesPrivate);
+
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (props), GTK_ORIENTATION_VERTICAL);
}
static void
diff --git a/src/properties/bacon-video-widget-properties.h b/src/properties/bacon-video-widget-properties.h
index 817ca77..cef7e53 100644
--- a/src/properties/bacon-video-widget-properties.h
+++ b/src/properties/bacon-video-widget-properties.h
@@ -36,12 +36,12 @@ typedef struct BaconVideoWidgetPropertiesClass BaconVideoWidgetPropertiesClass;
typedef struct BaconVideoWidgetPropertiesPrivate BaconVideoWidgetPropertiesPrivate;
struct BaconVideoWidgetProperties {
- GtkVBox parent;
+ GtkBox parent;
BaconVideoWidgetPropertiesPrivate *priv;
};
struct BaconVideoWidgetPropertiesClass {
- GtkVBoxClass parent_class;
+ GtkBoxClass parent_class;
};
GType bacon_video_widget_properties_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]