? properties_plugin.patch
Index: apps/onplay.c
===================================================================
RCS file: /cvsroot/rockbox/apps/onplay.c,v
retrieving revision 1.82
diff -u -r1.82 onplay.c
--- apps/onplay.c	25 Jul 2006 07:41:00 -0000	1.82
+++ apps/onplay.c	1 Aug 2006 12:31:45 -0000
@@ -808,6 +808,17 @@
 
 static bool exit_to_main;
 
+static bool properties(void)
+{
+    int ret = 0;
+    ret = filetype_load_plugin("properties",selected_file);
+
+    if (ret == PLUGIN_USB_CONNECTED)
+        onplay_result = ONPLAY_RELOAD_DIR;
+
+    return false;
+}
+
 /* catch MENU_EXIT_MENU within context menu to call the main menu afterwards */
 static int onplay_callback(int key, int menu)
 {
@@ -826,7 +837,7 @@
 int onplay(char* file, int attr, int from)
 {
 #if CONFIG_CODEC == SWCODEC
-    struct menu_item items[14]; /* increase this if you add entries! */
+    struct menu_item items[15]; /* increase this if you add entries! */
 #else
     struct menu_item items[12];
 #endif
@@ -943,6 +954,10 @@
             items[i].desc = ID2P(LANG_ONPLAY_OPEN_WITH);
             items[i].function = list_viewers;
             i++;
+
+	    items[i].desc = ID2P(LANG_PROPERTIES);
+	    items[i].function = properties;
+	    i++;
         }
     }
     else
Index: apps/lang/english.lang
===================================================================
RCS file: /cvsroot/rockbox/apps/lang/english.lang,v
retrieving revision 1.260
diff -u -r1.260 english.lang
--- apps/lang/english.lang	31 Jul 2006 12:55:27 -0000	1.260
+++ apps/lang/english.lang	1 Aug 2006 12:31:58 -0000
@@ -8806,4 +8806,18 @@
   <voice>
     *: "(Vol- : Re-enable)"
   </voice>
-</phrase>
\ No newline at end of file
+</phrase>
+<phrase>
+  id: LANG_PROPERTIES
+  desc: in onplay menu
+  user:
+  <source>
+    *: "Properties"
+  </source>
+  <dest>
+    *: "Properties"
+  </dest>
+  <voice>
+    *: "Properties"
+  </voice>
+</phrase>
Index: apps/plugins/SOURCES
===================================================================
RCS file: /cvsroot/rockbox/apps/plugins/SOURCES,v
retrieving revision 1.125
diff -u -r1.125 SOURCES
--- apps/plugins/SOURCES	19 Jul 2006 20:11:02 -0000	1.125
+++ apps/plugins/SOURCES	1 Aug 2006 12:31:58 -0000
@@ -9,6 +9,7 @@
 logo.c
 metronome.c
 mosaique.c
+properties.c
 rockbox_flash.c
 search.c
 snow.c
