[gnome-music/wip/mschraal/gtk4: 57/66] smoothscale: Fix stylectx padding call
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 57/66] smoothscale: Fix stylectx padding call
- Date: Wed, 6 Nov 2019 23:24:05 +0000 (UTC)
commit 679391cb71b84e981ee5638f83b7531141267d50
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]