_fill_data(E_Config_Dialog_Data *cfdata)
{
cfdata->enable_screensaver = e_config->screensaver_enable;
- cfdata->timeout = e_config->screensaver_timeout / 60;
+ cfdata->timeout = (double)e_config->screensaver_timeout / 60.;
cfdata->ask_presentation = e_config->screensaver_ask_presentation;
cfdata->presentation_mode = e_config->mode.presentation;
cfdata->ask_presentation_timeout = e_config->screensaver_ask_presentation_timeout;
_basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
{
e_config->screensaver_enable = cfdata->enable_screensaver;
- e_config->screensaver_timeout = (cfdata->timeout * 60);
+ e_config->screensaver_timeout = lround(cfdata->timeout * 60);
e_config->screensaver_ask_presentation = cfdata->ask_presentation;
e_config->mode.presentation = cfdata->presentation_mode;
e_config->screensaver_ask_presentation_timeout = cfdata->ask_presentation_timeout;
_basic_check_changed(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
{
return ((e_config->screensaver_enable != cfdata->enable_screensaver) ||
- (e_config->screensaver_timeout != (int)(cfdata->timeout * 60)) ||
+ (e_config->screensaver_timeout != lround(cfdata->timeout * 60)) ||
(e_config->screensaver_ask_presentation != cfdata->ask_presentation) ||
(e_config->mode.presentation != cfdata->presentation_mode) ||
(e_config->screensaver_ask_presentation_timeout != cfdata->ask_presentation_timeout) ||