forked from enlightenment/enlightenment
parent
b71a936bbd
commit
0fcd8c7725
|
@ -1353,7 +1353,7 @@ e_config_init(void)
|
||||||
}
|
}
|
||||||
e_config_save_queue();
|
e_config_save_queue();
|
||||||
}
|
}
|
||||||
// e_config->evas_engine_default = E_EVAS_ENGINE_XRENDER_X11;
|
e_config->evas_engine_default = E_EVAS_ENGINE_XRENDER_X11;
|
||||||
// e_config->evas_engine_container = E_EVAS_ENGINE_GL_X11;
|
// e_config->evas_engine_container = E_EVAS_ENGINE_GL_X11;
|
||||||
|
|
||||||
// TESTING OPTIONS
|
// TESTING OPTIONS
|
||||||
|
|
|
@ -736,14 +736,17 @@ _temperature_config_menu_new(Temperature *e)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
if (therms) ecore_list_destroy(therms);
|
if (therms)
|
||||||
|
{
|
||||||
|
ecore_list_destroy(therms);
|
||||||
|
therms = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
f = fopen("/sys/devices/temperatures/cpu_temperature", "rb");
|
f = fopen("/sys/devices/temperatures/cpu_temperature", "rb");
|
||||||
if (f) fclose(f);
|
if (f) fclose(f);
|
||||||
|
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
|
|
||||||
therms = ecore_file_ls("/sys/bus/i2c/devices");
|
therms = ecore_file_ls("/sys/bus/i2c/devices");
|
||||||
if (therms)
|
if (therms)
|
||||||
{
|
{
|
||||||
|
@ -781,9 +784,11 @@ _temperature_config_menu_new(Temperature *e)
|
||||||
e->config_menu_sensor = mn;
|
e->config_menu_sensor = mn;
|
||||||
}
|
}
|
||||||
ecore_list_destroy(therms);
|
ecore_list_destroy(therms);
|
||||||
|
therms = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (therms) ecore_list_destroy(therms);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Main */
|
/* Main */
|
||||||
|
|
Loading…
Reference in New Issue