Mercurial > mplayer.hg
diff gui/ui/actions.c @ 34663:73a5ecb53ee2
Replace symbolic constants by enums.
There is no relation to gtk whatsoever, use self-explanatory names
instead and add a doxygen comment.
For optical reasons, change parameter data from NULL to 0 where it
isn't used to pass anything.
author | ib |
---|---|
date | Tue, 21 Feb 2012 18:55:14 +0000 |
parents | 4ff933a89818 |
children | b03481253518 |
line wrap: on
line diff
--- a/gui/ui/actions.c Mon Feb 20 17:41:47 2012 +0000 +++ b/gui/ui/actions.c Tue Feb 21 18:55:14 2012 +0000 @@ -254,7 +254,7 @@ default: - curr = listMgr(gtkGetCurrPlItem, NULL); + curr = listMgr(PLAYLIST_ITEM_GET_CURR, 0); if (curr) { uiSetFileName(curr->path, curr->name, STREAMTYPE_FILE); @@ -310,7 +310,7 @@ default: - prev = listMgr(gtkGetPrevPlItem, NULL); + prev = listMgr(PLAYLIST_ITEM_GET_PREV, 0); if (prev) { uiSetFileName(prev->path, prev->name, STREAMTYPE_FILE); @@ -371,7 +371,7 @@ default: - next = listMgr(gtkGetNextPlItem, NULL); + next = listMgr(PLAYLIST_ITEM_GET_NEXT, 0); if (next) { uiSetFileName(next->path, next->name, STREAMTYPE_FILE);