[gnome-music/wip/mschraal/gtk4: 129/141] smoothscale: Fix stylectx padding call



commit cf702ca8405f830549ed08e136ed76c5bcfd294c
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 bff61c50..6f0b46b2 100644
--- a/gnomemusic/widgets/smoothscale.py
+++ b/gnomemusic/widgets/smoothscale.py
@@ -165,7 +165,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]