wok view xfmedia/stuff/xfmedia-empty-prev-next-fix.patch @ rev 13833

slitaz-menus: complete translations to SliTaz officially supported languages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jan 07 14:10:35 2013 +0000 (2013-01-07)
parents
children
line source
1 diff -wbBur xfmedia-0.9.2/src/mainwin.c xfmedia-0.9.2.my/src/mainwin.c
2 --- xfmedia-0.9.2/src/mainwin.c 2006-11-27 07:21:23.000000000 +0000
3 +++ xfmedia-0.9.2.my/src/mainwin.c 2010-11-01 13:01:17.000000000 +0000
4 @@ -1865,6 +1865,10 @@
5 gboolean use_playlist_q = xfmedia_playlist_queue_n_entries(mwin->playlist_q);
6 gboolean ret = FALSE;
8 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
9 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
10 + return;
11 +
12 if(mwin->cur_playing
13 && xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")
14 && !use_playlist_q )
15 @@ -1899,6 +1903,10 @@
16 {
17 gint tot_items, idx = -1;
19 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
20 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
21 + return;
22 +
23 if(xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")) {
24 XfmediaPlaylistEntryRef *ref = NULL;
25 gboolean playing = FALSE;