[gnome-music/wip/mschraal/gtk4: 63/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: 63/66] smoothscale: Fix stylectx padding call
- Date: Mon, 4 Nov 2019 14:54:17 +0000 (UTC)
commit 196a50a73049aee05e8432bf7d427e88078e7aa0
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]