[gnome-shell] st/scroll-bar: Remove unneeded style-changed handler



commit ba428ed6b0807d889150011c1ed34d360b20a0c9
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Nov 14 09:06:01 2019 +0100

    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>

 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 01674df65d..d4aa1762d3 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:
    *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]