*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
v = fahrenheit_to_celsius(v);
config_set_sensor_alarm_high_threshold(s->id, v);
v = fahrenheit_to_celsius(v);
config_set_sensor_alarm_high_threshold(s->id, v);
v = fahrenheit_to_celsius(v);
config_set_sensor_alarm_low_threshold(s->id, v);
v = fahrenheit_to_celsius(v);
config_set_sensor_alarm_low_threshold(s->id, v);
gtk_toggle_button_set_active(w_sensor_alarm,
config_get_sensor_alarm_enabled(s->id));
gtk_toggle_button_set_active(w_sensor_alarm,
config_get_sensor_alarm_enabled(s->id));
if (!use_celsius)
threshold = celsius_to_fahrenheit(threshold);
gtk_spin_button_set_value(w_sensor_high_threshold, threshold);
if (!use_celsius)
threshold = celsius_to_fahrenheit(threshold);
gtk_spin_button_set_value(w_sensor_high_threshold, threshold);
if (!use_celsius)
threshold = celsius_to_fahrenheit(threshold);
gtk_spin_button_set_value(w_sensor_low_threshold, threshold);
if (!use_celsius)
threshold = celsius_to_fahrenheit(threshold);
gtk_spin_button_set_value(w_sensor_low_threshold, threshold);
gtk_builder_connect_signals(builder, ui);
g_signal_connect(w_dialog,
gtk_builder_connect_signals(builder, ui);
g_signal_connect(w_dialog,