diff options
-rw-r--r-- | src/rhlibrary/player_widget.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rhlibrary/player_widget.go b/src/rhlibrary/player_widget.go index 3059011..f16adfa 100644 --- a/src/rhlibrary/player_widget.go +++ b/src/rhlibrary/player_widget.go @@ -114,8 +114,7 @@ func addScrubber(grid *gtk.Grid, p *player.PlayerChan) (err error) { scale.SetRange(0, 1) scale.SetValue(0) - scale.Connect("change-value", func(s *gtk.Scale) { - pos := s.GetValue() + scale.Connect("change-value", func(s *gtk.Scale, _ interface{}, pos float64) { if err := p.Seek(pos); err != nil { rhdl.Println(err) // TODO: feedback at GUI? } |