[MPlayer-dev-eng] [PATCH] GUI: Preselect playlist directory tree item from playlist instead of file history

Hans-Dieter Kosch hdkosch at kabelbw.de
Sun Mar 10 19:59:12 CET 2013


Currently, upon first open of the playlist menu, the first (i.e. most recent) 
file history entry is preselected in the directory tree. This appears quite 
unrelated, as the playlist doesn't deal with the history otherwise. It seems 
more useful to preselect the last (i.e. most recent) playlist entry, which could 
be seen as kind of a playlist history. This is similar to having 'current_path' 
preselected when re-opening the playlist menu. Fall back to the file history if 
there's no playlist entry.

The patch consists of two parts:

1) Add a new listMgr command to get the last playlist entry:
gui_util_list.ch.patch [ gui/util/list.c, gui/util/list.h ]

2) Preselect the last playlist entry using this new listMgr command:
gui_dialog_playlist.c.patch [ gui/dialog/playlist.c ]

Hans-Dieter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gui_util_list.ch.patch
Type: text/x-patch
Size: 865 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130310/754a09d5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gui_dialog_playlist.c.patch
Type: text/x-patch
Size: 891 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130310/754a09d5/attachment-0001.bin>


More information about the MPlayer-dev-eng mailing list