summaryrefslogtreecommitdiff
path: root/apps/plugins/rockpaint.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-12-14 13:37:58 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-12-14 13:37:58 +0000
commit08af5d84044a7f18a619e1cb38cd183819be41b9 (patch)
treee441cf84b0268e5b008d044902641f063f218152 /apps/plugins/rockpaint.c
parentfbd75fcc86304ccf44ad8174c91684b687a877ec (diff)
downloadrockbox-08af5d84044a7f18a619e1cb38cd183819be41b9.tar.gz
rockbox-08af5d84044a7f18a619e1cb38cd183819be41b9.zip
FS#11777: enhancement for rockbox_browse()
* Add struct browse_context to be passed to rockbox_browse. * Show proper title when selecting e.g. .wps file or .sbs file from the settings menu. * Add select only mode to rockbox_browse(). when a file is selected, it's path is stored to buffer and the browser exits without 'playing' the file. this will allow to use the browser in more places to select file including plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28831 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockpaint.c')
-rw-r--r--apps/plugins/rockpaint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c
index 4ef139a526..fc4621a805 100644
--- a/apps/plugins/rockpaint.c
+++ b/apps/plugins/rockpaint.c
@@ -731,6 +731,7 @@ static bool browse( char *dst, int dst_size, const char *start )
731 } 731 }
732 rb->strcpy( a+1, dc[tree->selected_item].name ); 732 rb->strcpy( a+1, dc[tree->selected_item].name );
733 tree->dirfilter = &dirfilter; 733 tree->dirfilter = &dirfilter;
734 tree->browse = NULL;
734 while( 1 ) 735 while( 1 )
735 { 736 {
736 if( reload ) 737 if( reload )
@@ -880,6 +881,7 @@ static bool browse_fonts( char *dst, int dst_size )
880 } 881 }
881 rb->strcpy( a+1, dc[tree->selected_item].name ); 882 rb->strcpy( a+1, dc[tree->selected_item].name );
882 tree->dirfilter = &dirfilter; 883 tree->dirfilter = &dirfilter;
884 tree->browse = NULL;
883 rb->strcpy( bbuf, FONT_DIR "/" ); 885 rb->strcpy( bbuf, FONT_DIR "/" );
884 rb->set_current_file( bbuf ); 886 rb->set_current_file( bbuf );
885 887