Mercurial > audlegacy-plugins
diff src/streambrowser/streambrowser.c @ 2797:11fb1503ee4b
double click adds stream to playlist; visual feedback when adding streams
author | Calin Crisan ccrisan@gmail.com |
---|---|
date | Sat, 12 Jul 2008 00:27:39 +0300 |
parents | 4c9db0b2194f |
children | 895d43620019 |
line wrap: on
line diff
--- a/src/streambrowser/streambrowser.c Thu Jul 10 01:41:27 2008 +0300 +++ b/src/streambrowser/streambrowser.c Sat Jul 12 00:27:39 2008 +0300 @@ -314,7 +314,15 @@ while (data != NULL && update_thread_count > 0) { /* update a streaminfo - that is - add this streaminfo to playlist */ if (data->streaminfo != NULL) { + gdk_threads_enter(); + streambrowser_win_set_streaminfo_state(data->streamdir, data->category, data->streaminfo, TRUE); + gdk_threads_leave(); + streaminfo_add_to_playlist(data->streaminfo); + + gdk_threads_enter(); + streambrowser_win_set_streaminfo_state(data->streamdir, data->category, data->streaminfo, FALSE); + gdk_threads_leave(); } /* update a category */ else if (data->category != NULL) {