Commit 68af533c authored by Marinus Schraal's avatar Marinus Schraal

smoothscale: Single use write property

The player property should only be set once during the lifetime of the
object. It cannot be set as constructor only because objects can not be
passed to ui files.
For cleanliness make the player property effectively a one-time write
parent 2ac35929
......@@ -84,6 +84,11 @@ class SmoothScale(Gtk.Scale):
:param GstPlayer player: The GstPlayer to use
if (player is None
or (self._player is not None
and self._player != player)):
self._player = player
self._player.connect('notify::state', self._on_state_change)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment