enventor - fix the bugs that edj/edc didn't updated correctly when reload an edc file.

This commit is contained in:
ChunEon Park 2013-10-03 21:38:51 +09:00
parent 76dadccf00
commit dfa07864db
2 changed files with 4 additions and 6 deletions

View File

@ -75,15 +75,11 @@ syntax_color_apply(edit_data *ed)
//FIXME: Optimize here by applying color syntax for only changed lines
ed->syntax_color_timer = NULL;
Evas_Object *tb = elm_entry_textblock_get(ed->en_edit);
char *text = (char *) evas_object_textblock_text_markup_get(tb);
char *text = elm_entry_entry_get(ed->en_edit);
int pos = elm_entry_cursor_pos_get(ed->en_edit);
char *utf8 = (char *) color_cancel(syntax_color_data_get(ed->sh), text,
strlen(text));
if (!utf8) return;
utf8 = strdup(utf8);
const char *translated = color_apply(syntax_color_data_get(ed->sh), utf8,
strlen(utf8));
@ -781,7 +777,6 @@ edit_edc_read(edit_data *ed, const char *file_path)
Eina_File_Line *line;
int line_num = 0;
EINA_ITERATOR_FOREACH(itr, line)
{
//Append edc ccde
@ -806,6 +801,7 @@ edit_edc_read(edit_data *ed, const char *file_path)
parser_first_group_name_get(ed->pd, ed->en_edit);
stats_edc_file_set(ed->sd, group_name);
ecore_animator_add(syntax_color_animator_cb, ed);
err:

View File

@ -45,6 +45,8 @@ file_set_timer_cb(void *data)
return ECORE_CALLBACK_CANCEL;
}
edj_mgr_reload_need_set(edj_mgr_get(), EINA_TRUE);
return ECORE_CALLBACK_RENEW;
}