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:
parent
d2290cc3e2
commit
ab25b8ab69
@ -44,7 +44,7 @@
|
|||||||
#include "st-private.h"
|
#include "st-private.h"
|
||||||
#include "st-button.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))
|
#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);
|
StScrollBar *bar = ST_SCROLL_BAR (actor);
|
||||||
StScrollBarPrivate *priv = bar->priv;
|
StScrollBarPrivate *priv = bar->priv;
|
||||||
|
|
||||||
priv->needs_allocation = FALSE;
|
priv->needs_allocation = FALSE;
|
||||||
|
|
||||||
/* Chain up */
|
/* Chain up */
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#define __ST_SCROLL_BAR_H__
|
#define __ST_SCROLL_BAR_H__
|
||||||
|
|
||||||
#include <st/st-adjustment.h>
|
#include <st/st-adjustment.h>
|
||||||
#include <st/st-bin.h>
|
#include <st/st-widget.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
@ -56,14 +56,14 @@ typedef struct _StScrollBarClass StScrollBarClass;
|
|||||||
struct _StScrollBar
|
struct _StScrollBar
|
||||||
{
|
{
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
StBin parent_instance;
|
StWidget parent_instance;
|
||||||
|
|
||||||
StScrollBarPrivate *priv;
|
StScrollBarPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _StScrollBarClass
|
struct _StScrollBarClass
|
||||||
{
|
{
|
||||||
StBinClass parent_class;
|
StWidgetClass parent_class;
|
||||||
|
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*scroll_start) (StScrollBar *bar);
|
void (*scroll_start) (StScrollBar *bar);
|
||||||
|
Loading…
Reference in New Issue
Block a user