diff options
author | 2013-08-11 22:42:00 +0200 | |
---|---|---|
committer | 2013-08-11 22:42:00 +0200 | |
commit | 83203d9c07810479a8be1c2d69ac90356de9458f (patch) | |
tree | ba43c6b114b24456b09cb7865bdbd8ae8ba1b02a /plugins/gtkui/mainplaylist.c | |
parent | 0e8455b9a41602485909e5178e3ab352514f8a3e (diff) |
gtkui: handle selection changes in all playlist widgets
Diffstat (limited to 'plugins/gtkui/mainplaylist.c')
-rw-r--r-- | plugins/gtkui/mainplaylist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/mainplaylist.c b/plugins/gtkui/mainplaylist.c index f1b829da..3dfb8005 100644 --- a/plugins/gtkui/mainplaylist.c +++ b/plugins/gtkui/mainplaylist.c @@ -153,7 +153,7 @@ void main_handle_doubleclick (DdbListview *listview, DdbListviewIter iter, int i deadbeef->sendmessage (DB_EV_PLAY_NUM, 0, idx, 0); } -void main_selection_changed (DdbListviewIter it, int idx) { +void main_selection_changed (DdbListview *ps, DdbListviewIter it, int idx) { DdbListview *search = DDB_LISTVIEW (lookup_widget (searchwin, "searchlist")); if (idx == -1) { ddb_listview_refresh (search, DDB_REFRESH_LIST); @@ -161,7 +161,7 @@ void main_selection_changed (DdbListviewIter it, int idx) { else { ddb_listview_draw_row (search, search_get_idx ((DB_playItem_t *)it), it); } - deadbeef->sendmessage (DB_EV_SELCHANGED, 0, deadbeef->plt_get_curr_idx (), PL_MAIN); + deadbeef->sendmessage (DB_EV_SELCHANGED, (uintptr_t)ps, deadbeef->plt_get_curr_idx (), PL_MAIN); } void main_draw_group_title (DdbListview *listview, cairo_t *drawable, DdbListviewIter it, int x, int y, int width, int height) { |