diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-01-28 22:21:12 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-01-28 22:21:12 (GMT) |
commit | 4cd1dceb9888dfe03bf397d0d90ac48c7c47ed1f (patch) | |
tree | 34ce65a0446efe191e3895a24300829b4a1c0fff /src/rhlibrary | |
parent | 9f885cc32bf359a35c93ad07493fae8fe2d5ad73 (diff) |
fixed scrubber callback
Diffstat (limited to 'src/rhlibrary')
-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? } |