EINTERN int
e_config_profile_save(void)
{
-#if 0
- Eet_File *ef;
- char buf[4096], buf2[4096];
- int ok = 0;
-
- /* FIXME: check for other sessions fo E running */
- e_user_dir_concat_static(buf, "config/profile.cfg");
- e_user_dir_concat_static(buf2, "config/profile.cfg.tmp");
-
- ef = eet_open(buf2, EET_FILE_MODE_WRITE);
- if (ef)
- {
- ok = eet_write(ef, "config", _e_config_profile,
- strlen(_e_config_profile), 0);
- if (_e_config_eet_close_handle(ef, buf2))
- {
- Eina_Bool ret = EINA_TRUE;
-
- if (_e_config_revisions > 0)
- {
- int i;
- char bsrc[4096], bdst[4096];
-
- for (i = _e_config_revisions; i > 1; i--)
- {
- e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/profile.%i.cfg", i - 1);
- e_user_dir_snprintf(bdst, sizeof(bdst), "config/profile.%i.cfg", i);
- if ((ecore_file_exists(bsrc)) &&
- (ecore_file_size(bsrc)))
- {
- ret = ecore_file_mv(bsrc, bdst);
- if (!ret)
- {
- _e_config_mv_error(bsrc, bdst);
- break;
- }
- }
- }
- if (ret)
- {
- e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/profile.cfg");
- e_user_dir_snprintf(bdst, sizeof(bdst), "config/profile.1.cfg");
- ret = ecore_file_mv(bsrc, bdst);
-// if (!ret)
-// _e_config_mv_error(bsrc, bdst);
- }
- }
- ret = ecore_file_mv(buf2, buf);
- if (!ret) _e_config_mv_error(buf2, buf);
- }
- ecore_file_unlink(buf2);
- }
- return ok;
-#else
return 1;
-#endif
}
/**
return obj->references;
}
-#if 0
-E_API void
-e_bt(void)
-{
- int i, trace_num;
- void *trace[128];
- char **messages = NULL;
- trace_num = backtrace(trace, 128);
- messages = backtrace_symbols(trace, trace_num);
- if (messages)
- {
- for (i = 1; i < trace_num; i++)
- {
- int j;
-
- for (j = 1; j < i; j++)
- putchar(' ');
- printf("%s\n", messages[i]);
- }
- free(messages);
- }
-}
-
-#endif
-
E_API int
e_object_error(E_Object *obj)
{
free(evas_gl);
}
-// FIXME
-#if 0
-static void
-_e_comp_wl_gl_popup_cb_close(void *data,
- Evas_Object *obj EINA_UNUSED,
- void *event_info EINA_UNUSED)
-{
- evas_object_del(data);
-}
-
-static void
-_e_comp_wl_gl_popup_cb_focus(void *data,
- Evas_Object *obj EINA_UNUSED,
- void *event_info EINA_UNUSED)
-{
- elm_object_focus_set(data, EINA_TRUE);
-}
-#endif
-
static Eina_Bool
_e_comp_wl_gl_idle(void *data)
{
e_comp_wl = NULL;
e_comp->wl_comp_data = NULL;
free(comp);
- // TODO: yigl
-#if 0
- E_Comp_Wl_Output *output;
-
- if (e_comp_wl->screenshooter.global)
- wl_global_destroy(e_comp_wl->screenshooter.global);
-
- EINA_LIST_FREE(e_comp_wl->outputs, output)
- {
- if (output->id) eina_stringshare_del(output->id);
- if (output->make) eina_stringshare_del(output->make);
- if (output->model) eina_stringshare_del(output->model);
- free(output);
- }
-
- /* delete fd handler */
- if (e_comp_wl->fd_hdlr) ecore_main_fd_handler_del(e_comp_wl->fd_hdlr);
-
- E_FREE_FUNC(e_comp_wl->ptr.hide_tmr, ecore_timer_del);
- cursor_timer_ec = NULL;
-
- /* free allocated data structure */
- free(e_comp_wl);
-#endif
}
static void