wok diff xfmedia/stuff/xfmedia-empty-prev-next-fix.patch @ rev 10841

locale-zh_CN: Fixed post_install and post_remove to be only work when not being installed with --root option.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Jun 10 02:24:41 2011 +0800 (2011-06-10)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xfmedia/stuff/xfmedia-empty-prev-next-fix.patch	Fri Jun 10 02:24:41 2011 +0800
     1.3 @@ -0,0 +1,25 @@
     1.4 +diff -wbBur xfmedia-0.9.2/src/mainwin.c xfmedia-0.9.2.my/src/mainwin.c
     1.5 +--- xfmedia-0.9.2/src/mainwin.c	2006-11-27 07:21:23.000000000 +0000
     1.6 ++++ xfmedia-0.9.2.my/src/mainwin.c	2010-11-01 13:01:17.000000000 +0000
     1.7 +@@ -1865,6 +1865,10 @@
     1.8 +     gboolean use_playlist_q  = xfmedia_playlist_queue_n_entries(mwin->playlist_q);
     1.9 +     gboolean ret = FALSE;
    1.10 +     
    1.11 ++    if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
    1.12 ++//    if(xfmedia_playlist_queue_is_empty(mwin->plist))
    1.13 ++	return;
    1.14 ++
    1.15 +     if(mwin->cur_playing
    1.16 +        && xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")
    1.17 +        && !use_playlist_q )
    1.18 +@@ -1899,6 +1903,10 @@
    1.19 + {
    1.20 +     gint tot_items, idx = -1;
    1.21 +     
    1.22 ++    if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
    1.23 ++//    if(xfmedia_playlist_queue_is_empty(mwin->plist))
    1.24 ++	return;
    1.25 ++
    1.26 +     if(xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")) {
    1.27 +         XfmediaPlaylistEntryRef *ref = NULL;
    1.28 +         gboolean playing = FALSE;