diff options
author | 2009-10-03 20:27:55 +0200 | |
---|---|---|
committer | 2009-10-03 20:27:55 +0200 | |
commit | b13342fe99b83bf37d420a827b5f55e2b770cd5e (patch) | |
tree | 8effc14d3c5ee98cbf4214a9c045dcd958c70655 /main.c | |
parent | f86fc192b0dbe26d39406c7b9f508142b6e0c9be (diff) |
moved message ids to deadbeef.h
added message sending to plugin API
added M_TRACKCHANGED message
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -388,11 +388,21 @@ player_thread (uintptr_t ctx) { break; case M_PLAYSONG: gtkpl_playsong (&main_playlist); - GDK_THREADS_ENTER(); if (playlist_current_ptr) { + GDK_THREADS_ENTER(); gtkpl_redraw_pl_row (&main_playlist, pl_get_idx_of (playlist_current_ptr), playlist_current_ptr); + GDK_THREADS_LEAVE(); + } + break; + case M_TRACKCHANGED: + { + playItem_t *it = pl_get_for_idx (p1); + if (it) { + GDK_THREADS_ENTER(); + gtkpl_redraw_pl_row (&main_playlist, p1, it); + GDK_THREADS_LEAVE(); + } } - GDK_THREADS_LEAVE(); break; case M_PLAYSONGNUM: GDK_THREADS_ENTER(); |