From e93122777685a94419964730c26daff01533d561 Mon Sep 17 00:00:00 2001 From: jdgordon Date: Mon, 18 Jun 2007 13:57:05 +0000 Subject: [PATCH] s/icons/colors git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13666 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/text_editor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 943596905..97ceae574 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -330,7 +330,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) static char copy_buffer[MAX_LINE_LEN]; bool prev_show_statusbar; #ifdef HAVE_LCD_COLOR - bool edit_icons_file = false; + bool edit_colors_file = false; #endif rb = api; @@ -359,9 +359,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) return PLUGIN_ERROR; } #ifdef HAVE_LCD_COLOR - c = rb->strchr(filename, '.'); - if (c && rb->strcmp(c, ".icons")) - edit_icons_file = true; + c = rb->strrchr(filename, '.'); + if (c && !rb->strcmp(c, ".colors")) + edit_colors_file = true; #endif /* read in the file */ while (rb->read_line(fd,temp_line,MAX_LINE_LEN)) @@ -404,7 +404,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) if (line_count) rb->strcpy(temp_line,&buffer[do_action(ACTION_GET,0,cur_sel)]); #ifdef HAVE_LCD_COLOR - if (edit_icons_file) + if (edit_colors_file) { char *name = temp_line, *value = NULL; char extension[MAX_LINE_LEN]; -- 2.11.4.GIT