diff options
author | waker <wakeroid@gmail.com> | 2009-08-22 16:03:36 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-22 16:04:17 +0200 |
commit | 6556d9f8ce2d68d78a31a260a48d69e5e2fe82c7 (patch) | |
tree | 510e3bf761a1a097277f2e05d3d029e79ee493d3 /main.c | |
parent | 1219c506a236145a01207a4f57bb8099bdf913a6 (diff) |
fixed redraw on pause/unpause/stop
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -327,7 +327,9 @@ player_thread (uintptr_t ctx) { case M_STOPSONG: p_stop (); GDK_THREADS_ENTER(); - gtkpl_redraw_pl_row (&main_playlist, main_playlist.row); + if (playlist_current_ptr) { + gtkpl_redraw_pl_row (&main_playlist, pl_get_idx_of (playlist_current_ptr)); + } GDK_THREADS_LEAVE(); break; case M_NEXTSONG: @@ -351,7 +353,9 @@ player_thread (uintptr_t ctx) { } GDK_THREADS_ENTER(); - gtkpl_redraw_pl_row (&main_playlist, main_playlist.row); + if (playlist_current_ptr) { + gtkpl_redraw_pl_row (&main_playlist, pl_get_idx_of (playlist_current_ptr)); + } GDK_THREADS_LEAVE(); break; case M_PLAYRANDOM: |