summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-06-18 13:57:05 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-06-18 13:57:05 +0000
commit1b947de1adf91adf311876f8c7f1a3e7cd7200a7 (patch)
treea7976337d1a32c59046a1e6b3ce1ed3ce2208306
parent46e186fa61acac1cdf02db597b0cac05de189cfa (diff)
downloadrockbox-1b947de1adf91adf311876f8c7f1a3e7cd7200a7.tar.gz
rockbox-1b947de1adf91adf311876f8c7f1a3e7cd7200a7.zip
s/icons/colors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13666 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/text_editor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 943596905c..97ceae5746 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)
330 static char copy_buffer[MAX_LINE_LEN]; 330 static char copy_buffer[MAX_LINE_LEN];
331 bool prev_show_statusbar; 331 bool prev_show_statusbar;
332#ifdef HAVE_LCD_COLOR 332#ifdef HAVE_LCD_COLOR
333 bool edit_icons_file = false; 333 bool edit_colors_file = false;
334#endif 334#endif
335 335
336 rb = api; 336 rb = api;
@@ -359,9 +359,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
359 return PLUGIN_ERROR; 359 return PLUGIN_ERROR;
360 } 360 }
361#ifdef HAVE_LCD_COLOR 361#ifdef HAVE_LCD_COLOR
362 c = rb->strchr(filename, '.'); 362 c = rb->strrchr(filename, '.');
363 if (c && rb->strcmp(c, ".icons")) 363 if (c && !rb->strcmp(c, ".colors"))
364 edit_icons_file = true; 364 edit_colors_file = true;
365#endif 365#endif
366 /* read in the file */ 366 /* read in the file */
367 while (rb->read_line(fd,temp_line,MAX_LINE_LEN)) 367 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)
404 if (line_count) 404 if (line_count)
405 rb->strcpy(temp_line,&buffer[do_action(ACTION_GET,0,cur_sel)]); 405 rb->strcpy(temp_line,&buffer[do_action(ACTION_GET,0,cur_sel)]);
406#ifdef HAVE_LCD_COLOR 406#ifdef HAVE_LCD_COLOR
407 if (edit_icons_file) 407 if (edit_colors_file)
408 { 408 {
409 char *name = temp_line, *value = NULL; 409 char *name = temp_line, *value = NULL;
410 char extension[MAX_LINE_LEN]; 410 char extension[MAX_LINE_LEN];