comparison src/skins/ui_main.c @ 2604:e732655e8191

fix seeking
author Tomasz Mon <desowin@gmail.com>
date Wed, 21 May 2008 13:39:53 +0200
parents 45cfb49a8d1c
children b53841a1b5d3
comparison
equal deleted inserted replaced
2603:45cfb49a8d1c 2604:e732655e8191
1533 void 1533 void
1534 mainwin_position_release_cb(GtkWidget *widget, gint pos) 1534 mainwin_position_release_cb(GtkWidget *widget, gint pos)
1535 { 1535 {
1536 gint length, time; 1536 gint length, time;
1537 1537
1538 length = aud_playlist_get_current_length(aud_playlist_get_active()) / 1000; 1538 length = audacious_drct_get_length();
1539 time = (length * pos) / 219; 1539 time = (length * pos) / 219;
1540 audacious_drct_seek(time); 1540 audacious_drct_seek(time);
1541 mainwin_release_info_text(); 1541 mainwin_release_info_text();
1542 } 1542 }
1543 1543