diff gui/ui/actions.c @ 35452:f42cc2361ee4

Cosmetic: Rename uiSetFileName().
author ib
date Sat, 01 Dec 2012 19:05:24 +0000
parents b3efe5e9f0bf
children c8f3bba6250a
line wrap: on
line diff
--- a/gui/ui/actions.c	Sat Dec 01 07:48:31 2012 +0000
+++ b/gui/ui/actions.c	Sat Dec 01 19:05:24 2012 +0000
@@ -260,13 +260,13 @@
 }
 
 /**
- * @brief Set the current file name to be played.
+ * @brief Set the file to be played.
  *
  * @param dir directory (optional, else NULL)
  * @param name filename
  * @param type stream type of the file
  */
-void uiSetFileName(char *dir, char *name, int type)
+void uiSetFile(char *dir, char *name, int type)
 {
     if (!dir)
         setdup(&guiInfo.Filename, name);
@@ -304,7 +304,7 @@
         curr = listMgr(PLAYLIST_ITEM_GET_CURR, 0);
 
         if (curr) {
-            uiSetFileName(curr->path, curr->name, STREAMTYPE_FILE);
+            uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
             guiInfo.PlaylistNext = 0;
             break;
         }
@@ -364,7 +364,7 @@
         prev = listMgr(PLAYLIST_ITEM_GET_PREV, 0);
 
         if (prev) {
-            uiSetFileName(prev->path, prev->name, STREAMTYPE_FILE);
+            uiSetFile(prev->path, prev->name, STREAMTYPE_FILE);
             guiInfo.PlaylistNext = (guiInfo.Playing ? 0 : 1);
             guiInfo.Track--;
             break;
@@ -420,7 +420,7 @@
         next = listMgr(PLAYLIST_ITEM_GET_NEXT, 0);
 
         if (next) {
-            uiSetFileName(next->path, next->name, STREAMTYPE_FILE);
+            uiSetFile(next->path, next->name, STREAMTYPE_FILE);
             guiInfo.PlaylistNext = (guiInfo.Playing ? 0 : 1);
             guiInfo.Track++;
             break;