summaryrefslogtreecommitdiff
path: root/callbacks.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-03 20:03:14 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-03 20:03:14 +0100
commitbc2ea11515359023032be050f75e8c401f53c8a5 (patch)
tree930b065e080578786a877991240d6eccb2982a44 /callbacks.c
parent62c5b7a461d8e7b4d73ed6fe2433f978e00a797a (diff)
disallow seek for infinite streams
also updated seekbar drawing
Diffstat (limited to 'callbacks.c')
-rw-r--r--callbacks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/callbacks.c b/callbacks.c
index 314d6cfd..7efe4126 100644
--- a/callbacks.c
+++ b/callbacks.c
@@ -961,6 +961,12 @@ seekbar_draw (GtkWidget *widget) {
if (!cr) {
return;
}
+ if (!str_playing_song.decoder || str_playing_song._duration < 0) {
+ clearlooks_rounded_rectangle (cr, 2, widget->allocation.height/2-4, widget->allocation.width-4, 8, 4, 0xff);
+ theme_set_cairo_source_rgb (cr, COLO_SEEKBAR_FRONT);
+ cairo_stroke (cr);
+ return;
+ }
float pos = 0;
if (seekbar_moving) {
int x = seekbar_move_x;