forked from enlightenment/enventor
fix live view updation problem.
if file is saved as, the edj tracking would be corrupted. later this scenario, live view won't be updated @fix T2124
This commit is contained in:
parent
4bb07d2f13
commit
f3f0c30c8a
|
@ -202,16 +202,6 @@ config_update_cb(void *data)
|
|||
base_tools_toggle(EINA_FALSE);
|
||||
base_statusbar_toggle(EINA_FALSE);
|
||||
base_console_auto_hide();
|
||||
|
||||
//previous build was failed, Need to rebuild then reload the edj.
|
||||
#if 0
|
||||
if (edj_mgr_reload_need_get())
|
||||
{
|
||||
build_edc();
|
||||
edj_mgr_clear();
|
||||
//edc_view_set(stats_group_name_get());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
|
|
|
@ -429,6 +429,10 @@ fileselector_save_done_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
enventor_object_modified_set(md->enventor, EINA_TRUE);
|
||||
config_edc_path_set(selected);
|
||||
|
||||
Eina_List *list = eina_list_append(NULL, config_edj_path_get());
|
||||
enventor_object_path_set(md->enventor, ENVENTOR_OUT_EDJ, list);
|
||||
eina_list_free(list);
|
||||
|
||||
if (!enventor_object_save(md->enventor, selected))
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
|
@ -439,11 +443,7 @@ fileselector_save_done_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
"elm,action,msg,show", "");
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
edj_mgr_reload_need_set(EINA_TRUE);
|
||||
#endif
|
||||
config_apply();
|
||||
|
||||
enventor_object_file_set(md->enventor, selected);
|
||||
base_title_set(selected);
|
||||
file_mgr_reset();
|
||||
fileselector_close(md);
|
||||
|
|
|
@ -44,6 +44,10 @@ newfile_set(Evas_Object *enventor, Eina_Bool template_new)
|
|||
sprintf(path, "%s", (const char *)tmp_path);
|
||||
eina_tmpstr_del(tmp_path);
|
||||
config_edc_path_set(path);
|
||||
|
||||
Eina_List *list = eina_list_append(NULL, config_edj_path_get());
|
||||
enventor_object_path_set(enventor, ENVENTOR_OUT_EDJ, list);
|
||||
eina_list_free(list);
|
||||
}
|
||||
success = eina_file_copy(buf, path,
|
||||
EINA_FILE_COPY_DATA, NULL, NULL);
|
||||
|
|
|
@ -499,6 +499,8 @@ view_scale_set(view_data *vd, double scale)
|
|||
void
|
||||
view_size_set(view_data *vd, Evas_Coord w, Evas_Coord h)
|
||||
{
|
||||
if (!vd) return;
|
||||
|
||||
double scale = edj_mgr_view_scale_get();
|
||||
|
||||
vd->view_config_size.w = w;
|
||||
|
|
|
@ -291,6 +291,18 @@ _enventor_object_path_set(Eo *obj EINA_UNUSED,
|
|||
Enventor_Object_Data *pd EINA_UNUSED,
|
||||
Enventor_Path_Type type, const Eina_List *pathes)
|
||||
{
|
||||
//edj file is changed
|
||||
if (type == ENVENTOR_OUT_EDJ)
|
||||
{
|
||||
const char *path = eina_list_data_get(pathes);
|
||||
const char *ppath = build_edj_path_get();
|
||||
if (path && ppath && strcmp(path, ppath))
|
||||
{
|
||||
edj_mgr_clear();
|
||||
eina_stringshare_del(pd->group_name);
|
||||
pd->group_name = NULL;
|
||||
}
|
||||
}
|
||||
return build_path_set(type, pathes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue