diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c index 7bf7803c5..bfa5bdace 100644 --- a/src/st/st-scroll-bar.c +++ b/src/st/st-scroll-bar.c @@ -44,7 +44,7 @@ #include "st-private.h" #include "st-button.h" -G_DEFINE_TYPE (StScrollBar, st_scroll_bar, ST_TYPE_BIN) +G_DEFINE_TYPE (StScrollBar, st_scroll_bar, ST_TYPE_WIDGET) #define ST_SCROLL_BAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), ST_TYPE_SCROLL_BAR, StScrollBarPrivate)) @@ -463,6 +463,7 @@ st_scroll_bar_allocate (ClutterActor *actor, { StScrollBar *bar = ST_SCROLL_BAR (actor); StScrollBarPrivate *priv = bar->priv; + priv->needs_allocation = FALSE; /* Chain up */ diff --git a/src/st/st-scroll-bar.h b/src/st/st-scroll-bar.h index 07bf94d16..2505dd347 100644 --- a/src/st/st-scroll-bar.h +++ b/src/st/st-scroll-bar.h @@ -32,7 +32,7 @@ #define __ST_SCROLL_BAR_H__ #include -#include +#include G_BEGIN_DECLS @@ -56,14 +56,14 @@ typedef struct _StScrollBarClass StScrollBarClass; struct _StScrollBar { /*< private >*/ - StBin parent_instance; + StWidget parent_instance; StScrollBarPrivate *priv; }; struct _StScrollBarClass { - StBinClass parent_class; + StWidgetClass parent_class; /* signals */ void (*scroll_start) (StScrollBar *bar);