[gnome-music/wip/jfelder/mpris-fix-seek] smoothscale: Use GObject property syntax for duration
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/mpris-fix-seek] smoothscale: Use GObject property syntax for duration
- Date: Sat, 20 Oct 2018 07:34:54 +0000 (UTC)
commit f311012e93d325d95a35e81f9e5a7550476f20b9
Author: Jean Felder <jfelder src gnome org>
Date: Sat Oct 20 09:32:41 2018 +0200
smoothscale: Use GObject property syntax for duration
gnomemusic/widgets/smoothscale.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets/smoothscale.py b/gnomemusic/widgets/smoothscale.py
index 701a82be..d7ad2a8d 100644
--- a/gnomemusic/widgets/smoothscale.py
+++ b/gnomemusic/widgets/smoothscale.py
@@ -109,7 +109,7 @@ class SmoothScale(Gtk.Scale):
@log
def _on_duration_changed(self, klass, arguments):
- duration = self._player.duration
+ duration = self._player.props.duration
if duration != -1.:
self.set_range(0.0, duration * 60)
@@ -173,7 +173,7 @@ class SmoothScale(Gtk.Scale):
"""
# Do not run until SmoothScale has been realized and GStreamer
# provides a duration.
- duration = self._player.duration
+ duration = self._player.props.duration
if (self.get_realized() is False
or duration == -1.):
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]