change parent class of StScrollBar from StBin to StWidget

1. It doesn't have child
2. It work like StWidget without child
https://bugzilla.gnome.org/show_bug.cgi?id=624893
This commit is contained in:
Maxim Ermilov
2010-08-26 23:33:09 +04:00
parent d2290cc3e2
commit ab25b8ab69
2 changed files with 5 additions and 4 deletions

View File

@ -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 */