diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-11 17:14:10 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-11 17:14:10 +0200 |
commit | 4326a465afb45622d22d2dd52fe6f4d25f1a17ef (patch) | |
tree | c9480b530aa077ab43f5bc9a3940eda556accb03 /callbacks.c | |
parent | 9425bbc1716081cff72c73744a4fc82251b9db41 (diff) |
added total playtime display to statusbar
Diffstat (limited to 'callbacks.c')
-rw-r--r-- | callbacks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/callbacks.c b/callbacks.c index e8af63dd..abf970fc 100644 --- a/callbacks.c +++ b/callbacks.c @@ -921,8 +921,8 @@ seekbar_draw (GtkWidget *widget) { pos = x; } else { - if (str_playing_song.decoder && str_playing_song.duration > 0) { - pos = streamer_get_playpos () / str_playing_song.duration; + if (str_playing_song.decoder && str_playing_song._duration > 0) { + pos = streamer_get_playpos () / str_playing_song._duration; pos *= widget->allocation.width; } } @@ -1012,7 +1012,7 @@ on_seekbar_button_release_event (GtkWidget *widget, seekbar_moving = 0; seekbar_draw (widget); seekbar_expose (widget, 0, 0, widget->allocation.width, widget->allocation.height); - float time = event->x * str_playing_song.duration / (widget->allocation.width); + float time = event->x * str_playing_song._duration / (widget->allocation.width); if (time < 0) { time = 0; } |