summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-11-30 22:29:48 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-11-30 22:29:48 +0000
commit0f02e4f7a0a202a9efb26833f156a72a3541b2f8 (patch)
treef376a667ce28f96451c4cdf4e86d650192aeecfe /apps/onplay.c
parentcd605cffa35cff0c59026e5796aa9488ce590aea (diff)
File and (recursive) directories properties in the file browser context menu. Uses dircache if possible (plugin api expanded). Is actually implemented as plugin. Small parts taken from earlier work by Will Robertson.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11630 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 59fa8caa85..90117eaa19 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -560,6 +560,14 @@ bool create_dir(void)
return true;
}
+static bool properties(void)
+{
+ if(PLUGIN_USB_CONNECTED == filetype_load_plugin("properties",
+ selected_file))
+ onplay_result = ONPLAY_RELOAD_DIR;
+ return false;
+}
+
/* Store the current selection in the clipboard */
static bool clipboard_clip(bool copy)
{
@@ -966,7 +974,12 @@ int onplay(char* file, int attr, int from)
items[i].desc = ID2P(LANG_CREATE_DIR);
items[i].function = create_dir;
i++;
+
+ items[i].desc = ID2P(LANG_PROPERTIES);
+ items[i].function = properties;
+ i++;
}
+
if (context == CONTEXT_WPS)
{
#ifdef HAVE_PITCHSCREEN