From ba428ed6b0807d889150011c1ed34d360b20a0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 14 Nov 2019 09:06:01 +0100 Subject: [PATCH] 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: --- src/st/st-scroll-bar.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c index 01674df65..d4aa1762d 100644 --- a/src/st/st-scroll-bar.c +++ b/src/st/st-scroll-bar.c @@ -402,17 +402,6 @@ scroll_bar_update_positions (StScrollBar *bar) 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 bar_reactive_notify_cb (GObject *gobject, GParamSpec *arg1, @@ -523,7 +512,6 @@ st_scroll_bar_class_init (StScrollBarClass *klass) { GObjectClass *object_class = G_OBJECT_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->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->unmap = st_scroll_bar_unmap; - widget_class->style_changed = st_scroll_bar_style_changed; - /** * StScrollBar:adjustment: *