st/scroll-bar: Remove unneeded style-changed handler

Same reasoning as the last commit, this is already handled in the
default vfunc override of StWidget.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/953>
This commit is contained in:
Jonas Dreßler 2019-11-14 09:06:01 +01:00 committed by Marge Bot
parent 85ffb96924
commit ba428ed6b0

View File

@ -402,17 +402,6 @@ scroll_bar_update_positions (StScrollBar *bar)
scroll_bar_allocate_children (bar, &box); scroll_bar_allocate_children (bar, &box);
} }
static void
st_scroll_bar_style_changed (StWidget *widget)
{
StScrollBarPrivate *priv = ST_SCROLL_BAR_PRIVATE (widget);
st_widget_style_changed (ST_WIDGET (priv->trough));
st_widget_style_changed (ST_WIDGET (priv->handle));
ST_WIDGET_CLASS (st_scroll_bar_parent_class)->style_changed (widget);
}
static void static void
bar_reactive_notify_cb (GObject *gobject, bar_reactive_notify_cb (GObject *gobject,
GParamSpec *arg1, GParamSpec *arg1,
@ -523,7 +512,6 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass); ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass);
StWidgetClass *widget_class = ST_WIDGET_CLASS (klass);
object_class->get_property = st_scroll_bar_get_property; object_class->get_property = st_scroll_bar_get_property;
object_class->set_property = st_scroll_bar_set_property; object_class->set_property = st_scroll_bar_set_property;
@ -536,8 +524,6 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
actor_class->scroll_event = st_scroll_bar_scroll_event; actor_class->scroll_event = st_scroll_bar_scroll_event;
actor_class->unmap = st_scroll_bar_unmap; actor_class->unmap = st_scroll_bar_unmap;
widget_class->style_changed = st_scroll_bar_style_changed;
/** /**
* StScrollBar:adjustment: * StScrollBar:adjustment:
* *