[gnome-music/wip/mschraal/gtk4: 56/58] smoothscale: Fix stylectx padding call



commit ade57a6e45fe1b4e75a0ab9a9f2a3a571f8bd177
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]