summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-28 22:21:12 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-01-28 22:21:12 (GMT)
commit4cd1dceb9888dfe03bf397d0d90ac48c7c47ed1f (patch)
tree34ce65a0446efe191e3895a24300829b4a1c0fff
parent9f885cc32bf359a35c93ad07493fae8fe2d5ad73 (diff)
fixed scrubber callback
-rw-r--r--src/rhlibrary/player_widget.go3
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?
}