[gnome-music/wip/mschraal/gtk4: 130/143] smoothscale: Fix stylectx padding call



commit 798a12428d473ab97caac58bc51e5afb228b7562
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 16:37:09 2019 +0100

    smoothscale: Fix stylectx padding call

 gnomemusic/widgets/smoothscale.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/widgets/smoothscale.py b/gnomemusic/widgets/smoothscale.py
index 0f3742ef..657de51e 100644
--- a/gnomemusic/widgets/smoothscale.py
+++ b/gnomemusic/widgets/smoothscale.py
@@ -181,7 +181,7 @@ class SmoothScale(Gtk.Scale):
         state = style_context.get_state()
 
         width = self.get_allocated_width()
-        padding = style_context.get_padding(state)
+        padding = style_context.get_padding()
         width = max(width - (padding.left + padding.right), 1)
 
         timeout_period = min(1000 * duration // width, 200)


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