{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
if(key=="gamma")
{
value=strprintf("%f %f %f %f",
value=strprintf("%s",App::predefined_fps.c_str());
return true;
}
- SETTINGS_LOCALE_RESTORE
}
catch(...)
{
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
if(key=="gamma")
{
float r,g,b,blk;
App::predefined_fps=value;
return true;
}
- SETTINGS_LOCALE_RESTORE
}
catch(...)
{
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
{
std::string filename=get_config_file("accelrc");
Gtk::AccelMap::save(filename);
}while(0);
std::string filename=get_config_file("settings");
synfigapp::Main::settings().save_to_file(filename);
- SETTINGS_LOCALE_RESTORE
+
}
catch(...)
{
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
{
std::string filename=get_config_file("accelrc");
Gtk::AccelMap::load(filename);
reset_initial_window_configuration();
}
}
- SETTINGS_LOCALE_RESTORE
+
}
catch(...)
{