From 11b559a02788c679e053fd4dd5fb5722be0e08ac Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Tue, 3 Jul 2007 23:38:22 +0000 Subject: Use splashes for errors in the properties plugin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13781 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/properties.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 1726e01c34..079161a514 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -299,11 +299,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) if(!found) { /* weird: we couldn't find the entry. This Should Never Happen (TM) */ - rb->lcd_clear_display(); - rb->lcd_puts(0,0,"File/Dir not found:"); - rb->lcd_puts(0,1,(char*)file); - rb->lcd_update(); - + rb->splash(0, "File/Dir not found: %s", (char*)file); rb->action_userabort(TIMEOUT_BLOCK); return PLUGIN_OK; } @@ -311,11 +307,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) /* get the info depending on its_a_dir */ if(!(its_a_dir ? dir_properties((char*)file):file_properties((char*)file))) { - /* something went wrong */ - rb->lcd_clear_display(); - rb->lcd_puts(0,0,"Failed to gather information"); - rb->lcd_update(); - + /* something went wrong (to do: tell user what it was (nesting,...) */ + rb->splash(0, "Failed to gather information"); rb->action_userabort(TIMEOUT_BLOCK); return PLUGIN_OK; } -- cgit v1.2.3