editor: save using elm_code's new save method

This commit is contained in:
Andy Williams 2015-03-21 19:53:21 +00:00
parent f7f257fca4
commit 4aa3defb30
1 changed files with 7 additions and 2 deletions

View File

@ -463,13 +463,18 @@ edi_mainview_save()
Evas_Object *content;
Elm_Object_Item *it;
Edi_Editor *editor;
Elm_Code *code;
it = elm_naviframe_top_item_get(nf);
content = elm_object_item_content_get(it);
editor = (Edi_Editor *)evas_object_data_get(content, "editor");
if (editor)
elm_entry_file_save(editor->entry);
if (!editor)
return;
eo_do(editor->entry,
code = elm_code_widget_code_get());
elm_code_file_save(code->file);
}
void